Home
last modified time | relevance | path

Searched refs:wrapped_key (Results 1 – 9 of 9) sorted by relevance

/system/keymaster/km_openssl/
Dwrapped_key.cpp46 UniquePtr<KM_WRAPPED_KEY, KM_WRAPPED_KEY_Delete> wrapped_key(KM_WRAPPED_KEY_new()); in build_wrapped_key() local
47 if (!wrapped_key.get()) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in build_wrapped_key()
49 if (!ASN1_OCTET_STRING_set(wrapped_key->transit_key, transit_key.key_material, in build_wrapped_key()
51 !ASN1_OCTET_STRING_set(wrapped_key->iv, iv.data, iv.data_length) || in build_wrapped_key()
52 !ASN1_OCTET_STRING_set(wrapped_key->secure_key, secure_key.key_material, in build_wrapped_key()
54 !ASN1_OCTET_STRING_set(wrapped_key->tag, tag.data, tag.data_length) || in build_wrapped_key()
55 !ASN1_INTEGER_set(wrapped_key->wrapped_key_description->key_format, key_format)) { in build_wrapped_key()
59 auto err = build_auth_list(auth_set, wrapped_key->wrapped_key_description->auth_list); in build_wrapped_key()
64 int len = i2d_KM_WRAPPED_KEY(wrapped_key.get(), nullptr); in build_wrapped_key()
73 len = i2d_KM_WRAPPED_KEY(wrapped_key.get(), &p); in build_wrapped_key()
[all …]
/system/keymaster/tests/
Dwrapped_key_test.cpp108 KeymasterKeyBlob wrapped_key = {reinterpret_cast<const uint8_t*>(test_wrapped_key.c_str()), in TEST() local
118 EXPECT_EQ(parse_wrapped_key(wrapped_key, &iv, &transit_key, &secure_key, &tag, &auth_list, in TEST()
Dandroid_keymaster_test.cpp1815 string wrapped_key = hex2str( variable
1943 KeymasterKeyBlob wrapped_key_blob(reinterpret_cast<const uint8_t*>(wrapped_key.c_str()), in TEST_F()
1944 wrapped_key.size()); in TEST_F()
2053 KeymasterKeyBlob wrapped_key_blob(reinterpret_cast<const uint8_t*>(wrapped_key.c_str()), in TEST_F()
2054 wrapped_key.size()); in TEST_F()
/system/keymaster/include/keymaster/
Dwrapped_key.h63 keymaster_error_t parse_wrapped_key(const KeymasterKeyBlob& wrapped_key, KeymasterBlob* iv,
Dandroid_keymaster_messages.h796 KeymasterKeyBlob wrapped_key; member
/system/keymaster/
DMakefile136 km_openssl/wrapped_key.cpp
381 km_openssl/wrapped_key.o \
428 km_openssl/wrapped_key.o \
DAndroid.bp118 "km_openssl/wrapped_key.cpp",
/system/keymaster/android_keymaster/
Dandroid_keymaster_messages.cpp635 return sizeof(uint32_t) /* wrapped_key_data_length */ + wrapped_key.key_material_size + in SerializedSize()
643 buf = serialize_key_blob(wrapped_key, buf, end); in Serialize()
652 return deserialize_key_blob(&wrapped_key, buf_ptr, end) && in Deserialize()
661 set_key_blob(&wrapped_key, key_material, length); in SetWrappedMaterial()
Dandroid_keymaster.cpp498 context_->UnwrapKey(request.wrapped_key, request.wrapping_key, request.additional_params, in ImportWrappedKey()