Searched refs:iv (Results 1 – 6 of 6) sorted by relevance
/test/vts-testcase/kernel/encryption/ |
D | file_based_encryption_tests.cpp | 700 FscryptIV iv = starting_iv; in VerifyCiphertext() local 709 ASSERT_GE(sizeof(iv.bytes), cipher.ivsize()); in VerifyCiphertext() 710 ASSERT_TRUE(cipher.Encrypt(enc_key, iv.bytes, &plaintext[i], in VerifyCiphertext() 714 iv.lblk_num = __cpu_to_le32(__le32_to_cpu(iv.lblk_num) + 1); in VerifyCiphertext() 720 static bool InitIVForPerFileKey(FscryptIV *iv) { in InitIVForPerFileKey() argument 721 memset(iv, 0, kFscryptMaxIVSize); in InitIVForPerFileKey() 725 static bool InitIVForDirectKey(const FscryptFileNonce &nonce, FscryptIV *iv) { in InitIVForDirectKey() argument 726 memset(iv, 0, kFscryptMaxIVSize); in InitIVForDirectKey() 727 memcpy(iv->file_nonce, nonce.bytes, kFscryptFileNonceSize); in InitIVForDirectKey() 731 static bool InitIVForInoLblk64(uint64_t inode_number, FscryptIV *iv) { in InitIVForInoLblk64() argument [all …]
|
D | vts_kernel_encryption.h | 30 bool Encrypt(const std::vector<uint8_t> &key, const uint8_t *iv, in Encrypt() argument 36 return DoEncrypt(key.data(), iv, src, dst, nbytes); in Encrypt() 38 virtual bool DoEncrypt(const uint8_t *key, const uint8_t *iv, 53 bool DoEncrypt(const uint8_t *key, const uint8_t *iv, const uint8_t *src, 68 bool DoEncrypt(const uint8_t *key, const uint8_t *iv, const uint8_t *src,
|
D | adiantum.cpp | 92 const uint8_t iv[16]) { in ChaChaInitState() 101 state[12 + i] = get_unaligned_le32(&iv[i * sizeof(__le32)]); in ChaChaInitState() 243 const uint8_t iv[kAdiantumIVSize], const uint8_t *msg, in AdiantumHash() 263 memcpy(&header[kPoly1305BlockSize], iv, kAdiantumIVSize); in AdiantumHash() 282 const uint8_t iv[kAdiantumIVSize], in DoEncrypt() 309 AdiantumHash(&subkeys[kAes256KeySize], iv, src, bulk_len, hash); in DoEncrypt() 320 AdiantumHash(&subkeys[kAes256KeySize], iv, dst, bulk_len, hash); in DoEncrypt()
|
D | metadata_encryption_tests.cpp | 237 std::unique_ptr<__le64> iv(new (::operator new(cipher.ivsize())) __le64); in VerifyDecryption() local 238 memset(iv.get(), 0, cipher.ivsize()); in VerifyDecryption() 244 ASSERT_TRUE(cipher.Encrypt(key, reinterpret_cast<const uint8_t *>(iv.get()), in VerifyDecryption() 249 *iv = cpu_to_le64(le64_to_cpu(*iv) + 1); in VerifyDecryption()
|
D | aes_256_xts.cpp | 53 const uint8_t iv[kAesBlockSize], in DoEncrypt() 80 if (EVP_EncryptUpdate(ctx.get(), tweak, &outl, iv, kAesBlockSize) != 1 || in DoEncrypt()
|
/test/mlts/models/assets/asr_float/ |
D | LICENSE | 233 iv. a notice that refers to the disclaimer of
|