Lines Matching refs:a_ctx
517 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()
1155 struct sec_auth_ctx *auth_ctx = &ctx->a_ctx; in sec_aead_bd_fill()
1366 struct sec_auth_ctx *auth_ctx = &ctx->a_ctx; in sec_aead_ctx_init()
1389 crypto_free_shash(ctx->a_ctx.hash_tfm); in sec_aead_ctx_exit()