Lines Matching refs:aead
50 struct aead_alg aead; member
85 static int aead_set_sh_desc(struct crypto_aead *aead) in aead_set_sh_desc() argument
87 struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead), in aead_set_sh_desc()
88 typeof(*alg), aead); in aead_set_sh_desc()
89 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_set_sh_desc()
90 unsigned int ivsize = crypto_aead_ivsize(aead); in aead_set_sh_desc()
200 static int aead_setkey(struct crypto_aead *aead, const u8 *key, in aead_setkey() argument
203 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_setkey()
258 ret = aead_set_sh_desc(aead); in aead_setkey()
288 static int des3_aead_setkey(struct crypto_aead *aead, const u8 *key, in des3_aead_setkey() argument
298 err = verify_aead_des3_key(aead, keys.enckey, keys.enckeylen) ?: in des3_aead_setkey()
299 aead_setkey(aead, key, keylen); in des3_aead_setkey()
305 static int gcm_set_sh_desc(struct crypto_aead *aead) in gcm_set_sh_desc() argument
307 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_set_sh_desc()
308 unsigned int ivsize = crypto_aead_ivsize(aead); in gcm_set_sh_desc()
363 static int gcm_setkey(struct crypto_aead *aead, in gcm_setkey() argument
366 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_setkey()
382 ret = gcm_set_sh_desc(aead); in gcm_setkey()
408 static int rfc4106_set_sh_desc(struct crypto_aead *aead) in rfc4106_set_sh_desc() argument
410 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4106_set_sh_desc()
411 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4106_set_sh_desc()
467 static int rfc4106_setkey(struct crypto_aead *aead, in rfc4106_setkey() argument
470 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4106_setkey()
490 ret = rfc4106_set_sh_desc(aead); in rfc4106_setkey()
516 static int rfc4543_set_sh_desc(struct crypto_aead *aead) in rfc4543_set_sh_desc() argument
518 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4543_set_sh_desc()
519 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4543_set_sh_desc()
573 static int rfc4543_setkey(struct crypto_aead *aead, in rfc4543_setkey() argument
576 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4543_setkey()
596 ret = rfc4543_set_sh_desc(aead); in rfc4543_setkey()
897 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_unmap() local
898 int ivsize = crypto_aead_ivsize(aead); in aead_unmap()
922 struct crypto_aead *aead = crypto_aead_reqtfm(aead_req); in aead_done() local
923 struct caam_ctx *caam_ctx = crypto_aead_ctx_dma(aead); in aead_done()
944 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_edesc_alloc() local
945 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_edesc_alloc()
946 struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead), in aead_edesc_alloc()
947 typeof(*alg), aead); in aead_edesc_alloc()
1041 ivsize = crypto_aead_ivsize(aead); in aead_edesc_alloc()
1164 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_crypt() local
1165 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_crypt()
1592 .aead = {
1611 .aead = {
1631 .aead = {
1651 .aead = {
1672 .aead = {
1695 .aead = {
1716 .aead = {
1739 .aead = {
1760 .aead = {
1783 .aead = {
1804 .aead = {
1828 .aead = {
1849 .aead = {
1873 .aead = {
1894 .aead = {
1918 .aead = {
1939 .aead = {
1962 .aead = {
1984 .aead = {
2008 .aead = {
2030 .aead = {
2054 .aead = {
2076 .aead = {
2100 .aead = {
2122 .aead = {
2146 .aead = {
2168 .aead = {
2192 .aead = {
2213 .aead = {
2236 .aead = {
2257 .aead = {
2280 .aead = {
2301 .aead = {
2325 .aead = {
2346 .aead = {
2370 .aead = {
2391 .aead = {
2415 .aead = {
2436 .aead = {
2542 aead); in caam_aead_init()
2581 crypto_unregister_aead(&t_alg->aead); in caam_qi_algapi_exit()
2608 struct aead_alg *alg = &t_alg->aead; in caam_aead_alg_init()
2723 (!md_inst || (t_alg->aead.maxauthsize > md_limit))) in caam_qi_algapi_init()
2728 err = crypto_register_aead(&t_alg->aead); in caam_qi_algapi_init()
2731 t_alg->aead.base.cra_driver_name); in caam_qi_algapi_init()