Lines Matching refs:iv
72 static int ctr_aes_nx_crypt(struct skcipher_request *req, u8 *iv)
86 rc = nx_build_sg_lists(nx_ctx, iv, req->dst, req->src,
88 csbcpb->cpb.aes_ctr.iv);
102 memcpy(iv, csbcpb->cpb.aes_cbc.cv, AES_BLOCK_SIZE);
119 u8 iv[16];
121 memcpy(iv, nx_ctx->priv.ctr.nonce, CTR_RFC3686_NONCE_SIZE);
122 memcpy(iv + CTR_RFC3686_NONCE_SIZE, req->iv, CTR_RFC3686_IV_SIZE);
123 iv[12] = iv[13] = iv[14] = 0;
124 iv[15] = 1;
126 return ctr_aes_nx_crypt(req, iv);