Lines Matching refs:fctx

92 	if (memcmp(rctx->fctx.hmac.s.hmac_calc,
93 rctx->fctx.hmac.s.hmac_recv,
226 struct otx2_cpt_fc_ctx *fctx = &rctx->fctx;
258 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type;
259 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type;
260 fctx->enc.enc_ctrl.e.iv_source = OTX2_CPT_FROM_CPTR;
263 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len * 2);
265 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len);
267 memcpy(fctx->enc.encr_iv, req->iv, crypto_skcipher_ivsize(stfm));
269 cpu_to_be64s(&fctx->enc.enc_ctrl.u);
280 req_info->in[*argcnt].vptr = (u8 *)fctx;
370 rctx->fctx.enc.enc_ctrl.u = 0;
1048 struct otx2_cpt_fc_ctx *fctx = &rctx->fctx;
1059 fctx->enc.enc_ctrl.e.iv_source = OTX2_CPT_FROM_CPTR;
1061 memcpy(fctx->enc.encr_key, ctx->key + ctx->auth_key_len,
1064 memcpy(fctx->enc.encr_iv, req->iv, crypto_aead_ivsize(tfm));
1070 memcpy(fctx->hmac.e.ipad, ctx->ipad, ds);
1072 memcpy(fctx->hmac.e.opad, ctx->opad, ds);
1079 fctx->enc.enc_ctrl.e.iv_source = OTX2_CPT_FROM_DPTR;
1081 memcpy(fctx->enc.encr_key, ctx->key, ctx->enc_key_len);
1083 memcpy(fctx->enc.encr_iv, ctx->key + ctx->enc_key_len,
1109 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type;
1110 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type;
1111 fctx->enc.enc_ctrl.e.mac_type = ctx->mac_type;
1112 fctx->enc.enc_ctrl.e.mac_len = mac_len;
1113 cpu_to_be64s(&fctx->enc.enc_ctrl.u);
1124 req_info->in[*argcnt].vptr = (u8 *)fctx;
1269 rctx->fctx.hmac.s.hmac_recv, mac_len,
1274 req_info->out[argcnt].vptr = rctx->fctx.hmac.s.hmac_calc;
1322 rctx->fctx.enc.enc_ctrl.u = 0;