/third_party/python/Modules/ |
H A D | sha1module.c | 113 static void sha1_compress(struct sha1_state *sha1, unsigned char *buf) in sha1_compress() argument 123 a = sha1->state[0]; in sha1_compress() 124 b = sha1->state[1]; in sha1_compress() 125 c = sha1->state[2]; in sha1_compress() 126 d = sha1->state[3]; in sha1_compress() 127 e = sha1->state[4]; in sha1_compress() 182 sha1->state[0] = sha1->state[0] + a; in sha1_compress() 183 sha1->state[1] = sha1 in sha1_compress() 194 sha1_init(struct sha1_state *sha1) sha1_init() argument 213 sha1_process(struct sha1_state *sha1, const unsigned char *in, Py_ssize_t inlen) sha1_process() argument 249 sha1_done(struct sha1_state *sha1, unsigned char *out) sha1_done() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/sha/ |
H A D | sha1dgst.c | 28 int ossl_sha1_ctrl(SHA_CTX *sha1, int cmd, int mslen, void *ms) in ossl_sha1_ctrl() argument 36 if (sha1 == NULL) in ossl_sha1_ctrl() 47 if (SHA1_Update(sha1, ms, mslen) <= 0) in ossl_sha1_ctrl() 53 if (!SHA1_Update(sha1, padtmp, sizeof(padtmp))) in ossl_sha1_ctrl() 56 if (!SHA1_Final(sha1tmp, sha1)) in ossl_sha1_ctrl() 61 if (!SHA1_Init(sha1)) in ossl_sha1_ctrl() 64 if (SHA1_Update(sha1, ms, mslen) <= 0) in ossl_sha1_ctrl() 70 if (!SHA1_Update(sha1, padtmp, sizeof(padtmp))) in ossl_sha1_ctrl() 73 if (!SHA1_Update(sha1, sha1tmp, sizeof(sha1tmp))) in ossl_sha1_ctrl()
|
/third_party/openssl/crypto/sha/ |
H A D | sha1dgst.c | 28 int ossl_sha1_ctrl(SHA_CTX *sha1, int cmd, int mslen, void *ms) in ossl_sha1_ctrl() argument 36 if (sha1 == NULL) in ossl_sha1_ctrl() 47 if (SHA1_Update(sha1, ms, mslen) <= 0) in ossl_sha1_ctrl() 53 if (!SHA1_Update(sha1, padtmp, sizeof(padtmp))) in ossl_sha1_ctrl() 56 if (!SHA1_Final(sha1tmp, sha1)) in ossl_sha1_ctrl() 61 if (!SHA1_Init(sha1)) in ossl_sha1_ctrl() 64 if (SHA1_Update(sha1, ms, mslen) <= 0) in ossl_sha1_ctrl() 70 if (!SHA1_Update(sha1, padtmp, sizeof(padtmp))) in ossl_sha1_ctrl() 73 if (!SHA1_Update(sha1, sha1tmp, sizeof(sha1tmp))) in ossl_sha1_ctrl()
|
/third_party/mesa3d/src/util/ |
H A D | mesa-sha1.c | 27 #include "sha1/sha1.h" 28 #include "mesa-sha1.h" 42 _mesa_sha1_format(char *buf, const unsigned char *sha1) in _mesa_sha1_format() argument 48 buf[i] = hex_digits[sha1[i >> 1] >> 4]; in _mesa_sha1_format() 49 buf[i + 1] = hex_digits[sha1[i >> 1] & 0x0f]; in _mesa_sha1_format() 70 sha1_to_uint32(const uint8_t sha1[SHA1_DIGEST_LENGTH], in sha1_to_uint32() argument 76 out[i / 4] |= (uint32_t)sha1[i] << ((i % 4) * 8); in sha1_to_uint32() 80 _mesa_sha1_print(FILE *f, const uint8_t sha1[SHA1_DIGEST_LENGTH]) in _mesa_sha1_print() argument 83 sha1_to_uint32(sha1, u3 in _mesa_sha1_print() 93 _mesa_printed_sha1_equal(const uint8_t sha1[SHA1_DIGEST_LENGTH], const uint32_t printed_sha1[SHA1_DIGEST_LENGTH32]) _mesa_printed_sha1_equal() argument [all...] |
H A D | os_memory_fd.c | 41 #include "mesa-sha1.h" 55 get_driver_id_sha1_hash(uint8_t sha1[SHA1_DIGEST_LENGTH], const char *driver_id) { in get_driver_id_sha1_hash() argument 61 _mesa_sha1_final(&sha1_ctx, sha1); in get_driver_id_sha1_hash() 80 uint8_t sha1[SHA1_DIGEST_LENGTH]; in os_import_memory_fd() 81 get_driver_id_sha1_hash(sha1, driver_id); in os_import_memory_fd() 84 if (memcmp(header.uuid, sha1, UUID_SIZE)) { in os_import_memory_fd() 152 uint8_t sha1[SHA1_DIGEST_LENGTH]; in os_malloc_aligned_fd() local 153 get_driver_id_sha1_hash(sha1, driver_id); in os_malloc_aligned_fd() 156 memcpy(header->uuid, sha1, UUID_SIZE); in os_malloc_aligned_fd()
|
/third_party/mesa3d/src/intel/common/ |
H A D | intel_uuid.c | 26 #include "util/mesa-sha1.h" 34 uint8_t sha1[20]; in intel_uuid_compute_device_id() local 36 assert(size <= sizeof(sha1)); in intel_uuid_compute_device_id() 59 _mesa_sha1_final(&sha1_ctx, sha1); in intel_uuid_compute_device_id() 60 memcpy(uuid, sha1, size); in intel_uuid_compute_device_id() 70 uint8_t sha1[20]; in intel_uuid_compute_driver_id() local 72 assert(size <= sizeof(sha1)); in intel_uuid_compute_driver_id() 84 _mesa_sha1_final(&sha1_ctx, sha1); in intel_uuid_compute_driver_id() 85 memcpy(uuid, sha1, size); in intel_uuid_compute_driver_id()
|
/third_party/mesa3d/src/gallium/drivers/lima/ |
H A D | lima_disk_cache.c | 30 #include "util/mesa-sha1.h" 48 char sha1[41]; in lima_vs_disk_cache_store() local 49 _mesa_sha1_format(sha1, cache_key); in lima_vs_disk_cache_store() 50 fprintf(stderr, "[mesa disk cache] storing %s\n", sha1); in lima_vs_disk_cache_store() 76 char sha1[41]; in lima_fs_disk_cache_store() local 77 _mesa_sha1_format(sha1, cache_key); in lima_fs_disk_cache_store() 78 fprintf(stderr, "[mesa disk cache] storing %s\n", sha1); in lima_fs_disk_cache_store() 104 char sha1[41]; in lima_vs_disk_cache_retrieve() local 105 _mesa_sha1_format(sha1, cache_key); in lima_vs_disk_cache_retrieve() 106 fprintf(stderr, "[mesa disk cache] retrieving %s: ", sha1); in lima_vs_disk_cache_retrieve() 156 char sha1[41]; lima_fs_disk_cache_retrieve() local [all...] |
/third_party/mesa3d/src/freedreno/common/ |
H A D | freedreno_uuid.c | 31 #include "util/mesa-sha1.h" 53 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_driver_uuid() local 54 _mesa_sha1_final(&sha1_ctx, sha1); in fd_get_driver_uuid() 57 memcpy(uuid, sha1, UUID_SIZE); in fd_get_driver_uuid() 89 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_device_uuid() local 90 _mesa_sha1_final(&sha1_ctx, sha1); in fd_get_device_uuid() 93 memcpy(uuid, sha1, UUID_SIZE); in fd_get_device_uuid()
|
/third_party/node/deps/openssl/openssl/crypto/md5/ |
H A D | md5_sha1.c | 24 return SHA1_Init(&mctx->sha1); in ossl_md5_sha1_init() 31 return SHA1_Update(&mctx->sha1, data, count); in ossl_md5_sha1_update() 38 return SHA1_Final(md + MD5_DIGEST_LENGTH, &mctx->sha1); in ossl_md5_sha1_final() 73 if (!SHA1_Update(&mctx->sha1, padtmp, 40)) in ossl_md5_sha1_ctrl() 76 if (!SHA1_Final(sha1tmp, &mctx->sha1)) in ossl_md5_sha1_ctrl() 96 if (!SHA1_Update(&mctx->sha1, padtmp, 40)) in ossl_md5_sha1_ctrl() 99 if (!SHA1_Update(&mctx->sha1, sha1tmp, sizeof(sha1tmp))) in ossl_md5_sha1_ctrl()
|
/third_party/openssl/crypto/md5/ |
H A D | md5_sha1.c | 24 return SHA1_Init(&mctx->sha1); in ossl_md5_sha1_init() 31 return SHA1_Update(&mctx->sha1, data, count); in ossl_md5_sha1_update() 38 return SHA1_Final(md + MD5_DIGEST_LENGTH, &mctx->sha1); in ossl_md5_sha1_final() 73 if (!SHA1_Update(&mctx->sha1, padtmp, 40)) in ossl_md5_sha1_ctrl() 76 if (!SHA1_Final(sha1tmp, &mctx->sha1)) in ossl_md5_sha1_ctrl() 96 if (!SHA1_Update(&mctx->sha1, padtmp, 40)) in ossl_md5_sha1_ctrl() 99 if (!SHA1_Update(&mctx->sha1, sha1tmp, sizeof(sha1tmp))) in ossl_md5_sha1_ctrl()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
H A D | crypto_internal.c | 23 struct SHA1Context sha1; member 58 SHA1Init(&ctx->u.sha1); in crypto_hash_init() 96 SHA1Init(&ctx->u.sha1); in crypto_hash_init() 97 SHA1Update(&ctx->u.sha1, key, key_len); in crypto_hash_init() 98 SHA1Final(tk, &ctx->u.sha1); in crypto_hash_init() 110 SHA1Init(&ctx->u.sha1); in crypto_hash_init() 111 SHA1Update(&ctx->u.sha1, k_pad, sizeof(k_pad)); in crypto_hash_init() 155 SHA1Update(&ctx->u.sha1, data, len); in crypto_hash_update() 209 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish() 272 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish() [all...] |
H A D | Makefile | 44 sha1.o \ 45 sha1-internal.o \ 46 sha1-pbkdf2.o \ 47 sha1-prf.o \ 48 sha1-tlsprf.o \ 49 sha1-tprf.o \
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
H A D | crypto_internal.c | 23 struct SHA1Context sha1; member 58 SHA1Init(&ctx->u.sha1); in crypto_hash_init() 96 SHA1Init(&ctx->u.sha1); in crypto_hash_init() 97 SHA1Update(&ctx->u.sha1, key, key_len); in crypto_hash_init() 98 SHA1Final(tk, &ctx->u.sha1); in crypto_hash_init() 110 SHA1Init(&ctx->u.sha1); in crypto_hash_init() 111 SHA1Update(&ctx->u.sha1, k_pad, sizeof(k_pad)); in crypto_hash_init() 155 SHA1Update(&ctx->u.sha1, data, len); in crypto_hash_update() 209 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish() 272 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish() [all...] |
H A D | Makefile | 33 sha1.o \ 34 sha1-internal.o \ 35 sha1-pbkdf2.o \ 36 sha1-prf.o \ 37 sha1-tlsprf.o \ 38 sha1-tprf.o \
|
/third_party/mesa3d/src/mesa/main/ |
H A D | program_binary.c | 49 * defined has one uint32_t value of 0, followed by 20 bytes specifying a sha1 54 /* If internal_format is 0, it must be followed by the 20 byte sha1 that 56 * something besides a sha1, then a new internal_format value can be added. 59 uint8_t sha1[20]; member 60 /* Fields following sha1 can be changed since the sha1 will guarantee that 78 const void *sha1, void *binary, unsigned binary_size, in write_program_binary() 93 memcpy(hdr->sha1, sha1, sizeof(hdr->sha1)); in write_program_binary() 77 write_program_binary(const void *payload, unsigned payload_size, const void *sha1, void *binary, unsigned binary_size, GLenum *binary_format) write_program_binary() argument 133 is_program_binary_valid(GLenum binary_format, const void *sha1, const struct program_binary_header *hdr, unsigned length) is_program_binary_valid() argument 163 get_program_binary_payload(GLenum binary_format, const void *sha1, const void *binary, unsigned length) get_program_binary_payload() argument [all...] |
/third_party/mesa3d/src/compiler/glsl/ |
H A D | shader_cache.cpp | 62 #include "util/mesa-sha1.h" 100 static const char zero[sizeof(prog->data->sha1)] = {0}; in shader_cache_write_program_metadata() 101 if (memcmp(prog->data->sha1, zero, sizeof(prog->data->sha1)) == 0) in shader_cache_write_program_metadata() 131 disk_cache_put(cache, prog->data->sha1, metadata.data, metadata.size, in shader_cache_write_program_metadata() 136 _mesa_sha1_format(sha1_buf, prog->data->sha1); in shader_cache_write_program_metadata() 159 /* Include bindings when creating sha1. These bindings change the resulting in shader_cache_read_program_metadata() 199 * include them as an input to sha1 creation. in shader_cache_read_program_metadata() 211 disk_cache_compute_key(cache, buf, strlen(buf), prog->data->sha1); in shader_cache_read_program_metadata() 215 uint8_t *buffer = (uint8_t *) disk_cache_get(cache, prog->data->sha1, in shader_cache_read_program_metadata() [all...] |
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_live_shader_cache.c | 35 #include "util/mesa-sha1.h" 101 unsigned char sha1[20]; in util_live_shader_cache_get() local 111 _mesa_sha1_final(&sha1_ctx, sha1); in util_live_shader_cache_get() 118 struct hash_entry *entry = _mesa_hash_table_search(cache->hashtable, sha1); in util_live_shader_cache_get() 143 memcpy(shader->sha1, sha1, sizeof(sha1)); in util_live_shader_cache_get() 149 struct hash_entry *entry2 = _mesa_hash_table_search(cache->hashtable, sha1); in util_live_shader_cache_get() 158 _mesa_hash_table_insert(cache->hashtable, shader->sha1, shader); in util_live_shader_cache_get() 181 dst_shader->sha1); in util_shader_reference() [all...] |
/third_party/libwebsockets/lib/tls/mbedtls/ |
H A D | lws-genhash.c | 63 mbedtls_sha1_init(&ctx->u.sha1); in lws_genhash_init() 64 if (mbedtls_sha1_starts_ret(&ctx->u.sha1)) in lws_genhash_init() 101 if (mbedtls_sha1_update_ret(&ctx->u.sha1, in, len)) in lws_genhash_update() 131 if (mbedtls_sha1_finish_ret(&ctx->u.sha1, result)) in lws_genhash_destroy() 133 mbedtls_sha1_free(&ctx->u.sha1); in lws_genhash_destroy() 172 mbedtls_sha1_init(&ctx->u.sha1); in lws_genhash_init() 173 mbedtls_sha1_starts(&ctx->u.sha1); in lws_genhash_init() 205 mbedtls_sha1_update(&ctx->u.sha1, in, len); in lws_genhash_update() 230 mbedtls_sha1_finish(&ctx->u.sha1, result); in lws_genhash_destroy() 231 mbedtls_sha1_free(&ctx->u.sha1); in lws_genhash_destroy() [all...] |
/third_party/mesa3d/src/vulkan/runtime/ |
H A D | vk_shader_module.c | 26 #include "util/mesa-sha1.h" 56 _mesa_sha1_compute(module->data, module->size, module->sha1); in vk_common_CreateShaderModule() 71 memcpy(pIdentifier->identifier, module->sha1, sizeof(module->sha1)); in vk_common_GetShaderModuleIdentifierEXT() 72 pIdentifier->identifierSize = sizeof(module->sha1); in vk_common_GetShaderModuleIdentifierEXT() 149 memcpy(dst->sha1, src->sha1, sizeof(src->sha1)); in vk_shader_module_clone()
|
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_pipeline_cache.c | 27 #include "util/mesa-sha1.h" 37 unsigned char sha1[20]; member 142 _mesa_sha1_update(&ctx, layout->sha1, sizeof(layout->sha1)); in radv_hash_shaders() 163 _mesa_sha1_update(&ctx, layout->sha1, sizeof(layout->sha1)); in radv_hash_rt_shaders() 174 _mesa_sha1_update(&ctx, module->sha1, sizeof(module->sha1)); in radv_hash_rt_shaders() 209 radv_pipeline_cache_search_unlocked(struct radv_pipeline_cache *cache, const unsigned char *sha1) in radv_pipeline_cache_search_unlocked() argument 212 const uint32_t start = (*(uint32_t *)sha1); in radv_pipeline_cache_search_unlocked() 233 radv_pipeline_cache_search(struct radv_pipeline_cache *cache, const unsigned char *sha1) radv_pipeline_cache_search() argument 313 radv_create_shaders_from_pipeline_cache( struct radv_device *device, struct radv_pipeline_cache *cache, const unsigned char *sha1, struct radv_pipeline *pipeline, struct radv_pipeline_shader_stack_size **stack_sizes, uint32_t *num_stack_sizes, bool *found_in_application_cache) radv_create_shaders_from_pipeline_cache() argument 445 radv_pipeline_cache_insert_shaders(struct radv_device *device, struct radv_pipeline_cache *cache, const unsigned char *sha1, struct radv_pipeline *pipeline, struct radv_shader_binary *const *binaries, const struct radv_pipeline_shader_stack_size *stack_sizes, uint32_t num_stack_sizes) radv_pipeline_cache_insert_shaders() argument [all...] |
/third_party/skia/bin/ |
H A D | fetch-clang-format | 22 sha1_path = target_path + '.sha1' 26 sha1 = open(sha1_path).read().strip() 29 h = hashlib.sha1() 35 if sha1_of_file(target_path) != sha1: 37 url = 'https://chromium-%s.storage-download.googleapis.com/%s' % (target, sha1) 45 if sha1_of_file(target_copy_path) != sha1:
|
/third_party/node/deps/openssl/openssl/crypto/ocsp/ |
H A D | ocsp_srv.c | 251 EVP_MD *sha1 = EVP_MD_fetch(libctx, "SHA1", propq); in OCSP_RESPID_set_by_key_ex() local 254 if (sha1 == NULL) in OCSP_RESPID_set_by_key_ex() 258 if (!X509_pubkey_digest(cert, sha1, md, NULL)) in OCSP_RESPID_set_by_key_ex() 275 EVP_MD_free(sha1); in OCSP_RESPID_set_by_key_ex() 289 EVP_MD *sha1 = NULL; in OCSP_RESPID_match_ex() local 295 sha1 = EVP_MD_fetch(libctx, "SHA1", propq); in OCSP_RESPID_match_ex() 296 if (sha1 == NULL) in OCSP_RESPID_match_ex() 303 if (!X509_pubkey_digest(cert, sha1, md, NULL)) in OCSP_RESPID_match_ex() 318 EVP_MD_free(sha1); in OCSP_RESPID_match_ex()
|
/third_party/openssl/crypto/ocsp/ |
H A D | ocsp_srv.c | 251 EVP_MD *sha1 = EVP_MD_fetch(libctx, "SHA1", propq); in OCSP_RESPID_set_by_key_ex() local 254 if (sha1 == NULL) in OCSP_RESPID_set_by_key_ex() 258 if (!X509_pubkey_digest(cert, sha1, md, NULL)) in OCSP_RESPID_set_by_key_ex() 275 EVP_MD_free(sha1); in OCSP_RESPID_set_by_key_ex() 289 EVP_MD *sha1 = NULL; in OCSP_RESPID_match_ex() local 295 sha1 = EVP_MD_fetch(libctx, "SHA1", propq); in OCSP_RESPID_match_ex() 296 if (sha1 == NULL) in OCSP_RESPID_match_ex() 303 if (!X509_pubkey_digest(cert, sha1, md, NULL)) in OCSP_RESPID_match_ex() 318 EVP_MD_free(sha1); in OCSP_RESPID_match_ex()
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
H A D | etnaviv_disk_cache.c | 42 assert(note && build_id_length(note) == 20); /* sha1 */ in etna_disk_cache_init() 134 char sha1[41]; in etna_disk_cache_retrieve() local 136 _mesa_sha1_format(sha1, cache_key); in etna_disk_cache_retrieve() 137 fprintf(stderr, "[mesa disk cache] retrieving variant %s: ", sha1); in etna_disk_cache_retrieve() 170 char sha1[41]; in etna_disk_cache_store() local 172 _mesa_sha1_format(sha1, cache_key); in etna_disk_cache_store() 173 fprintf(stderr, "[mesa disk cache] storing variant %s\n", sha1); in etna_disk_cache_store()
|
/third_party/mesa3d/src/util/tests/ |
H A D | mesa-sha1_test.cpp | 24 #include "mesa-sha1.h" 49 unsigned char sha1[20]; in TEST_P() local 50 _mesa_sha1_compute(p.string, strlen(p.string), sha1); in TEST_P() 53 _mesa_sha1_format(buf, sha1); in TEST_P()
|