Lines Matching refs:iv

241 				     cryptlen, req->iv);  in authenc_esn_verify_ahash_update_done()
290 cryptlen, req->iv); in authenc_esn_verify_ahash_update_done2()
330 cryptlen, req->iv); in authenc_esn_verify_ahash_done()
386 static int crypto_authenc_esn_genicv(struct aead_request *req, u8 *iv, in crypto_authenc_esn_genicv() argument
409 sg_set_buf(cipher, iv, ivsize); in crypto_authenc_esn_genicv()
410 scatterwalk_crypto_chain(cipher, dst, vdst == iv + ivsize, 2); in crypto_authenc_esn_genicv()
461 u8 *iv = (u8 *)(abreq + 1) + in crypto_authenc_esn_encrypt_done() local
464 err = crypto_authenc_esn_genicv(areq, iv, 0); in crypto_authenc_esn_encrypt_done()
480 u8 *iv = (u8 *)abreq - crypto_ablkcipher_ivsize(enc); in crypto_authenc_esn_encrypt() local
486 ablkcipher_request_set_crypt(abreq, req->src, dst, cryptlen, req->iv); in crypto_authenc_esn_encrypt()
488 memcpy(iv, req->iv, crypto_aead_ivsize(authenc_esn)); in crypto_authenc_esn_encrypt()
494 return crypto_authenc_esn_genicv(req, iv, CRYPTO_TFM_REQ_MAY_SLEEP); in crypto_authenc_esn_encrypt()
517 u8 *iv = req->giv; in crypto_authenc_esn_givencrypt() local
524 areq->iv); in crypto_authenc_esn_givencrypt()
525 skcipher_givcrypt_set_giv(greq, iv, req->seq); in crypto_authenc_esn_givencrypt()
531 return crypto_authenc_esn_genicv(areq, iv, CRYPTO_TFM_REQ_MAY_SLEEP); in crypto_authenc_esn_givencrypt()
556 static int crypto_authenc_esn_iverify(struct aead_request *req, u8 *iv, in crypto_authenc_esn_iverify() argument
577 sg_set_buf(cipher, iv, ivsize); in crypto_authenc_esn_iverify()
578 scatterwalk_crypto_chain(cipher, src, vsrc == iv + ivsize, 2); in crypto_authenc_esn_iverify()
620 u8 *iv = req->iv; in crypto_authenc_esn_decrypt() local
627 err = crypto_authenc_esn_iverify(req, iv, cryptlen); in crypto_authenc_esn_decrypt()
634 ablkcipher_request_set_crypt(abreq, req->src, req->dst, cryptlen, iv); in crypto_authenc_esn_decrypt()