Home
last modified time | relevance | path

Searched refs:secure_key (Results 1 – 4 of 4) sorted by relevance

/system/keymaster/km_openssl/
Dwrapped_key.cpp43 const KeymasterKeyBlob& secure_key, const KeymasterBlob& tag, in build_wrapped_key() argument
52 !ASN1_OCTET_STRING_set(wrapped_key->secure_key, secure_key.key_material, in build_wrapped_key()
53 secure_key.key_material_size) || in build_wrapped_key()
83 KeymasterKeyBlob* transit_key, KeymasterKeyBlob* secure_key, in parse_wrapped_key() argument
87 if (!iv || !transit_key || !secure_key || !tag || !auth_list || !key_format || in parse_wrapped_key()
107 *secure_key = KeymasterKeyBlob(record->secure_key->data, record->secure_key->length); in parse_wrapped_key()
108 if (record->secure_key->data && !secure_key->key_material) { in parse_wrapped_key()
/system/keymaster/include/keymaster/
Dwrapped_key.h43 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/
Dwrapped_key_test.cpp74 KeymasterKeyBlob secure_key = {reinterpret_cast<const uint8_t*>(test_secure_key.c_str()), in TEST() local
80 build_wrapped_key(tk, iv, KM_KEY_FORMAT_RAW, secure_key, tag, authorization_list, &asn1), in TEST()
111 KeymasterKeyBlob secure_key; in TEST() local
118 EXPECT_EQ(parse_wrapped_key(wrapped_key, &iv, &transit_key, &secure_key, &tag, &auth_list, in TEST()
124 EXPECT_EQ(keyblob2string(secure_key), test_secure_key); in TEST()
/system/keymaster/contexts/
Dpure_soft_keymaster_context.cpp312 KeymasterKeyBlob secure_key; in UnwrapKey() local
315 error = parse_wrapped_key(wrapped_key_blob, &iv, &transit_key, &secure_key, &tag, in UnwrapKey()
407 if (!plaintext.Reinitialize(secure_key.key_material_size + tag.data_length)) { in UnwrapKey()
410 if (!encrypted_key.Reinitialize(secure_key.key_material_size + tag.data_length)) { in UnwrapKey()
413 if (!encrypted_key.write(secure_key.key_material, secure_key.key_material_size)) { in UnwrapKey()