Home
last modified time | relevance | path

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

/system/keymaster/km_openssl/
Dkdf.cpp43 secret_key_.reset(dup_buffer(secret, secret_len)); in Init()
48 salt_.reset(dup_buffer(salt, salt_len)); in Init()
Dhmac.cpp42 key_.reset(dup_buffer(key, key_len)); in Init()
Dattestation_record.cpp1420 dup_buffer(record->attestation_challenge->data, record->attestation_challenge->length); in parse_attestation_record()
1423 unique_id->data = dup_buffer(record->unique_id->data, record->unique_id->length); in parse_attestation_record()
1452 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.h122 accessBlobData(this) = dup_buffer(data, size); in TKeymasterBlob()
134 accessBlobData(this) = dup_buffer(accessBlobData(&blob), accessBlobSize(&blob)); in TKeymasterBlob()
140 accessBlobData(this) = dup_buffer(data, N); in TKeymasterBlob()
146 accessBlobData(this) = dup_buffer(accessBlobData(&blob), accessBlobSize(&blob)); in TKeymasterBlob()
160 accessBlobData(this) = dup_buffer(accessBlobData(&blob), accessBlobSize(&blob));
Dmem.h71 uint8_t* dup_buffer(const void* buf, size_t size);
/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.cpp30 key_blob->key_material = dup_buffer(key_material, length); in set_key_blob()
59 blob->data = dup_buffer(data, length); in set_blob()
601 key_data = dup_buffer(key_material, length); in SetKeyMaterial()
/system/keymaster/legacy_support/
Dkeymaster_passthrough_engine.cpp216 key_blob->key_material = dup_buffer(blob.key_material, blob.key_material_size); in GenerateKey()
236 key_blob->key_material = dup_buffer(blob.key_material, blob.key_material_size); in GenerateKey()
286 output_key_blob->key_material = dup_buffer(blob.key_material, blob.key_material_size); in ImportKey()
Dkeymaster1_engine.cpp87 key_blob->key_material = dup_buffer(blob.key_material, blob.key_material_size); in GenerateKey()
111 output_key_blob->key_material = dup_buffer(blob.key_material, blob.key_material_size); in ImportKey()
/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp112 rsp.certificate_chain.entries[0] = {dup_buffer("foo", 3), 3}; in TEST()
113 rsp.certificate_chain.entries[1] = {dup_buffer("bar", 3), 3}; in TEST()
114 rsp.certificate_chain.entries[2] = {dup_buffer("baz", 3), 3}; in TEST()
513 msg.certificate_chain.entries[0] = {dup_buffer("foo", 3), 3}; in TEST()
514 msg.certificate_chain.entries[1] = {dup_buffer("bar", 3), 3}; in TEST()
515 msg.certificate_chain.entries[2] = {dup_buffer("baz", 3), 3}; in TEST()
756 msg.certificate_chain.entries[0] = {dup_buffer("foo", 3), 3}; in TEST()
757 msg.certificate_chain.entries[1] = {dup_buffer("bar", 3), 3}; in TEST()
758 msg.certificate_chain.entries[2] = {dup_buffer("baz", 3), 3}; in TEST()