Home
last modified time | relevance | path

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

/test/vts-testcase/kernel/encryption/
Dfile_based_encryption_tests.cpp130 std::vector<uint8_t> plaintext; member
308 static bool WriteTestFile(const std::vector<uint8_t> &plaintext, in WriteTestFile() argument
313 << plaintext.size() << " bytes of data"; in WriteTestFile()
320 if (!android::base::WriteFully(fd, plaintext.data(), plaintext.size())) { in WriteTestFile()
326 if (!ReadRawDataOfFile(fd, blk_device, plaintext.size(), ciphertext)) { in WriteTestFile()
572 info->plaintext.resize(kTestFileBytes); in GenerateTestFile()
573 RandomBytesForTesting(info->plaintext); in GenerateTestFile()
575 if (!WriteTestFile(info->plaintext, kTestFile, fs_info_.raw_blk_device, in GenerateTestFile()
697 const std::vector<uint8_t> &plaintext = file_info.plaintext; in VerifyCiphertext() local
702 std::vector<uint8_t> computed_ciphertext(plaintext.size()); in VerifyCiphertext()
[all …]