Home
last modified time | relevance | path

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

/test/vts-testcase/kernel/encryption/
Dmetadata_encryption_tests.cpp146 bool CreateTestDevice(const std::string &cipher,
148 void VerifyDecryption(const std::vector<uint8_t> &key, const Cipher &cipher);
149 void DoTest(const std::string &cipher_string, const Cipher &cipher);
188 bool DmDefaultKeyTest::CreateTestDevice(const std::string &cipher, in CreateTestDevice() argument
194 cipher.c_str(), BytesToHex(key), in CreateTestDevice()
212 << cipher << "\", is_wrapped_key=" << is_wrapped_key in CreateTestDevice()
217 << " using cipher=\"" << cipher in CreateTestDevice()
224 const Cipher &cipher) { in VerifyDecryption() argument
237 ASSERT_GE(cipher.ivsize(), sizeof(__le64)); in VerifyDecryption()
238 std::unique_ptr<__le64> iv(new (::operator new(cipher.ivsize())) __le64); in VerifyDecryption()
[all …]
Dfile_based_encryption_tests.cpp495 const FscryptIV &starting_iv, const Cipher &cipher,
856 const Cipher &cipher, in VerifyCiphertext() argument
870 ASSERT_GE(sizeof(iv.bytes), cipher.ivsize()); in VerifyCiphertext()
871 ASSERT_TRUE(cipher.Encrypt(enc_key, iv.bytes, &plaintext[i], in VerifyCiphertext()