Lines Matching refs:aead
45 struct aead_alg aead; member
80 static int aead_set_sh_desc(struct crypto_aead *aead) in aead_set_sh_desc() argument
82 struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead), in aead_set_sh_desc()
83 typeof(*alg), aead); in aead_set_sh_desc()
84 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_set_sh_desc()
85 unsigned int ivsize = crypto_aead_ivsize(aead); in aead_set_sh_desc()
195 static int aead_setkey(struct crypto_aead *aead, const u8 *key, in aead_setkey() argument
198 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_setkey()
253 ret = aead_set_sh_desc(aead); in aead_setkey()
283 static int des3_aead_setkey(struct crypto_aead *aead, const u8 *key, in des3_aead_setkey() argument
293 err = verify_aead_des3_key(aead, keys.enckey, keys.enckeylen) ?: in des3_aead_setkey()
294 aead_setkey(aead, key, keylen); in des3_aead_setkey()
300 static int gcm_set_sh_desc(struct crypto_aead *aead) in gcm_set_sh_desc() argument
302 struct caam_ctx *ctx = crypto_aead_ctx(aead); in gcm_set_sh_desc()
303 unsigned int ivsize = crypto_aead_ivsize(aead); in gcm_set_sh_desc()
358 static int gcm_setkey(struct crypto_aead *aead, in gcm_setkey() argument
361 struct caam_ctx *ctx = crypto_aead_ctx(aead); in gcm_setkey()
377 ret = gcm_set_sh_desc(aead); in gcm_setkey()
403 static int rfc4106_set_sh_desc(struct crypto_aead *aead) in rfc4106_set_sh_desc() argument
405 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4106_set_sh_desc()
406 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4106_set_sh_desc()
462 static int rfc4106_setkey(struct crypto_aead *aead, in rfc4106_setkey() argument
465 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4106_setkey()
485 ret = rfc4106_set_sh_desc(aead); in rfc4106_setkey()
511 static int rfc4543_set_sh_desc(struct crypto_aead *aead) in rfc4543_set_sh_desc() argument
513 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4543_set_sh_desc()
514 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4543_set_sh_desc()
568 static int rfc4543_setkey(struct crypto_aead *aead, in rfc4543_setkey() argument
571 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4543_setkey()
591 ret = rfc4543_set_sh_desc(aead); in rfc4543_setkey()
892 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_unmap() local
893 int ivsize = crypto_aead_ivsize(aead); in aead_unmap()
917 struct crypto_aead *aead = crypto_aead_reqtfm(aead_req); in aead_done() local
918 struct caam_ctx *caam_ctx = crypto_aead_ctx(aead); in aead_done()
939 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_edesc_alloc() local
940 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_edesc_alloc()
941 struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead), in aead_edesc_alloc()
942 typeof(*alg), aead); in aead_edesc_alloc()
1036 ivsize = crypto_aead_ivsize(aead); in aead_edesc_alloc()
1159 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_crypt() local
1160 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_crypt()
1576 .aead = {
1595 .aead = {
1615 .aead = {
1635 .aead = {
1656 .aead = {
1679 .aead = {
1700 .aead = {
1723 .aead = {
1744 .aead = {
1767 .aead = {
1788 .aead = {
1812 .aead = {
1833 .aead = {
1857 .aead = {
1878 .aead = {
1902 .aead = {
1923 .aead = {
1946 .aead = {
1968 .aead = {
1992 .aead = {
2014 .aead = {
2038 .aead = {
2060 .aead = {
2084 .aead = {
2106 .aead = {
2130 .aead = {
2152 .aead = {
2176 .aead = {
2197 .aead = {
2220 .aead = {
2241 .aead = {
2264 .aead = {
2285 .aead = {
2309 .aead = {
2330 .aead = {
2354 .aead = {
2375 .aead = {
2399 .aead = {
2420 .aead = {
2526 aead); in caam_aead_init()
2565 crypto_unregister_aead(&t_alg->aead); in caam_qi_algapi_exit()
2592 struct aead_alg *alg = &t_alg->aead; in caam_aead_alg_init()
2707 (!md_inst || (t_alg->aead.maxauthsize > md_limit))) in caam_qi_algapi_init()
2712 err = crypto_register_aead(&t_alg->aead); in caam_qi_algapi_init()
2715 t_alg->aead.base.cra_driver_name); in caam_qi_algapi_init()