Home
last modified time | relevance | path

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

/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c517 struct sec_auth_ctx *a_ctx = &ctx->a_ctx; in sec_auth_init() local
519 a_ctx->a_key = dma_alloc_coherent(ctx->dev, SEC_MAX_AKEY_SIZE, in sec_auth_init()
520 &a_ctx->a_key_dma, GFP_KERNEL); in sec_auth_init()
521 if (!a_ctx->a_key) in sec_auth_init()
529 struct sec_auth_ctx *a_ctx = &ctx->a_ctx; in sec_auth_uninit() local
531 memzero_explicit(a_ctx->a_key, SEC_MAX_AKEY_SIZE); in sec_auth_uninit()
533 a_ctx->a_key, a_ctx->a_key_dma); in sec_auth_uninit()
893 ctx->a_ctx.a_alg = a_alg; in sec_aead_setkey()
895 ctx->a_ctx.mac_len = mac_len; in sec_aead_setkey()
907 ret = sec_aead_auth_set_key(&ctx->a_ctx, &keys); in sec_aead_setkey()
[all …]
Dsec.h140 struct sec_auth_ctx a_ctx; member
/drivers/crypto/chelsio/
Dchcr_algo.c219 struct chcr_dev *dev = a_ctx(tfm)->dev; in chcr_handle_aead_resp()
2373 struct uld_ctx *u_ctx = ULD_CTX(a_ctx(tfm)); in chcr_aead_common_exit()
2381 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); in chcr_aead_common_init()
2396 error = chcr_aead_dma_map(&ULD_CTX(a_ctx(tfm))->lldi.pdev->dev, req, in chcr_aead_common_init()
2425 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); in chcr_aead_fallback()
2443 struct chcr_context *ctx = a_ctx(tfm); in create_authenc_wr()
2569 create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, size, in create_authenc_wr()
2717 struct chcr_context *ctx = a_ctx(tfm); in chcr_add_aead_dst_ent()
2943 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); in ccm_format_packet()
2969 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