Lines Matching full:alg
615 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in crypto_gcm_create_common()
619 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in crypto_gcm_create_common()
625 inst->alg.base.cra_priority = (ghash->base.cra_priority + in crypto_gcm_create_common()
627 inst->alg.base.cra_blocksize = 1; in crypto_gcm_create_common()
628 inst->alg.base.cra_alignmask = ctr->base.cra_alignmask; in crypto_gcm_create_common()
629 inst->alg.base.cra_ctxsize = sizeof(struct crypto_gcm_ctx); in crypto_gcm_create_common()
630 inst->alg.ivsize = GCM_AES_IV_SIZE; in crypto_gcm_create_common()
631 inst->alg.chunksize = ctr->chunksize; in crypto_gcm_create_common()
632 inst->alg.maxauthsize = 16; in crypto_gcm_create_common()
633 inst->alg.init = crypto_gcm_init_tfm; in crypto_gcm_create_common()
634 inst->alg.exit = crypto_gcm_exit_tfm; in crypto_gcm_create_common()
635 inst->alg.setkey = crypto_gcm_setkey; in crypto_gcm_create_common()
636 inst->alg.setauthsize = crypto_gcm_setauthsize; in crypto_gcm_create_common()
637 inst->alg.encrypt = crypto_gcm_encrypt; in crypto_gcm_create_common()
638 inst->alg.decrypt = crypto_gcm_decrypt; in crypto_gcm_create_common()
825 struct aead_alg *alg; in crypto_rfc4106_create() local
842 alg = crypto_spawn_aead_alg(spawn); in crypto_rfc4106_create()
847 if (crypto_aead_alg_ivsize(alg) != GCM_AES_IV_SIZE) in crypto_rfc4106_create()
851 if (alg->base.cra_blocksize != 1) in crypto_rfc4106_create()
855 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in crypto_rfc4106_create()
856 "rfc4106(%s)", alg->base.cra_name) >= in crypto_rfc4106_create()
858 snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in crypto_rfc4106_create()
859 "rfc4106(%s)", alg->base.cra_driver_name) >= in crypto_rfc4106_create()
863 inst->alg.base.cra_priority = alg->base.cra_priority; in crypto_rfc4106_create()
864 inst->alg.base.cra_blocksize = 1; in crypto_rfc4106_create()
865 inst->alg.base.cra_alignmask = alg->base.cra_alignmask; in crypto_rfc4106_create()
867 inst->alg.base.cra_ctxsize = sizeof(struct crypto_rfc4106_ctx); in crypto_rfc4106_create()
869 inst->alg.ivsize = GCM_RFC4106_IV_SIZE; in crypto_rfc4106_create()
870 inst->alg.chunksize = crypto_aead_alg_chunksize(alg); in crypto_rfc4106_create()
871 inst->alg.maxauthsize = crypto_aead_alg_maxauthsize(alg); in crypto_rfc4106_create()
873 inst->alg.init = crypto_rfc4106_init_tfm; in crypto_rfc4106_create()
874 inst->alg.exit = crypto_rfc4106_exit_tfm; in crypto_rfc4106_create()
876 inst->alg.setkey = crypto_rfc4106_setkey; in crypto_rfc4106_create()
877 inst->alg.setauthsize = crypto_rfc4106_setauthsize; in crypto_rfc4106_create()
878 inst->alg.encrypt = crypto_rfc4106_encrypt; in crypto_rfc4106_create()
879 inst->alg.decrypt = crypto_rfc4106_decrypt; in crypto_rfc4106_create()
1010 struct aead_alg *alg; in crypto_rfc4543_create() local
1028 alg = crypto_spawn_aead_alg(&ctx->aead); in crypto_rfc4543_create()
1033 if (crypto_aead_alg_ivsize(alg) != GCM_AES_IV_SIZE) in crypto_rfc4543_create()
1037 if (alg->base.cra_blocksize != 1) in crypto_rfc4543_create()
1041 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in crypto_rfc4543_create()
1042 "rfc4543(%s)", alg->base.cra_name) >= in crypto_rfc4543_create()
1044 snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in crypto_rfc4543_create()
1045 "rfc4543(%s)", alg->base.cra_driver_name) >= in crypto_rfc4543_create()
1049 inst->alg.base.cra_priority = alg->base.cra_priority; in crypto_rfc4543_create()
1050 inst->alg.base.cra_blocksize = 1; in crypto_rfc4543_create()
1051 inst->alg.base.cra_alignmask = alg->base.cra_alignmask; in crypto_rfc4543_create()
1053 inst->alg.base.cra_ctxsize = sizeof(struct crypto_rfc4543_ctx); in crypto_rfc4543_create()
1055 inst->alg.ivsize = GCM_RFC4543_IV_SIZE; in crypto_rfc4543_create()
1056 inst->alg.chunksize = crypto_aead_alg_chunksize(alg); in crypto_rfc4543_create()
1057 inst->alg.maxauthsize = crypto_aead_alg_maxauthsize(alg); in crypto_rfc4543_create()
1059 inst->alg.init = crypto_rfc4543_init_tfm; in crypto_rfc4543_create()
1060 inst->alg.exit = crypto_rfc4543_exit_tfm; in crypto_rfc4543_create()
1062 inst->alg.setkey = crypto_rfc4543_setkey; in crypto_rfc4543_create()
1063 inst->alg.setauthsize = crypto_rfc4543_setauthsize; in crypto_rfc4543_create()
1064 inst->alg.encrypt = crypto_rfc4543_encrypt; in crypto_rfc4543_create()
1065 inst->alg.decrypt = crypto_rfc4543_decrypt; in crypto_rfc4543_create()