Lines Matching refs:iv
33 memcpy(req->iv, rctx->iv, AES_BLOCK_SIZE); in ccp_aes_complete()
83 if (!req->iv) in ccp_aes_crypt()
86 memcpy(rctx->iv, req->iv, AES_BLOCK_SIZE); in ccp_aes_crypt()
89 sg_init_one(iv_sg, rctx->iv, iv_len); in ccp_aes_crypt()
101 rctx->cmd.u.aes.iv = iv_sg; in ccp_aes_crypt()
139 req->iv = rctx->rfc3686_info; in ccp_aes_rfc3686_complete()
163 u8 *iv; in ccp_aes_rfc3686_crypt() local
166 iv = rctx->rfc3686_iv; in ccp_aes_rfc3686_crypt()
167 memcpy(iv, ctx->u.aes.nonce, CTR_RFC3686_NONCE_SIZE); in ccp_aes_rfc3686_crypt()
169 iv += CTR_RFC3686_NONCE_SIZE; in ccp_aes_rfc3686_crypt()
170 memcpy(iv, req->iv, CTR_RFC3686_IV_SIZE); in ccp_aes_rfc3686_crypt()
172 iv += CTR_RFC3686_IV_SIZE; in ccp_aes_rfc3686_crypt()
173 *(__be32 *)iv = cpu_to_be32(1); in ccp_aes_rfc3686_crypt()
176 rctx->rfc3686_info = req->iv; in ccp_aes_rfc3686_crypt()
177 req->iv = rctx->rfc3686_iv; in ccp_aes_rfc3686_crypt()