Searched refs:wrapped_key (Results 1 – 9 of 9) sorted by relevance
/system/keymaster/km_openssl/ |
D | wrapped_key.cpp | 46 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/ |
D | wrapped_key_test.cpp | 108 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()
|
D | android_keymaster_test.cpp | 1815 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/ |
D | wrapped_key.h | 63 keymaster_error_t parse_wrapped_key(const KeymasterKeyBlob& wrapped_key, KeymasterBlob* iv,
|
D | android_keymaster_messages.h | 796 KeymasterKeyBlob wrapped_key; member
|
/system/keymaster/ |
D | Makefile | 136 km_openssl/wrapped_key.cpp 381 km_openssl/wrapped_key.o \ 428 km_openssl/wrapped_key.o \
|
D | Android.bp | 118 "km_openssl/wrapped_key.cpp",
|
/system/keymaster/android_keymaster/ |
D | android_keymaster_messages.cpp | 635 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()
|
D | android_keymaster.cpp | 498 context_->UnwrapKey(request.wrapped_key, request.wrapping_key, request.additional_params, in ImportWrappedKey()
|