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.cpp148 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 …]
Dfile_based_encryption_tests.cpp361 const FscryptIV &starting_iv, const Cipher &cipher,
695 const Cipher &cipher, in VerifyCiphertext() argument
709 ASSERT_GE(sizeof(iv.bytes), cipher.ivsize()); in VerifyCiphertext()
710 ASSERT_TRUE(cipher.Encrypt(enc_key, iv.bytes, &plaintext[i], in VerifyCiphertext()