Searched refs:secure_key (Results 1 – 6 of 6) sorted by relevance
/system/keymaster/km_openssl/ |
D | wrapped_key.cpp | 42 const KeymasterKeyBlob& secure_key, const KeymasterBlob& tag, in build_wrapped_key() argument 51 !ASN1_OCTET_STRING_set(wrapped_key->secure_key, secure_key.key_material, in build_wrapped_key() 52 secure_key.key_material_size) || in build_wrapped_key() 82 KeymasterKeyBlob* transit_key, KeymasterKeyBlob* secure_key, in parse_wrapped_key() argument 86 if (!iv || !transit_key || !secure_key || !tag || !auth_list || !key_format || in parse_wrapped_key() 106 *secure_key = KeymasterKeyBlob(record->secure_key->data, record->secure_key->length); in parse_wrapped_key() 107 if (record->secure_key->data && !secure_key->key_material) { in parse_wrapped_key()
|
/system/keymaster/include/keymaster/ |
D | wrapped_key.h | 43 ASN1_OCTET_STRING* secure_key; member 52 ASN1_SIMPLE(KM_WRAPPED_KEY, secure_key, ASN1_OCTET_STRING), 59 const KeymasterKeyBlob& secure_key, const KeymasterBlob& tag, 64 KeymasterKeyBlob* transit_key, KeymasterKeyBlob* secure_key,
|
/system/keymaster/tests/ |
D | wrapped_key_test.cpp | 73 KeymasterKeyBlob secure_key = {reinterpret_cast<const uint8_t*>(test_secure_key.c_str()), in TEST() local 79 build_wrapped_key(tk, iv, KM_KEY_FORMAT_RAW, secure_key, tag, authorization_list, &asn1), in TEST() 110 KeymasterKeyBlob secure_key; in TEST() local 117 EXPECT_EQ(parse_wrapped_key(wrapped_key, &iv, &transit_key, &secure_key, &tag, &auth_list, in TEST() 123 EXPECT_EQ(keyblob2string(secure_key), test_secure_key); in TEST()
|
/system/security/keystore2/tests/ |
D | keystore2_client_import_keys_tests.rs | 95 secure_key: &[u8], in build_secure_key_wrapper() 108 secure_key, in build_secure_key_wrapper() 119 encrypted_secure_key[secure_key.len()..(encrypted_secure_key.len())].to_vec(); in build_secure_key_wrapper() 120 let encrypted_secure_key: Vec<u8> = encrypted_secure_key[0..secure_key.len()].to_vec(); in build_secure_key_wrapper() 416 let mut secure_key = [0; 32]; in keystore2_create_wrapped_key_and_import_wrapped_key_success() localVariable 417 rand_bytes(&mut secure_key).unwrap(); in keystore2_create_wrapped_key_and_import_wrapped_key_success() 441 &secure_key, in keystore2_create_wrapped_key_and_import_wrapped_key_success() 473 let mut secure_key = [0; 32]; in keystore2_create_wrapped_key_with_invalid_aad_and_import_wrapped_key_fail() localVariable 474 rand_bytes(&mut secure_key).unwrap(); in keystore2_create_wrapped_key_with_invalid_aad_and_import_wrapped_key_fail() 497 &secure_key, in keystore2_create_wrapped_key_with_invalid_aad_and_import_wrapped_key_fail()
|
D | keystore2_client_test_utils.rs | 382 secure_key: &[u8], in encrypt_secure_key() 399 op.finish(Some(secure_key), None) in encrypt_secure_key()
|
/system/keymaster/contexts/ |
D | pure_soft_keymaster_context.cpp | 487 KeymasterKeyBlob secure_key; in UnwrapKey() local 490 error = parse_wrapped_key(wrapped_key_blob, &iv, &transit_key, &secure_key, &tag, in UnwrapKey() 583 if (!plaintext.Reinitialize(secure_key.key_material_size + tag.data_length)) { in UnwrapKey() 586 if (!encrypted_key.Reinitialize(secure_key.key_material_size + tag.data_length)) { in UnwrapKey() 589 if (!encrypted_key.write(secure_key.key_material, secure_key.key_material_size)) { in UnwrapKey()
|