Searched refs:dup_buffer (Results 1 – 11 of 11) sorted by relevance
/system/keymaster/km_openssl/ |
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 | hmac.cpp | 43 key_.reset(dup_buffer(key, key_len)); in Init()
|
D | attestation_record.cpp | 774 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/ |
D | android_keymaster_utils.h | 112 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/ |
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 | 28 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/ |
D | keymaster0_engine.cpp | 93 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()
|
D | keymaster_passthrough_engine.cpp | 225 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()
|
D | keymaster1_engine.cpp | 91 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/ |
D | android_keymaster_messages_test.cpp | 582 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()
|
D | android_keymaster_test_utils.h | 379 uint8_t* dup_blob = dup_buffer(blob, blob_length); in unmunge_blob()
|