Home
last modified time | relevance | path

Searched refs:make_string (Results 1 – 3 of 3) sorted by relevance

/system/keymaster/tests/
Dandroid_keymaster_test_utils.h140 inline std::string make_string(const uint8_t* data, size_t length) { in make_string() function
144 template <size_t N> std::string make_string(const uint8_t (&a)[N]) { in make_string() function
145 return make_string(a, N); in make_string()
Dandroid_keymaster_test.cpp762 CheckHmacTestVector(key, message, KM_DIGEST_SHA_2_224, make_string(sha_224_expected)); in TEST_P()
763 CheckHmacTestVector(key, message, KM_DIGEST_SHA_2_256, make_string(sha_256_expected)); in TEST_P()
764 CheckHmacTestVector(key, message, KM_DIGEST_SHA_2_384, make_string(sha_384_expected)); in TEST_P()
765 CheckHmacTestVector(key, message, KM_DIGEST_SHA_2_512, make_string(sha_512_expected)); in TEST_P()
773 string key = make_string(key_data); in TEST_P()
798 CheckHmacTestVector(key, message, KM_DIGEST_SHA_2_224, make_string(sha_224_expected)); in TEST_P()
799 CheckHmacTestVector(key, message, KM_DIGEST_SHA_2_256, make_string(sha_256_expected)); in TEST_P()
800 CheckHmacTestVector(key, message, KM_DIGEST_SHA_2_384, make_string(sha_384_expected)); in TEST_P()
801 CheckHmacTestVector(key, message, KM_DIGEST_SHA_2_512, make_string(sha_512_expected)); in TEST_P()
825 CheckHmacTestVector(key, message, KM_DIGEST_SHA_2_224, make_string(sha_224_expected)); in TEST_P()
[all …]
Dandroid_keymaster_test_utils.cpp474 *generated_nonce = make_string(nonce_blob.data, nonce_blob.data_length); in EncryptMessage()
513 *generated_nonce = make_string(nonce_blob.data, nonce_blob.data_length); in EncryptMessage()
532 *generated_nonce = make_string(nonce_blob.data, nonce_blob.data_length); in EncryptMessage()
551 *generated_nonce = make_string(nonce_blob.data, nonce_blob.data_length); in EncryptMessage()