/external/vboot_reference/host/lib/ |
D | host_key.c | 147 VbPublicKey* PublicKeyAlloc(uint64_t key_size, uint64_t algorithm, in PublicKeyAlloc() argument 149 VbPublicKey* key = (VbPublicKey*)malloc(sizeof(VbPublicKey) + key_size); in PublicKeyAlloc() 155 key->key_size = key_size; in PublicKeyAlloc() 164 uint64_t key_size; in PublicKeyReadKeyb() local 177 key_data = ReadFile(filename, &key_size); in PublicKeyReadKeyb() 182 expected_key_size != key_size) { in PublicKeyReadKeyb() 188 key = PublicKeyAlloc(key_size, algorithm, version); in PublicKeyReadKeyb() 193 Memcpy(GetPublicKeyData(key), key_data, key_size); in PublicKeyReadKeyb() 202 uint64_t key_size; in PublicKeyLooksOkay() local 217 if (!RSAProcessedKeySize(key->algorithm, &key_size) || in PublicKeyLooksOkay() [all …]
|
D | host_keyblock.c | 20 uint64_t signed_size = sizeof(VbKeyBlockHeader) + data_key->key_size; in KeyBlockCreate() 34 block_chk_dest = data_key_dest + data_key->key_size; in KeyBlockCreate() 44 PublicKeyInit(&h->data_key, data_key_dest, data_key->key_size); in KeyBlockCreate() 81 uint64_t signed_size = sizeof(VbKeyBlockHeader) + data_key->key_size; in KeyBlockCreate_external() 97 block_chk_dest = data_key_dest + data_key->key_size; in KeyBlockCreate_external() 107 PublicKeyInit(&h->data_key, data_key_dest, data_key->key_size); in KeyBlockCreate_external()
|
D | host_common.c | 26 kernel_subkey->key_size + in CreateFirmwarePreamble() 41 body_sig_dest = kernel_subkey_dest + kernel_subkey->key_size; in CreateFirmwarePreamble() 52 kernel_subkey->key_size); in CreateFirmwarePreamble()
|
/external/mmc-utils/3rdparty/hmac_sha/ |
D | hmac_sha2.c | 45 unsigned int key_size) in hmac_sha224_init() argument 54 if (key_size == SHA224_BLOCK_SIZE) { in hmac_sha224_init() 58 if (key_size > SHA224_BLOCK_SIZE){ in hmac_sha224_init() 60 sha224(key, key_size, key_temp); in hmac_sha224_init() 64 num = key_size; in hmac_sha224_init() 117 void hmac_sha224(const unsigned char *key, unsigned int key_size, in hmac_sha224() argument 123 hmac_sha224_init(&ctx, key, key_size); in hmac_sha224() 131 unsigned int key_size) in hmac_sha256_init() argument 140 if (key_size == SHA256_BLOCK_SIZE) { in hmac_sha256_init() 144 if (key_size > SHA256_BLOCK_SIZE){ in hmac_sha256_init() [all …]
|
D | hmac_sha2.h | 96 unsigned int key_size); 102 void hmac_sha224(const unsigned char *key, unsigned int key_size, 107 unsigned int key_size); 113 void hmac_sha256(const unsigned char *key, unsigned int key_size, 118 unsigned int key_size); 124 void hmac_sha384(const unsigned char *key, unsigned int key_size, 129 unsigned int key_size); 135 void hmac_sha512(const unsigned char *key, unsigned int key_size,
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_state_cache.c | 59 assert(item->key_size % 4 == 0); in hash_key() 63 for (i = 0; i < item->key_size/4; i++) { in hash_key() 77 a->key_size == b->key_size && in brw_cache_item_equals() 78 (memcmp(a->key, b->key, a->key_size) == 0); in brw_cache_item_equals() 135 const void *key, GLuint key_size, in brw_search_cache() argument 145 lookup.key_size = key_size; in brw_search_cache() 154 *(void **)out_aux = ((char *)item->key + item->key_size); in brw_search_cache() 205 const void *item_aux = item->key + item->key_size; in brw_try_upload_using_copy() 265 GLuint key_size, in brw_upload_cache() argument 280 item->key_size = key_size; in brw_upload_cache() [all …]
|
/external/vboot_reference/firmware/lib20/ |
D | misc.c | 23 uint32_t key_size; in vb2_load_fw_keyblock() local 35 key_size = sd->gbb_rootkey_size; in vb2_load_fw_keyblock() 36 key_data = vb2_workbuf_alloc(&wb, key_size); in vb2_load_fw_keyblock() 41 key_data, key_size); in vb2_load_fw_keyblock() 46 rv = vb2_unpack_key(&root_key, key_data, key_size); in vb2_load_fw_keyblock() 103 packed_key->key_size = kb->data_key.key_size; in vb2_load_fw_keyblock() 113 packed_key->key_size); in vb2_load_fw_keyblock() 118 packed_key->key_offset + packed_key->key_size; in vb2_load_fw_keyblock() 136 uint32_t key_size = sd->workbuf_data_key_size; in vb2_load_fw_preamble() local 151 rv = vb2_unpack_key(&data_key, key_data, key_size); in vb2_load_fw_preamble()
|
D | packed_key.c | 23 key->key_offset, key->key_size); in vb2_verify_packed_key_inside() 55 if (!expected_key_size || expected_key_size != packed_key->key_size) { in vb2_unpack_key()
|
/external/google-breakpad/src/common/ |
D | simple_string_dictionary.h | 61 static const size_t key_size = KeySize; 112 assert(other.key_size == key_size); 115 if (other.key_size == key_size && other.value_size == value_size && 184 strncpy(entry->key, key, key_size); in SetKeyValue() 185 entry->key[key_size - 1] = '\0'; in SetKeyValue() 200 if (strncmp(entries_[i].key, key, key_size) == 0) in SetKeyValue() 240 if (strncmp(key, entries_[i].key, key_size) == 0) { in GetConstEntryForKey()
|
/external/vboot_reference/firmware/lib/ |
D | vboot_common.c | 92 key->key_offset, key->key_size); in VerifyPublicKeyInside() 103 void PublicKeyInit(VbPublicKey *key, uint8_t *key_data, uint64_t key_size) in PublicKeyInit() argument 106 key->key_size = key_size; in PublicKeyInit() 113 if (dest->key_size < src->key_size) in PublicKeyCopy() 116 dest->key_size = src->key_size; in PublicKeyCopy() 119 Memcpy(GetPublicKeyData(dest), GetPublicKeyDataC(src), src->key_size); in PublicKeyCopy() 126 uint64_t key_size; in PublicKeyToRSA() local 132 if (!RSAProcessedKeySize(key->algorithm, &key_size) || in PublicKeyToRSA() 133 key_size != key->key_size) { in PublicKeyToRSA() 138 rsa = RSAPublicKeyFromBuf(GetPublicKeyDataC(key), key->key_size); in PublicKeyToRSA() [all …]
|
/external/vboot_reference/tests/ |
D | rsa_verify_benchmark.c | 19 int i, key_size; in SpeedTestAlgorithm() local 35 key_size = siglen_map[algorithm] * 8; /* in bits. */ in SpeedTestAlgorithm() 37 snprintf(file_name, FILE_NAME_SIZE, "testkeys/key_rsa%d.keyb", key_size); in SpeedTestAlgorithm() 57 key_size, sha_strings[algorithm]); in SpeedTestAlgorithm() 75 " Speed = %.02f verifications/s\n", key_size, sha_strings[algorithm], in SpeedTestAlgorithm() 77 fprintf(stdout, "ms_rsa%d_%s:%.02f\n", key_size, sha_strings[algorithm], in SpeedTestAlgorithm()
|
D | vboot_common_tests.c | 157 k[1].key_size = 12345; in PublicKeyTest() 162 TEST_EQ(k->key_size, 2 * sizeof(VbPublicKey), "PublicKeyInit key_size"); in PublicKeyTest() 181 TEST_EQ(k->key_size, 2 * sizeof(VbPublicKey), "PublicKeyCopy key_size"); in PublicKeyTest() 187 Memcmp(GetPublicKeyData(k), GetPublicKeyData(j), k->key_size), in PublicKeyTest()
|
D | vb20_common2_tests.c | 32 uint32_t size = key1->key_offset + key1->key_size; in test_unpack_key() 52 key->key_size--; in test_unpack_key() 84 uint32_t pubkey_size = key1->key_offset + key1->key_size; in test_verify_data()
|
D | vb21_misc_tests.c | 98 mock_gbb.rootkey.key_size = sizeof(mock_gbb.rootkey_data); in reset_common_data() 108 dk->key_size = sizeof(mock_vblock.k.data_key_data); in reset_common_data() 109 dk->c.total_size = dk->key_offset + dk->key_size; in reset_common_data() 206 TEST_EQ(k->key_size, sizeof(mock_vblock.k.data_key_data), in load_keyblock_tests()
|
D | vb20_common_tests.c | 127 .key_size = 128}; in test_helper_functions() 140 .key_size = 4}; in test_helper_functions()
|
/external/vboot_reference/host/lib21/ |
D | host_key.c | 111 pkey->key_offset, pkey->key_size)) in vb2_private_key_unpack() 135 if (pkey->key_size != 0) { in vb2_private_key_unpack() 142 pkey->key_size); in vb2_private_key_unpack() 259 pkey.key_size = roundup32(rsalen); in vb2_private_key_write() 260 pkey.c.total_size = pkey.key_offset + pkey.key_size; in vb2_private_key_write() 382 uint32_t key_size; in vb2_public_key_read_keyb() local 387 if (vb2_read_file(filename, &key_data, &key_size)) in vb2_public_key_read_keyb() 392 if (key_size == vb2_packed_key_size(sig_alg)) in vb2_public_key_read_keyb() 407 memcpy(key_buf, key_data, key_size); in vb2_public_key_read_keyb() 410 if (vb2_unpack_key_data(key, key_buf, key_size)) { in vb2_public_key_read_keyb() [all …]
|
/external/vboot_reference/firmware/lib/cryptolib/ |
D | rsa_utility.c | 91 uint64_t key_size; in RSAVerifyBinary_f() local 97 if (!RSAProcessedKeySize(algorithm, &key_size)) in RSAVerifyBinary_f() 102 verification_key = RSAPublicKeyFromBuf(key_blob, key_size); in RSAVerifyBinary_f() 130 uint64_t key_size; in RSAVerifyBinaryWithDigest_f() local 136 if (!RSAProcessedKeySize(algorithm, &key_size)) in RSAVerifyBinaryWithDigest_f() 141 verification_key = RSAPublicKeyFromBuf(key_blob, key_size); in RSAVerifyBinaryWithDigest_f()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_keymap.c | 49 unsigned key_size; member 125 map->key_size = keySize; in util_new_keymap() 156 if (!memcmp(item->key, key, map->key_size)) in hash_table_find_iter() 199 key_hash = hash(key, map->key_size); in util_keymap_insert() 213 item->key = mem_dup(key, map->key_size); in util_keymap_insert() 241 key_hash = hash(key, map->key_size); in util_keymap_lookup() 267 key_hash = hash(key, map->key_size); in util_keymap_remove()
|
/external/vboot_reference/firmware/lib21/ |
D | misc.c | 71 uint32_t key_size; in vb2_load_fw_keyblock() local 81 key_size = sd->gbb_rootkey_size; in vb2_load_fw_keyblock() 82 key_data = vb2_workbuf_alloc(&wb, key_size); in vb2_load_fw_keyblock() 87 key_data, key_size); in vb2_load_fw_keyblock() 92 rv = vb2_unpack_key(&root_key, key_data, key_size); in vb2_load_fw_keyblock() 159 uint32_t key_size = sd->workbuf_data_key_size; in vb2_load_fw_preamble() local 173 rv = vb2_unpack_key(&data_key, key_data, key_size); in vb2_load_fw_preamble()
|
D | packed_key.c | 15 uint32_t key_size) in vb2_unpack_key_data() argument 21 if (!expected_key_size || expected_key_size != key_size) { in vb2_unpack_key_data() 65 pkey->key_offset, pkey->key_size); in vb2_unpack_key() 90 pkey->key_size); in vb2_unpack_key()
|
/external/vboot_reference/utility/ |
D | load_kernel_test.c | 83 uint64_t key_size; in main() local 150 key_blob = ReadFile(argv[optind+1], &key_size); in main() 155 printf("Read %" PRIu64 " bytes of key from %s\n", key_size, argv[optind+1]); in main() 159 lkp.gbb_size = sizeof(GoogleBinaryBlockHeader) + key_size; in main() 171 gbb->rootkey_size = key_size; in main() 172 Memcpy((uint8_t*)gbb + gbb->rootkey_offset, key_blob, key_size); in main() 175 gbb->recovery_key_size = key_size; in main()
|
/external/mesa3d/src/gallium/auxiliary/cso_cache/ |
D | cso_context.c | 372 unsigned key_size, hash_key; in cso_set_blend() local 376 key_size = templ->independent_blend_enable ? in cso_set_blend() 379 hash_key = cso_construct_key((void*)templ, key_size); in cso_set_blend() 381 (void*)templ, key_size); in cso_set_blend() 389 memcpy(&cso->state, templ, key_size); in cso_set_blend() 434 unsigned key_size = sizeof(struct pipe_depth_stencil_alpha_state); in cso_set_depth_stencil_alpha() local 435 unsigned hash_key = cso_construct_key((void*)templ, key_size); in cso_set_depth_stencil_alpha() 439 (void*)templ, key_size); in cso_set_depth_stencil_alpha() 497 unsigned key_size = sizeof(struct pipe_rasterizer_state); in cso_set_rasterizer() local 498 unsigned hash_key = cso_construct_key((void*)templ, key_size); in cso_set_rasterizer() [all …]
|
/external/vboot_reference/firmware/lib21/include/ |
D | vb2_struct.h | 125 uint32_t key_size; member 167 uint32_t key_size; member
|
/external/libchrome/crypto/ |
D | symmetric_key_win.cc | 55 const void* key_data, size_t key_size, in ImportRawKey() argument 57 DCHECK_GT(key_size, 0u); in ImportRawKey() 60 static_cast<DWORD>(sizeof(PlaintextBlobHeader) + key_size); in ImportRawKey() 63 memcpy(actual_key + sizeof(PlaintextBlobHeader), key_data, key_size); in ImportRawKey() 72 key_header->cbKeySize = static_cast<DWORD>(key_size); in ImportRawKey()
|
/external/mesa3d/src/mesa/program/ |
D | prog_cache.c | 58 hash_key(const void *key, GLuint key_size) in hash_key() argument 63 assert(key_size >= 4); in hash_key() 67 for (i = 0; i < key_size / sizeof(*ikey); i++) in hash_key()
|