Lines Matching refs:aead

54 	struct aead_alg aead;  member
172 static int aead_set_sh_desc(struct crypto_aead *aead) in aead_set_sh_desc() argument
174 struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead), in aead_set_sh_desc()
175 typeof(*alg), aead); in aead_set_sh_desc()
176 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_set_sh_desc()
177 unsigned int ivsize = crypto_aead_ivsize(aead); in aead_set_sh_desc()
289 static int aead_setkey(struct crypto_aead *aead, const u8 *key, in aead_setkey() argument
292 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_setkey()
323 return aead_set_sh_desc(aead); in aead_setkey()
329 static int des3_aead_setkey(struct crypto_aead *aead, const u8 *key, in des3_aead_setkey() argument
343 err = crypto_des3_ede_verify_key(crypto_aead_tfm(aead), keys.enckey) ?: in des3_aead_setkey()
344 aead_setkey(aead, key, keylen); in des3_aead_setkey()
354 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_edesc_alloc() local
358 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_edesc_alloc()
359 struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead), in aead_edesc_alloc()
360 typeof(*alg), aead); in aead_edesc_alloc()
448 ivsize = crypto_aead_ivsize(aead); in aead_edesc_alloc()
590 static int chachapoly_set_sh_desc(struct crypto_aead *aead) in chachapoly_set_sh_desc() argument
592 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in chachapoly_set_sh_desc()
593 unsigned int ivsize = crypto_aead_ivsize(aead); in chachapoly_set_sh_desc()
622 static int chachapoly_setauthsize(struct crypto_aead *aead, in chachapoly_setauthsize() argument
625 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in chachapoly_setauthsize()
631 return chachapoly_set_sh_desc(aead); in chachapoly_setauthsize()
634 static int chachapoly_setkey(struct crypto_aead *aead, const u8 *key, in chachapoly_setkey() argument
637 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in chachapoly_setkey()
638 unsigned int ivsize = crypto_aead_ivsize(aead); in chachapoly_setkey()
648 return chachapoly_set_sh_desc(aead); in chachapoly_setkey()
651 static int gcm_set_sh_desc(struct crypto_aead *aead) in gcm_set_sh_desc() argument
653 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_set_sh_desc()
655 unsigned int ivsize = crypto_aead_ivsize(aead); in gcm_set_sh_desc()
723 static int gcm_setkey(struct crypto_aead *aead, in gcm_setkey() argument
726 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_setkey()
740 return gcm_set_sh_desc(aead); in gcm_setkey()
743 static int rfc4106_set_sh_desc(struct crypto_aead *aead) in rfc4106_set_sh_desc() argument
745 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4106_set_sh_desc()
747 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4106_set_sh_desc()
818 static int rfc4106_setkey(struct crypto_aead *aead, in rfc4106_setkey() argument
821 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4106_setkey()
841 return rfc4106_set_sh_desc(aead); in rfc4106_setkey()
844 static int rfc4543_set_sh_desc(struct crypto_aead *aead) in rfc4543_set_sh_desc() argument
846 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4543_set_sh_desc()
848 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4543_set_sh_desc()
917 static int rfc4543_setkey(struct crypto_aead *aead, in rfc4543_setkey() argument
920 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4543_setkey()
940 return rfc4543_set_sh_desc(aead); in rfc4543_setkey()
1264 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_unmap() local
1265 int ivsize = crypto_aead_ivsize(aead); in aead_unmap()
1291 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_encrypt_done() local
1292 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_encrypt_done()
1312 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_decrypt_done() local
1313 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_decrypt_done()
1329 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_encrypt() local
1330 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_encrypt()
1357 struct crypto_aead *aead = crypto_aead_reqtfm(req); in aead_decrypt() local
1358 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_decrypt()
1646 aead); in caam_cra_init_aead()
1801 .aead = {
1820 .aead = {
1840 .aead = {
1860 .aead = {
1881 .aead = {
1904 .aead = {
1925 .aead = {
1948 .aead = {
1969 .aead = {
1992 .aead = {
2013 .aead = {
2037 .aead = {
2058 .aead = {
2082 .aead = {
2103 .aead = {
2127 .aead = {
2148 .aead = {
2171 .aead = {
2193 .aead = {
2217 .aead = {
2239 .aead = {
2263 .aead = {
2285 .aead = {
2309 .aead = {
2331 .aead = {
2355 .aead = {
2377 .aead = {
2401 .aead = {
2422 .aead = {
2445 .aead = {
2466 .aead = {
2489 .aead = {
2510 .aead = {
2534 .aead = {
2555 .aead = {
2579 .aead = {
2600 .aead = {
2624 .aead = {
2645 .aead = {
2669 .aead = {
2693 .aead = {
2718 .aead = {
2742 .aead = {
2767 .aead = {
2791 .aead = {
2816 .aead = {
2840 .aead = {
2865 .aead = {
2889 .aead = {
2914 .aead = {
2937 .aead = {
2960 .aead = {
2984 .aead = {
3026 struct aead_alg *alg = &t_alg->aead; in caam_aead_alg_init()
5354 err = crypto_register_aead(&t_alg->aead); in dpaa2_caam_probe()
5357 t_alg->aead.base.cra_driver_name, err); in dpaa2_caam_probe()
5453 crypto_unregister_aead(&t_alg->aead); in dpaa2_caam_remove()