Searched refs:nonce (Results 1 – 2 of 2) sorted by relevance
/test/vts-testcase/kernel/encryption/ |
D | file_based_encryption_tests.cpp | 133 FscryptFileNonce nonce; member 358 const FscryptFileNonce &nonce, 590 if (ioctl(fd, FS_IOC_GET_ENCRYPTION_NONCE, info->nonce.bytes) != 0) { in GenerateTestFile() 595 GTEST_LOG_(INFO) << "File nonce: " << BytesToHex(info->nonce.bytes); in GenerateTestFile() 651 const std::vector<uint8_t> &master_key, const FscryptFileNonce &nonce, in DerivePerFileEncryptionKey() argument 655 hkdf_info.insert(hkdf_info.end(), nonce.bytes, std::end(nonce.bytes)); in DerivePerFileEncryptionKey() 725 static bool InitIVForDirectKey(const FscryptFileNonce &nonce, FscryptIV *iv) { in InitIVForDirectKey() argument 727 memcpy(iv->file_nonce, nonce.bytes, kFscryptFileNonceSize); in InitIVForDirectKey() 766 ASSERT_TRUE(DerivePerFileEncryptionKey(master_key, file_info.nonce, enc_key)); in TEST_F() 994 ASSERT_TRUE(InitIVForDirectKey(file_info.nonce, &iv)); in TEST_F()
|
D | adiantum.cpp | 133 const uint8_t nonce[kXChaChaNonceSize], const uint8_t *src, in XChaCha() 141 ChaChaInitState(state, key, nonce); in XChaCha() 148 memcpy(&real_iv[8], nonce + 16, 8); in XChaCha() 178 const uint8_t nonce[kXChaChaNonceSize], in XChaCha12() 180 XChaCha(key, nonce, src, dst, nbytes, 12); in XChaCha12()
|