Home
last modified time | relevance | path

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

/system/keymaster/km_openssl/
Dwrapped_key.cpp41 keymaster_error_t build_wrapped_key(const KeymasterKeyBlob& transit_key, const KeymasterBlob& iv, in build_wrapped_key() argument
49 if (!ASN1_OCTET_STRING_set(wrapped_key->transit_key, transit_key.key_material, in build_wrapped_key()
50 transit_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()
102 *transit_key = KeymasterKeyBlob(record->transit_key->data, record->transit_key->length); in parse_wrapped_key()
103 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.cpp112 KeymasterKeyBlob transit_key; in TEST() local
118 EXPECT_EQ(parse_wrapped_key(wrapped_key, &iv, &transit_key, &secure_key, &tag, &auth_list, in TEST()
/system/keymaster/contexts/
Dpure_soft_keymaster_context.cpp311 KeymasterKeyBlob transit_key; in UnwrapKey() local
315 error = parse_wrapped_key(wrapped_key_blob, &iv, &transit_key, &secure_key, &tag, in UnwrapKey()
348 if (!input.Reinitialize(transit_key.key_material, transit_key.key_material_size)) { in UnwrapKey()