Searched refs:sec_key_wrapper (Results 1 – 1 of 1) sorted by relevance
/system/security/keystore2/test_utils/ |
D | ffi_test_utils.cpp | 382 keymaster::UniquePtr<TEST_SECURE_KEY_WRAPPER, TEST_SECURE_KEY_WRAPPER_Delete> sec_key_wrapper( in createWrappedKey() local 384 if (!sec_key_wrapper.get()) { in createWrappedKey() 391 if (!ASN1_INTEGER_set(sec_key_wrapper->version, 0)) { in createWrappedKey() 400 !ASN1_OCTET_STRING_set(sec_key_wrapper->encrypted_transport_key, enc_transport_key_data, in createWrappedKey() 409 if (enc_secure_key_size && !ASN1_OCTET_STRING_set(sec_key_wrapper->encrypted_key, in createWrappedKey() 419 error = build_auth_list(auth_list, sec_key_wrapper->key_desc->key_params); in createWrappedKey() 426 if (!ASN1_INTEGER_set(sec_key_wrapper->key_desc->key_format, KM_KEY_FORMAT_RAW)) { in createWrappedKey() 435 !ASN1_OCTET_STRING_set(sec_key_wrapper->initialization_vector, iv_data, iv_size)) { in createWrappedKey() 443 if (tag_size && !ASN1_OCTET_STRING_set(sec_key_wrapper->tag, tag_data, tag_size)) { in createWrappedKey() 451 int asn1_data_len = i2d_TEST_SECURE_KEY_WRAPPER(sec_key_wrapper.get(), nullptr); in createWrappedKey() [all …]
|