Home
last modified time | relevance | path

Searched refs:dup_buffer (Results 1 – 11 of 11) sorted by relevance

/system/keymaster/
Dkdf.cpp44 secret_key_.reset(dup_buffer(secret, secret_len)); in Init()
50 salt_.reset(dup_buffer(salt, salt_len)); in Init()
Dkeymaster0_engine.cpp111 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()
Dandroid_keymaster_utils.cpp27 uint8_t* dup_buffer(const void* buf, size_t size) { in dup_buffer() function
Dhmac.cpp43 key_.reset(dup_buffer(key, key_len)); in Init()
Dsymmetric_key.cpp117 uint8_t* tmp = dup_buffer(key_material.key_material, key_material.key_material_size); in SymmetricKey()
Dandroid_keymaster_messages.cpp28 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()
Dkeymaster1_engine.cpp92 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()
Dandroid_keymaster_messages_test.cpp563 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()
Dattestation_record.cpp697 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()
Dandroid_keymaster_test_utils.h356 uint8_t* dup_blob = dup_buffer(blob, blob_length); in unmunge_blob()
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h89 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);