Home
last modified time | relevance | path

Searched refs:iv (Results 1 – 14 of 14) 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
51 !ASN1_OCTET_STRING_set(wrapped_key->iv, iv.data, iv.data_length) || in build_wrapped_key()
82 keymaster_error_t parse_wrapped_key(const KeymasterKeyBlob& wrapped_key, KeymasterBlob* iv, in parse_wrapped_key() argument
87 if (!iv || !transit_key || !secure_key || !tag || !auth_list || !key_format || in parse_wrapped_key()
97 *iv = KeymasterBlob(record->iv->data, record->iv->length); in parse_wrapped_key()
98 if (record->iv->data && !iv->data) { in parse_wrapped_key()
/system/bt/btif/src/
Dbtif_sock_util.cc116 struct iovec iv; in sock_send_fd() local
117 memset(&iv, 0, sizeof(iv)); in sock_send_fd()
119 iv.iov_base = buffer; in sock_send_fd()
120 iv.iov_len = len; in sock_send_fd()
122 msg.msg_iov = &iv; in sock_send_fd()
/system/keymaster/include/keymaster/
Dwrapped_key.h41 ASN1_OCTET_STRING* iv; member
50 ASN1_SIMPLE(KM_WRAPPED_KEY, iv, ASN1_OCTET_STRING),
58 const KeymasterBlob& iv, keymaster_key_format_t key_format,
63 keymaster_error_t parse_wrapped_key(const KeymasterKeyBlob& wrapped_key, KeymasterBlob* iv,
/system/keymaster/tests/
Dwrapped_key_test.cpp71 KeymasterBlob iv = {reinterpret_cast<const uint8_t*>(test_iv.c_str()), test_iv.size()}; in TEST() local
80 build_wrapped_key(tk, iv, KM_KEY_FORMAT_RAW, secure_key, tag, authorization_list, &asn1), in TEST()
113 KeymasterBlob iv; in TEST() local
118 EXPECT_EQ(parse_wrapped_key(wrapped_key, &iv, &transit_key, &secure_key, &tag, &auth_list, in TEST()
123 EXPECT_EQ(blob2string(iv), test_iv); in TEST()
Dandroid_keymaster_test_utils.cpp662 const string& iv, const string& input, in CheckTripleDesTestVector() argument
668 if (iv.size()) authset.Authorization(TAG_CALLER_NONCE); in CheckTripleDesTestVector()
673 if (iv.size()) begin_params.push_back(TAG_NONCE, iv.data(), iv.size()); in CheckTripleDesTestVector()
Dandroid_keymaster_test.cpp2906 string iv; in TEST_P() local
2907 string ciphertext = EncryptMessage(message, KM_MODE_CBC, KM_PAD_PKCS7, &iv); in TEST_P()
2909 string plaintext = DecryptMessage(ciphertext, KM_MODE_CBC, KM_PAD_PKCS7, iv); in TEST_P()
3491 const char* iv; member
3645 hex2str(test.key), hex2str(test.iv), hex2str(test.input), in TEST_P()
3783 string iv; in TEST_P() local
3784 string ciphertext = EncryptMessage(message, KM_MODE_CBC, KM_PAD_PKCS7, &iv); in TEST_P()
3786 string plaintext = DecryptMessage(ciphertext, KM_MODE_CBC, KM_PAD_PKCS7, iv); in TEST_P()
3814 string iv; in TEST_P() local
3815 string ciphertext = EncryptMessage(message, KM_MODE_CBC, KM_PAD_PKCS7, &iv); in TEST_P()
[all …]
Dandroid_keymaster_test_utils.h297 const std::string& iv, const std::string& message,
/system/libvintf/
DKernelConfigTypedValue.cpp75 KernelConfigIntValue iv; in matchValue() local
76 return parseKernelConfigInt(s, &iv) && iv == mIntegerValue; in matchValue()
/system/bt/stack/crypto_toolbox/
Daes.h93 int n_block, unsigned char iv[N_BLOCK],
103 int n_block, unsigned char iv[N_BLOCK],
Daes.cc627 int n_block, unsigned char iv[N_BLOCK],
630 xor_block(iv, in);
631 if (aes_encrypt(iv, iv, ctx) != EXIT_SUCCESS) return EXIT_FAILURE;
632 memcpy(out, iv, N_BLOCK);
674 int n_block, unsigned char iv[N_BLOCK],
681 xor_block(out, iv);
682 memcpy(iv, tmp, N_BLOCK);
/system/keymaster/contexts/
Dpure_soft_keymaster_context.cpp272 KeymasterBlob iv; in UnwrapKey() local
277 error = parse_wrapped_key(wrapped_key_blob, &iv, &transit_key, &secure_key, &tag, in UnwrapKey()
333 .Authorization(TAG_NONCE, iv) in UnwrapKey()
342 .Authorization(TAG_NONCE, iv) in UnwrapKey()
/system/security/keystore/
Dblob.cpp89 const std::vector<uint8_t>& key, const uint8_t* iv, uint8_t* tag) { in AES_gcm_encrypt() argument
96 EVP_EncryptInit_ex(ctx.get(), cipher, nullptr /* engine */, key.data(), iv); in AES_gcm_encrypt()
125 const std::vector<uint8_t> key, const uint8_t* iv, in AES_gcm_decrypt() argument
133 EVP_DecryptInit_ex(ctx.get(), cipher, nullptr /* engine */, key.data(), iv); in AES_gcm_decrypt()
/system/extras/power_profile/camera_avg/
DLICENSE471 iv. a notice that refers to the disclaimer of
/system/extras/simpleperf/scripts/inferno/
Dinferno.b641 …xWkWSgNaqT5fIbAwnDyU8+o4v+0PvxL3Paz/729J/u6B360PK4odo8WPMncQwDOOlmPHXMAxjw/iv/A10chr0+98c69lxGU6eq…