Searched refs:ciphertext1 (Results 1 – 2 of 2) sorted by relevance
/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 2250 string ciphertext1 = EncryptMessage(message, params); in TEST_P() local 2251 EXPECT_EQ(2048U / 8, ciphertext1.size()); in TEST_P() 2257 EXPECT_EQ(ciphertext1, ciphertext2); in TEST_P() 2370 string ciphertext1 = EncryptMessage(message, params); in TEST_P() local 2372 EXPECT_EQ(key_size / 8, ciphertext1.size()); in TEST_P() 2379 EXPECT_NE(ciphertext1, ciphertext2); in TEST_P() 2381 string plaintext1 = DecryptMessage(ciphertext1, params); in TEST_P() 2387 size_t offset_to_corrupt = random() % ciphertext1.size(); in TEST_P() 2391 } while (corrupt_byte == ciphertext1[offset_to_corrupt]); in TEST_P() 2392 ciphertext1[offset_to_corrupt] = corrupt_byte; in TEST_P() [all …]
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 2543 string ciphertext1 = EncryptMessage(message, params); in TEST_P() local 2544 EXPECT_EQ(1024U / 8, ciphertext1.size()); in TEST_P() 2550 EXPECT_EQ(ciphertext1, ciphertext2); in TEST_P() 2664 string ciphertext1 = EncryptMessage(message, params); in TEST_P() local 2666 EXPECT_EQ(key_size / 8, ciphertext1.size()); in TEST_P() 2673 EXPECT_NE(ciphertext1, ciphertext2); in TEST_P() 2675 string plaintext1 = DecryptMessage(ciphertext1, params); in TEST_P() 2681 size_t offset_to_corrupt = random() % ciphertext1.size(); in TEST_P() 2685 } while (corrupt_byte == ciphertext1[offset_to_corrupt]); in TEST_P() 2686 ciphertext1[offset_to_corrupt] = corrupt_byte; in TEST_P() [all …]
|