Lines Matching refs:ivptr
2451 u8 *ivptr; in create_authenc_wr() local
2546 ivptr = (u8 *)(phys_cpl + 1) + dst_size; in create_authenc_wr()
2547 ulptx = (struct ulptx_sgl *)(ivptr + IV); in create_authenc_wr()
2550 memcpy(ivptr, aeadctx->nonce, CTR_RFC3686_NONCE_SIZE); in create_authenc_wr()
2551 memcpy(ivptr + CTR_RFC3686_NONCE_SIZE, req->iv, in create_authenc_wr()
2553 *(__be32 *)(ivptr + CTR_RFC3686_NONCE_SIZE + in create_authenc_wr()
2556 memcpy(ivptr, req->iv, IV); in create_authenc_wr()
2891 static int generate_b0(struct aead_request *req, u8 *ivptr, in generate_b0() argument
2902 memcpy(b0, ivptr, 16); in generate_b0()
2930 u8 *ivptr, in ccm_format_packet() argument
2941 ivptr[0] = 3; in ccm_format_packet()
2942 memcpy(ivptr + 1, &aeadctx->salt[0], 3); in ccm_format_packet()
2943 memcpy(ivptr + 4, req->iv, 8); in ccm_format_packet()
2944 memset(ivptr + 12, 0, 4); in ccm_format_packet()
2946 memcpy(ivptr, req->iv, 16); in ccm_format_packet()
2951 rc = generate_b0(req, ivptr, op_type); in ccm_format_packet()
2953 memset(ivptr + 15 - ivptr[0], 0, ivptr[0] + 1); in ccm_format_packet()
3049 u8 *ivptr; in create_aead_ccm_wr() local
3106 ivptr = (u8 *)(phys_cpl + 1) + dst_size; in create_aead_ccm_wr()
3107 ulptx = (struct ulptx_sgl *)(ivptr + IV); in create_aead_ccm_wr()
3108 error = ccm_format_packet(req, ivptr, sub_type, reqctx->op, assoclen); in create_aead_ccm_wr()
3147 u8 *ivptr; in create_gcm_wr() local
3218 ivptr = (u8 *)(phys_cpl + 1) + dst_size; in create_gcm_wr()
3223 memcpy(ivptr, aeadctx->salt, 4); in create_gcm_wr()
3224 memcpy(ivptr + 4, req->iv, GCM_RFC4106_IV_SIZE); in create_gcm_wr()
3226 memcpy(ivptr, req->iv, GCM_AES_IV_SIZE); in create_gcm_wr()
3228 put_unaligned_be32(0x01, &ivptr[12]); in create_gcm_wr()
3229 ulptx = (struct ulptx_sgl *)(ivptr + 16); in create_gcm_wr()