Home
last modified time | relevance | path

Searched refs:ciphertext (Results 1 – 6 of 6) sorted by relevance

/hardware/interfaces/keymaster/4.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp2081 string ciphertext = EncryptMessage(message, params); in TEST_P() local
2082 string plaintext = DecryptMessage(ciphertext, params); in TEST_P()
2184 string ciphertext = EncryptMessage(message, params); in TEST_P() local
2185 string plaintext = DecryptMessage(ciphertext, params); in TEST_P()
2274 string ciphertext = EncryptMessage(message, params); in TEST_P() local
2275 EXPECT_EQ(2048U / 8, ciphertext.size()); in TEST_P()
2278 string plaintext = DecryptMessage(ciphertext, params); in TEST_P()
2284 ciphertext = EncryptMessage(message, params); in TEST_P()
2285 EXPECT_EQ(2048U / 8, ciphertext.size()); in TEST_P()
2286 EXPECT_EQ(ciphertext, string(2048U / 8 - 1, 0) + message); in TEST_P()
[all …]
DKeymasterHidlTest.cpp480 string ciphertext = EncryptMessage(key_blob_, message, params, &out_params); in CheckAesCtrTestVector() local
481 EXPECT_EQ(expected_ciphertext, ciphertext); in CheckAesCtrTestVector()
549 string ciphertext = EncryptMessage(message, params, &out_params); in EncryptMessage() local
551 return ciphertext; in EncryptMessage()
559 string ciphertext = EncryptMessage(message, params, &out_params); in EncryptMessage() local
561 return ciphertext; in EncryptMessage()
569 string ciphertext = EncryptMessage(message, params, &out_params); in EncryptMessage() local
574 return ciphertext; in EncryptMessage()
585 string ciphertext = EncryptMessage(message, params, &out_params); in EncryptMessage() local
586 return ciphertext; in EncryptMessage()
[all …]
DKeymasterHidlTest.h197 string DecryptMessage(const HidlBuf& key_blob, const string& ciphertext,
199 string DecryptMessage(const string& ciphertext, const AuthorizationSet& params);
200 string DecryptMessage(const string& ciphertext, BlockMode block_mode, PaddingMode padding_mode,
/hardware/interfaces/keymaster/3.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp795 string ciphertext = EncryptMessage(key_blob_, message, params, &out_params); in CheckAesCtrTestVector() local
796 EXPECT_EQ(expected_ciphertext, ciphertext); in CheckAesCtrTestVector()
837 string ciphertext = EncryptMessage(message, params, &out_params); in EncryptMessage() local
840 return ciphertext; in EncryptMessage()
843 string DecryptMessage(const HidlBuf& key_blob, const string& ciphertext, in DecryptMessage() argument
848 ProcessMessage(key_blob, KeyPurpose::DECRYPT, ciphertext, params, &out_params); in DecryptMessage()
853 string DecryptMessage(const string& ciphertext, const AuthorizationSet& params) { in DecryptMessage() argument
855 return DecryptMessage(key_blob_, ciphertext, params); in DecryptMessage()
2499 string ciphertext = EncryptMessage(message, params); in TEST_P() local
2500 string plaintext = DecryptMessage(ciphertext, params); in TEST_P()
[all …]
/hardware/interfaces/keymaster/4.1/vts/functional/
DKeymaster4_1HidlTest.h109 auto [result, ciphertext, out_params] = ProcessMessage( in UseAesKey()
/hardware/interfaces/keymaster/4.0/
DIKeymasterDevice.hal1159 * For GCM encryption, the AEAD tag must be appended to the ciphertext by finish(). During
1278 * (Tag::MAC_LENGTH bytes) and append it to the returned ciphertext. During decryption,