Home
last modified time | relevance | path

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

/system/keymaster/km_openssl/
Dkdf.cpp44 secret_key_.reset(dup_buffer(secret, secret_len)); in Init()
50 salt_.reset(dup_buffer(salt, salt_len)); in Init()
Dhmac.cpp43 key_.reset(dup_buffer(key, key_len)); in Init()
Dattestation_record.cpp774 dup_buffer(record->attestation_challenge->data, record->attestation_challenge->length); in parse_attestation_record()
777 unique_id->data = dup_buffer(record->unique_id->data, record->unique_id->length); in parse_attestation_record()
807 verified_boot_key->data = dup_buffer(root_of_trust->verified_boot_key->data, in parse_root_of_trust()
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h112 uint8_t* dup_buffer(const void* buf, size_t size);
288 accessBlobData(this) = dup_buffer(data, size); in TKeymasterBlob()
302 accessBlobData(this) = dup_buffer(accessBlobData(&blob), accessBlobSize(&blob)); in TKeymasterBlob()
310 accessBlobData(this) = dup_buffer(data, N); in TKeymasterBlob()
317 accessBlobData(this) = dup_buffer(accessBlobData(&blob), accessBlobSize(&blob)); in TKeymasterBlob()
332 accessBlobData(this) = dup_buffer(accessBlobData(&blob), accessBlobSize(&blob));
/system/keymaster/android_keymaster/
Dandroid_keymaster_utils.cpp27 uint8_t* dup_buffer(const void* buf, size_t size) { in dup_buffer() function
Dandroid_keymaster_messages.cpp28 key_blob->key_material = dup_buffer(key_material, length); in set_key_blob()
327 key_data = dup_buffer(key_material, length); in SetKeyMaterial()
396 key_data = dup_buffer(key_material, length); in SetKeyMaterial()
/system/keymaster/legacy_support/
Dkeymaster0_engine.cpp93 key_material->key_material = dup_buffer(key_blob, key_material->key_material_size); in GenerateRsaKey()
109 key_material->key_material = dup_buffer(key_blob, key_material->key_material_size); in GenerateEcKey()
128 imported_key->key_material = dup_buffer(key_blob, imported_key->key_material_size); in ImportKey()
146 unique_ptr<uint8_t[]> key_material_copy(dup_buffer(key_data, key_data_size)); in duplicate_blob()
Dkeymaster_passthrough_engine.cpp225 key_blob->key_material = dup_buffer(blob.key_material, blob.key_material_size); in GenerateKey()
248 key_blob->key_material = dup_buffer(blob.key_material, blob.key_material_size); in GenerateKey()
306 output_key_blob->key_material = dup_buffer(blob.key_material, blob.key_material_size); in ImportKey()
Dkeymaster1_engine.cpp91 key_blob->key_material = dup_buffer(blob.key_material, blob.key_material_size); in GenerateKey()
116 output_key_blob->key_material = dup_buffer(blob.key_material, blob.key_material_size); in ImportKey()
/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp582 msg.certificate_chain.entries[0] = {dup_buffer("foo", 3), 3}; in TEST()
583 msg.certificate_chain.entries[1] = {dup_buffer("bar", 3), 3}; in TEST()
584 msg.certificate_chain.entries[2] = {dup_buffer("baz", 3), 3}; in TEST()
Dandroid_keymaster_test_utils.h379 uint8_t* dup_blob = dup_buffer(blob, blob_length); in unmunge_blob()