Lines Matching refs:IV
73 #define IV AES_BLOCK_SIZE
847 chcr_req->sec_cpl.pldlen = htonl(IV + wrparam->bytes);
849 FILL_SEC_CPL_CIPHERSTOP_HI(0, 0, IV + 1, 0);
855 0, 0, IV >> 1);
887 temp = sizeof(struct cpl_rx_phys_dsgl) + dst_size + kctx_len + IV
1206 memcpy(req->iv, reqctx->init_iv, IV);
1276 pr_err("AES: Invalid value of Key Len %d nbytes %d IV Len %d\n",
1297 reqctx->imm = (transhdr_len + IV + req->cryptlen) <=
1299 bytes = IV + req->cryptlen;
1327 memcpy(reqctx->init_iv, reqctx->iv, IV);
1331 memcpy(reqctx->iv, req->iv, IV);
1332 memcpy(reqctx->init_iv, req->iv, IV);
1498 /*RFC3686 initialises IV counter value to 1, rfc3686(ctr(aes))
2392 reqctx->scratch_pad = reqctx->iv + IV;
2479 dnents += MIN_AUTH_SG; // For IV
2510 * Input order is AAD,IV and Payload. where IV should be included as
2516 chcr_req->sec_cpl.pldlen = htonl(req->assoclen + IV + req->cryptlen);
2518 null ? 0 : 1 + IV,
2519 null ? 0 : IV + req->assoclen,
2520 req->assoclen + IV + 1,
2524 null ? 0 : req->assoclen + IV + 1,
2535 IV >> 1);
2553 ulptx = (struct ulptx_sgl *)(ivptr + IV);
2562 memcpy(ivptr, req->iv, IV);
2567 temp = sizeof(struct cpl_rx_phys_dsgl) + dst_size + IV +
2605 reqctx->iv_dma = dma_map_single(dev, reqctx->iv, (IV + reqctx->b0_len),
2610 reqctx->b0_dma = reqctx->iv_dma + IV;
2638 dma_unmap_single(dev, reqctx->iv_dma, IV, DMA_BIDIRECTIONAL);
2667 dma_unmap_single(dev, reqctx->iv_dma, (IV + reqctx->b0_len),
2724 dsgl_walk_add_page(&dsgl_walk, IV + reqctx->b0_len, reqctx->iv_dma);
2739 memcpy(buf, reqctx->iv, IV);
2740 buf += IV;
2990 (req->assoclen + IV + 1 + ccm_xtra) : 0;
3000 htonl(req->assoclen + IV + req->cryptlen + ccm_xtra);
3003 1 + IV, IV + assoclen + ccm_xtra,
3004 req->assoclen + IV + 1 + ccm_xtra, 0);
3013 aeadctx->hmac_ctrl, IV >> 1);
3026 pr_err("CCM: IV check fails\n");
3074 dnents += MIN_CCM_SG; // For IV and B0
3113 ulptx = (struct ulptx_sgl *)(ivptr + IV);
3121 temp = sizeof(struct cpl_rx_phys_dsgl) + dst_size + IV +
3172 dnents += MIN_GCM_SG; // For IV
3202 htonl(req->assoclen + IV + req->cryptlen);
3204 assoclen ? 1 + IV : 0,
3205 assoclen ? IV + assoclen : 0,
3206 req->assoclen + IV + 1, 0);
3208 FILL_SEC_CPL_AUTHINSERT(0, req->assoclen + IV + 1,
3215 aeadctx->hmac_ctrl, IV >> 1);
3226 /* S A L T | IV | 0x00000001 */
3240 temp = sizeof(struct cpl_rx_phys_dsgl) + dst_size + IV +