Searched refs:dup_buffer (Results 1 – 10 of 10) sorted by relevance
/system/keymaster/km_openssl/ |
D | kdf.cpp | 43 secret_key_.reset(dup_buffer(secret, secret_len)); in Init() 48 salt_.reset(dup_buffer(salt, salt_len)); in Init()
|
D | hmac.cpp | 42 key_.reset(dup_buffer(key, key_len)); in Init()
|
D | attestation_record.cpp | 1420 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/ |
D | android_keymaster_utils.h | 122 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));
|
D | mem.h | 71 uint8_t* dup_buffer(const void* buf, size_t size);
|
/system/keymaster/android_keymaster/ |
D | android_keymaster_utils.cpp | 27 uint8_t* dup_buffer(const void* buf, size_t size) { in dup_buffer() function
|
D | android_keymaster_messages.cpp | 30 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/ |
D | keymaster_passthrough_engine.cpp | 216 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()
|
D | keymaster1_engine.cpp | 87 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/ |
D | android_keymaster_messages_test.cpp | 112 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()
|