Home
last modified time | relevance | path

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

/system/keymaster/km_openssl/
Dwrapped_key.cpp40 keymaster_error_t build_wrapped_key(const KeymasterKeyBlob& transit_key, const KeymasterBlob& iv, in build_wrapped_key() argument
48 if (!ASN1_OCTET_STRING_set(wrapped_key->transit_key, transit_key.key_material, in build_wrapped_key()
49 transit_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()
101 *transit_key = KeymasterKeyBlob(record->transit_key->data, record->transit_key->length); in parse_wrapped_key()
102 if (record->transit_key->data && !transit_key->key_material) { in parse_wrapped_key()
/system/keymaster/include/keymaster/
Dwrapped_key.h40 ASN1_OCTET_STRING* transit_key; member
49 ASN1_SIMPLE(KM_WRAPPED_KEY, transit_key, ASN1_OCTET_STRING),
64 KeymasterKeyBlob* transit_key, KeymasterKeyBlob* secure_key,
/system/keymaster/tests/
Dwrapped_key_test.cpp111 KeymasterKeyBlob transit_key; in TEST() local
117 EXPECT_EQ(parse_wrapped_key(wrapped_key, &iv, &transit_key, &secure_key, &tag, &auth_list, in TEST()
/system/keymaster/contexts/
Dpure_soft_keymaster_context.cpp412 KeymasterKeyBlob transit_key; in UnwrapKey() local
416 error = parse_wrapped_key(wrapped_key_blob, &iv, &transit_key, &secure_key, &tag, in UnwrapKey()
449 if (!input.Reinitialize(transit_key.key_material, transit_key.key_material_size)) { in UnwrapKey()