Home
last modified time | relevance | path

Searched refs:a_ctx (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c519 struct sec_auth_ctx *a_ctx = &ctx->a_ctx; in sec_auth_init() local
521 a_ctx->a_key = dma_alloc_coherent(SEC_CTX_DEV(ctx), SEC_MAX_KEY_SIZE, in sec_auth_init()
522 &a_ctx->a_key_dma, GFP_KERNEL); in sec_auth_init()
523 if (!a_ctx->a_key) in sec_auth_init()
531 struct sec_auth_ctx *a_ctx = &ctx->a_ctx; in sec_auth_uninit() local
533 memzero_explicit(a_ctx->a_key, SEC_MAX_KEY_SIZE); in sec_auth_uninit()
535 a_ctx->a_key, a_ctx->a_key_dma); in sec_auth_uninit()
895 ctx->a_ctx.a_alg = a_alg; in sec_aead_setkey()
897 ctx->a_ctx.mac_len = mac_len; in sec_aead_setkey()
909 ret = sec_aead_auth_set_key(&ctx->a_ctx, &keys); in sec_aead_setkey()
[all …]
Dsec.h142 struct sec_auth_ctx a_ctx; member
/Linux-v5.10/drivers/crypto/chelsio/
Dchcr_algo.c219 struct chcr_dev *dev = a_ctx(tfm)->dev; in chcr_handle_aead_resp()
2369 struct uld_ctx *u_ctx = ULD_CTX(a_ctx(tfm)); in chcr_aead_common_exit()
2377 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); in chcr_aead_common_init()
2392 error = chcr_aead_dma_map(&ULD_CTX(a_ctx(tfm))->lldi.pdev->dev, req, in chcr_aead_common_init()
2421 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); in chcr_aead_fallback()
2439 struct chcr_context *ctx = a_ctx(tfm); in create_authenc_wr()
2563 create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, size, in create_authenc_wr()
2711 struct chcr_context *ctx = a_ctx(tfm); in chcr_add_aead_dst_ent()
2933 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); in ccm_format_packet()
2959 struct chcr_context *ctx = a_ctx(tfm); in fill_sec_cpl_for_aead()
[all …]
Dchcr_crypto.h158 static inline struct chcr_context *a_ctx(struct crypto_aead *tfm) in a_ctx() function