Lines Matching refs:IV

74 #define IV AES_BLOCK_SIZE
840 chcr_req->sec_cpl.pldlen = htonl(IV + wrparam->bytes);
842 FILL_SEC_CPL_CIPHERSTOP_HI(0, 0, IV + 1, 0);
848 0, 0, IV >> 1);
880 temp = sizeof(struct cpl_rx_phys_dsgl) + dst_size + kctx_len + IV
1199 memcpy(req->iv, reqctx->init_iv, IV);
1269 pr_err("AES: Invalid value of Key Len %d nbytes %d IV Len %d\n",
1290 reqctx->imm = (transhdr_len + IV + req->cryptlen) <=
1292 bytes = IV + req->cryptlen;
1320 memcpy(reqctx->init_iv, reqctx->iv, IV);
1324 memcpy(reqctx->iv, req->iv, IV);
1325 memcpy(reqctx->init_iv, req->iv, IV);
1491 /*RFC3686 initialises IV counter value to 1, rfc3686(ctr(aes))
2387 reqctx->scratch_pad = reqctx->iv + IV;
2474 dnents += MIN_AUTH_SG; // For IV
2505 * Input order is AAD,IV and Payload. where IV should be included as
2511 chcr_req->sec_cpl.pldlen = htonl(req->assoclen + IV + req->cryptlen);
2513 null ? 0 : 1 + IV,
2514 null ? 0 : IV + req->assoclen,
2515 req->assoclen + IV + 1,
2519 null ? 0 : req->assoclen + IV + 1,
2530 IV >> 1);
2548 ulptx = (struct ulptx_sgl *)(ivptr + IV);
2557 memcpy(ivptr, req->iv, IV);
2562 temp = sizeof(struct cpl_rx_phys_dsgl) + dst_size + IV +
2600 reqctx->iv_dma = dma_map_single(dev, reqctx->iv, (IV + reqctx->b0_len),
2605 reqctx->b0_dma = reqctx->iv_dma + IV;
2633 dma_unmap_single(dev, reqctx->iv_dma, IV, DMA_BIDIRECTIONAL);
2662 dma_unmap_single(dev, reqctx->iv_dma, (IV + reqctx->b0_len),
2719 dsgl_walk_add_page(&dsgl_walk, IV + reqctx->b0_len, reqctx->iv_dma);
2734 memcpy(buf, reqctx->iv, IV);
2735 buf += IV;
2985 (req->assoclen + IV + 1 + ccm_xtra) : 0;
2995 htonl(req->assoclen + IV + req->cryptlen + ccm_xtra);
2998 1 + IV, IV + assoclen + ccm_xtra,
2999 req->assoclen + IV + 1 + ccm_xtra, 0);
3008 aeadctx->hmac_ctrl, IV >> 1);
3021 pr_err("CCM: IV check fails\n");
3069 dnents += MIN_CCM_SG; // For IV and B0
3108 ulptx = (struct ulptx_sgl *)(ivptr + IV);
3116 temp = sizeof(struct cpl_rx_phys_dsgl) + dst_size + IV +
3167 dnents += MIN_GCM_SG; // For IV
3197 htonl(req->assoclen + IV + req->cryptlen);
3199 assoclen ? 1 + IV : 0,
3200 assoclen ? IV + assoclen : 0,
3201 req->assoclen + IV + 1, 0);
3203 FILL_SEC_CPL_AUTHINSERT(0, req->assoclen + IV + 1,
3210 aeadctx->hmac_ctrl, IV >> 1);
3221 /* S A L T | IV | 0x00000001 */
3235 temp = sizeof(struct cpl_rx_phys_dsgl) + dst_size + IV +