Home
last modified time | relevance | path

Searched refs:sa_in (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/drivers/crypto/amcc/
Dcrypto4xx_alg.c84 req->cryptlen, iv, ivlen, decrypt ? ctx->sa_in : ctx->sa_out, in crypto4xx_crypt()
136 if (ctx->sa_in || ctx->sa_out) in crypto4xx_setkey_aes()
144 sa = ctx->sa_in; in crypto4xx_setkey_aes()
165 memcpy(ctx->sa_out, ctx->sa_in, ctx->sa_len * 4); in crypto4xx_setkey_aes()
393 if (ctx->sa_in || ctx->sa_out) in crypto4xx_setkey_aes_ccm()
401 sa = (struct dynamic_sa_ctl *) ctx->sa_in; in crypto4xx_setkey_aes_ccm()
421 memcpy(ctx->sa_out, ctx->sa_in, ctx->sa_len * 4); in crypto4xx_setkey_aes_ccm()
457 memcpy(tmp_sa, decrypt ? ctx->sa_in : ctx->sa_out, ctx->sa_len * 4); in crypto4xx_crypt_aes_ccm()
542 if (ctx->sa_in || ctx->sa_out) in crypto4xx_setkey_aes_gcm()
549 sa = (struct dynamic_sa_ctl *) ctx->sa_in; in crypto4xx_setkey_aes_gcm()
[all …]
Dcrypto4xx_core.c137 ctx->sa_in = kcalloc(size, 4, GFP_ATOMIC); in crypto4xx_alloc_sa()
138 if (ctx->sa_in == NULL) in crypto4xx_alloc_sa()
143 kfree(ctx->sa_in); in crypto4xx_alloc_sa()
144 ctx->sa_in = NULL; in crypto4xx_alloc_sa()
155 kfree(ctx->sa_in); in crypto4xx_free_sa()
156 ctx->sa_in = NULL; in crypto4xx_free_sa()
492 struct dynamic_sa_ctl *sa = (struct dynamic_sa_ctl *) ctx->sa_in; in crypto4xx_copy_digest_to_dst()
938 ctx->sa_in = NULL; in crypto4xx_ctx_init()
Dcrypto4xx_core.h120 struct dynamic_sa_ctl *sa_in; member