Lines Matching refs:iv
212 cryptlen, req->iv); in authenc_verify_ahash_update_done()
251 cryptlen, req->iv); in authenc_verify_ahash_done()
324 static int crypto_authenc_genicv(struct aead_request *req, u8 *iv, in crypto_authenc_genicv() argument
345 sg_set_buf(cipher, iv, ivsize); in crypto_authenc_genicv()
346 scatterwalk_crypto_chain(cipher, dst, vdst == iv + ivsize, 2); in crypto_authenc_genicv()
386 u8 *iv = (u8 *)abreq - crypto_ablkcipher_ivsize(ctx->enc); in crypto_authenc_encrypt_done() local
388 err = crypto_authenc_genicv(areq, iv, 0); in crypto_authenc_encrypt_done()
404 u8 *iv = (u8 *)abreq - crypto_ablkcipher_ivsize(enc); in crypto_authenc_encrypt() local
410 ablkcipher_request_set_crypt(abreq, req->src, dst, cryptlen, req->iv); in crypto_authenc_encrypt()
412 memcpy(iv, req->iv, crypto_aead_ivsize(authenc)); in crypto_authenc_encrypt()
418 return crypto_authenc_genicv(req, iv, CRYPTO_TFM_REQ_MAY_SLEEP); in crypto_authenc_encrypt()
441 u8 *iv = req->giv; in crypto_authenc_givencrypt() local
448 areq->iv); in crypto_authenc_givencrypt()
449 skcipher_givcrypt_set_giv(greq, iv, req->seq); in crypto_authenc_givencrypt()
455 return crypto_authenc_genicv(areq, iv, CRYPTO_TFM_REQ_MAY_SLEEP); in crypto_authenc_givencrypt()
481 static int crypto_authenc_iverify(struct aead_request *req, u8 *iv, in crypto_authenc_iverify() argument
500 sg_set_buf(cipher, iv, ivsize); in crypto_authenc_iverify()
501 scatterwalk_crypto_chain(cipher, src, vsrc == iv + ivsize, 2); in crypto_authenc_iverify()
528 u8 *iv = req->iv; in crypto_authenc_decrypt() local
535 err = crypto_authenc_iverify(req, iv, cryptlen); in crypto_authenc_decrypt()
542 ablkcipher_request_set_crypt(abreq, req->src, req->dst, cryptlen, iv); in crypto_authenc_decrypt()