Lines Matching +full:aes +full:- +full:cmac
1 // SPDX-License-Identifier: GPL-2.0-or-later
34 crypto_free_shash(shash->tfm); in free_shash()
45 tfm = crypto_alloc_aead("gcm(aes)", 0, 0); in alloc_aead()
48 tfm = crypto_alloc_aead("ccm(aes)", 0, 0); in alloc_aead()
76 tfm = crypto_alloc_shash("cmac(aes)", 0, 0); in alloc_shash_desc()
96 shash->tfm = tfm; in alloc_shash_desc()
105 free_shash(ctx->desc[i]); in ctx_free()
107 free_aead(ctx->ccmaes[i]); in ctx_free()
121 list_del(&ctx->list); in ksmbd_find_crypto_ctx()
139 ctx_list.avail_ctx--; in ksmbd_find_crypto_ctx()
157 list_add(&ctx->list, &ctx_list.idle_ctx); in ksmbd_release_crypto_ctx()
163 ctx_list.avail_ctx--; in ksmbd_release_crypto_ctx()
176 if (ctx->desc[id]) in ____crypto_shash_ctx_find()
179 ctx->desc[id] = alloc_shash_desc(id); in ____crypto_shash_ctx_find()
180 if (ctx->desc[id]) in ____crypto_shash_ctx_find()
219 if (ctx->ccmaes[id]) in ____crypto_aead_ctx_find()
222 ctx->ccmaes[id] = alloc_aead(id); in ____crypto_aead_ctx_find()
223 if (ctx->ccmaes[id]) in ____crypto_aead_ctx_find()
247 list_del(&ctx->list); in ksmbd_crypto_destroy()
263 return -ENOMEM; in ksmbd_crypto_create()
264 list_add(&ctx->list, &ctx_list.idle_ctx); in ksmbd_crypto_create()