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.cpp143 bool CreateTestDevice(const std::string &cipher,
145 void VerifyDecryption(const std::vector<uint8_t> &key, const Cipher &cipher);
146 void DoTest(const std::string &cipher_string, const Cipher &cipher);
185 bool DmDefaultKeyTest::CreateTestDevice(const std::string &cipher, in CreateTestDevice() argument
191 cipher.c_str(), BytesToHex(key), in CreateTestDevice()
209 << cipher << "\", is_wrapped_key=" << is_wrapped_key in CreateTestDevice()
214 << " using cipher=\"" << cipher in CreateTestDevice()
221 const Cipher &cipher) { in VerifyDecryption() argument
234 ASSERT_GE(cipher.ivsize(), sizeof(__le64)); in VerifyDecryption()
235 std::unique_ptr<__le64> iv(new (::operator new(cipher.ivsize())) __le64); in VerifyDecryption()
[all …]
Dfile_based_encryption_tests.cpp523 const FscryptIV &starting_iv, const Cipher &cipher,
909 const Cipher &cipher, in VerifyCiphertext() argument
931 ASSERT_GE(sizeof(iv.bytes), cipher.ivsize()); in VerifyCiphertext()
932 ASSERT_TRUE(cipher.Encrypt(enc_key, iv.bytes, &plaintext[i], in VerifyCiphertext()