Searched refs:cipher (Results 1 – 2 of 2) sorted by relevance
/test/vts-testcase/kernel/encryption/ |
D | metadata_encryption_tests.cpp | 148 bool CreateTestDevice(const std::string &cipher, 150 void VerifyDecryption(const std::vector<uint8_t> &key, const Cipher &cipher); 151 void DoTest(const std::string &cipher_string, const Cipher &cipher); 187 bool DmDefaultKeyTest::CreateTestDevice(const std::string &cipher, in CreateTestDevice() argument 193 cipher.c_str(), BytesToHex(key), in CreateTestDevice() 211 << cipher << "\", is_wrapped_key=" << is_wrapped_key in CreateTestDevice() 216 << " using cipher=\"" << cipher in CreateTestDevice() 223 const Cipher &cipher) { in VerifyDecryption() argument 236 ASSERT_GE(cipher.ivsize(), sizeof(__le64)); in VerifyDecryption() 237 std::unique_ptr<__le64> iv(new (::operator new(cipher.ivsize())) __le64); in VerifyDecryption() [all …]
|
D | file_based_encryption_tests.cpp | 358 const FscryptIV &starting_iv, const Cipher &cipher, 692 const Cipher &cipher, in VerifyCiphertext() argument 706 ASSERT_GE(sizeof(iv.bytes), cipher.ivsize()); in VerifyCiphertext() 707 ASSERT_TRUE(cipher.Encrypt(enc_key, iv.bytes, &plaintext[i], in VerifyCiphertext()
|