Lines Matching full:iv
5 * This template encapsulates the ESSIV IV generation algorithm used by
8 * skcipher key as encryption key. Usually, the input IV is a 64-bit sector
9 * number in LE representation zero-padded to the size of the IV, but this
18 * as the authenc template, and deals with the way the encrypted IV is
147 crypto_cipher_encrypt_one(tctx->essiv_cipher, req->iv, req->iv); in essiv_skcipher_crypt()
151 req->iv); in essiv_skcipher_crypt()
197 crypto_cipher_encrypt_one(tctx->essiv_cipher, req->iv, req->iv); in essiv_aead_crypt()
200 * dm-crypt embeds the sector number and the IV in the AAD region, so in essiv_aead_crypt()
201 * we have to copy the converted IV into the right scatterlist before in essiv_aead_crypt()
206 scatterwalk_map_and_copy(req->iv, req->dst, ssize, ivsize, 1); in essiv_aead_crypt()
208 u8 *iv = (u8 *)aead_request_ctx(req) + tctx->ivoffset; in essiv_aead_crypt() local
216 memcpy(iv, req->iv, ivsize); in essiv_aead_crypt()
236 sg_set_buf(rctx->sg + 1, iv, ivsize); in essiv_aead_crypt()
248 aead_request_set_crypt(subreq, src, req->dst, req->cryptlen, req->iv); in essiv_aead_crypt()