Lines Matching defs:iv
169 static int gmac(struct aead_request *req, const u8 *iv, unsigned int assoclen)
192 memcpy(csbcpb->cpb.aes_gcm.iv_or_cnt, iv, AES_BLOCK_SIZE);
242 static int gcm_empty(struct aead_request *req, const u8 *iv, int enc)
269 in_sg = nx_build_sg_list(nx_ctx->in_sg, (u8 *) iv,
322 *(u32 *)&rctx->iv[NX_GCM_CTR_OFFSET] = 1;
326 rc = gcm_empty(req, rctx->iv, enc);
328 rc = gmac(req, rctx->iv, assoclen);
357 rc = nx_build_sg_lists(nx_ctx, rctx->iv, req->dst,
376 memcpy(rctx->iv, csbcpb->cpb.aes_gcm.out_cnt, AES_BLOCK_SIZE);
419 char *iv = rctx->iv;
421 memcpy(iv, req->iv, GCM_AES_IV_SIZE);
429 char *iv = rctx->iv;
431 memcpy(iv, req->iv, GCM_AES_IV_SIZE);
441 char *iv = rctx->iv;
444 memcpy(iv, nonce, NX_GCM4106_NONCE_LEN);
445 memcpy(iv + NX_GCM4106_NONCE_LEN, req->iv, 8);
458 char *iv = rctx->iv;
461 memcpy(iv, nonce, NX_GCM4106_NONCE_LEN);
462 memcpy(iv + NX_GCM4106_NONCE_LEN, req->iv, 8);