Searched refs:dup_buffer (Results 1 – 11 of 11) sorted by relevance
/system/keymaster/ |
D | kdf.cpp | 44 secret_key_.reset(dup_buffer(secret, secret_len)); in Init() 50 salt_.reset(dup_buffer(salt, salt_len)); in Init()
|
D | keymaster0_engine.cpp | 111 key_material->key_material = dup_buffer(key_blob, key_material->key_material_size); in GenerateRsaKey() 127 key_material->key_material = dup_buffer(key_blob, key_material->key_material_size); in GenerateEcKey() 146 imported_key->key_material = dup_buffer(key_blob, imported_key->key_material_size); in ImportKey() 164 unique_ptr<uint8_t[]> key_material_copy(dup_buffer(key_data, key_data_size)); in duplicate_blob()
|
D | android_keymaster_utils.cpp | 27 uint8_t* dup_buffer(const void* buf, size_t size) { in dup_buffer() function
|
D | hmac.cpp | 43 key_.reset(dup_buffer(key, key_len)); in Init()
|
D | symmetric_key.cpp | 117 uint8_t* tmp = dup_buffer(key_material.key_material, key_material.key_material_size); in SymmetricKey()
|
D | android_keymaster_messages.cpp | 28 key_blob->key_material = dup_buffer(key_material, length); in set_key_blob() 309 key_data = dup_buffer(key_material, length); in SetKeyMaterial() 378 key_data = dup_buffer(key_material, length); in SetKeyMaterial()
|
D | keymaster1_engine.cpp | 92 key_blob->key_material = dup_buffer(blob.key_material, blob.key_material_size); in GenerateKey() 117 output_key_blob->key_material = dup_buffer(blob.key_material, blob.key_material_size); in ImportKey()
|
D | android_keymaster_messages_test.cpp | 563 msg.certificate_chain.entries[0] = {dup_buffer("foo", 3), 3}; in TEST() 564 msg.certificate_chain.entries[1] = {dup_buffer("bar", 3), 3}; in TEST() 565 msg.certificate_chain.entries[2] = {dup_buffer("baz", 3), 3}; in TEST()
|
D | attestation_record.cpp | 697 dup_buffer(record->attestation_challenge->data, record->attestation_challenge->length); in parse_attestation_record() 700 unique_id->data = dup_buffer(record->unique_id->data, record->unique_id->length); in parse_attestation_record()
|
D | android_keymaster_test_utils.h | 356 uint8_t* dup_blob = dup_buffer(blob, blob_length); in unmunge_blob()
|
/system/keymaster/include/keymaster/ |
D | android_keymaster_utils.h | 89 uint8_t* dup_buffer(const void* buf, size_t size); 224 key_material = dup_buffer(data, size); in KeymasterKeyBlob() 238 key_material = dup_buffer(blob.key_material, blob.key_material_size); in KeymasterKeyBlob() 245 key_material = dup_buffer(blob.key_material, blob.key_material_size); in KeymasterKeyBlob() 252 key_material = dup_buffer(blob.key_material, blob.key_material_size);
|