Lines Matching refs:alg

682 	if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME,  in crypto_gcm_create_common()
688 memcpy(inst->alg.base.cra_name, full_name, CRYPTO_MAX_ALG_NAME); in crypto_gcm_create_common()
690 inst->alg.base.cra_flags = (ghash->base.cra_flags | ctr->cra_flags) & in crypto_gcm_create_common()
692 inst->alg.base.cra_priority = (ghash->base.cra_priority + in crypto_gcm_create_common()
694 inst->alg.base.cra_blocksize = 1; in crypto_gcm_create_common()
695 inst->alg.base.cra_alignmask = ghash->base.cra_alignmask | in crypto_gcm_create_common()
697 inst->alg.base.cra_ctxsize = sizeof(struct crypto_gcm_ctx); in crypto_gcm_create_common()
698 inst->alg.ivsize = 12; in crypto_gcm_create_common()
699 inst->alg.maxauthsize = 16; in crypto_gcm_create_common()
700 inst->alg.init = crypto_gcm_init_tfm; in crypto_gcm_create_common()
701 inst->alg.exit = crypto_gcm_exit_tfm; in crypto_gcm_create_common()
702 inst->alg.setkey = crypto_gcm_setkey; in crypto_gcm_create_common()
703 inst->alg.setauthsize = crypto_gcm_setauthsize; in crypto_gcm_create_common()
704 inst->alg.encrypt = crypto_gcm_encrypt; in crypto_gcm_create_common()
705 inst->alg.decrypt = crypto_gcm_decrypt; in crypto_gcm_create_common()
928 struct aead_alg *alg; in crypto_rfc4106_create() local
954 alg = crypto_spawn_aead_alg(spawn); in crypto_rfc4106_create()
959 if (crypto_aead_alg_ivsize(alg) != 12) in crypto_rfc4106_create()
963 if (alg->base.cra_blocksize != 1) in crypto_rfc4106_create()
967 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in crypto_rfc4106_create()
968 "rfc4106(%s)", alg->base.cra_name) >= in crypto_rfc4106_create()
970 snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in crypto_rfc4106_create()
971 "rfc4106(%s)", alg->base.cra_driver_name) >= in crypto_rfc4106_create()
975 inst->alg.base.cra_flags = alg->base.cra_flags & CRYPTO_ALG_ASYNC; in crypto_rfc4106_create()
976 inst->alg.base.cra_priority = alg->base.cra_priority; in crypto_rfc4106_create()
977 inst->alg.base.cra_blocksize = 1; in crypto_rfc4106_create()
978 inst->alg.base.cra_alignmask = alg->base.cra_alignmask; in crypto_rfc4106_create()
980 inst->alg.base.cra_ctxsize = sizeof(struct crypto_rfc4106_ctx); in crypto_rfc4106_create()
982 inst->alg.ivsize = 8; in crypto_rfc4106_create()
983 inst->alg.maxauthsize = crypto_aead_alg_maxauthsize(alg); in crypto_rfc4106_create()
985 inst->alg.init = crypto_rfc4106_init_tfm; in crypto_rfc4106_create()
986 inst->alg.exit = crypto_rfc4106_exit_tfm; in crypto_rfc4106_create()
988 inst->alg.setkey = crypto_rfc4106_setkey; in crypto_rfc4106_create()
989 inst->alg.setauthsize = crypto_rfc4106_setauthsize; in crypto_rfc4106_create()
990 inst->alg.encrypt = crypto_rfc4106_encrypt; in crypto_rfc4106_create()
991 inst->alg.decrypt = crypto_rfc4106_decrypt; in crypto_rfc4106_create()
1165 struct aead_alg *alg; in crypto_rfc4543_create() local
1193 alg = crypto_spawn_aead_alg(spawn); in crypto_rfc4543_create()
1198 if (crypto_aead_alg_ivsize(alg) != 12) in crypto_rfc4543_create()
1202 if (alg->base.cra_blocksize != 1) in crypto_rfc4543_create()
1206 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in crypto_rfc4543_create()
1207 "rfc4543(%s)", alg->base.cra_name) >= in crypto_rfc4543_create()
1209 snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in crypto_rfc4543_create()
1210 "rfc4543(%s)", alg->base.cra_driver_name) >= in crypto_rfc4543_create()
1214 inst->alg.base.cra_flags = alg->base.cra_flags & CRYPTO_ALG_ASYNC; in crypto_rfc4543_create()
1215 inst->alg.base.cra_priority = alg->base.cra_priority; in crypto_rfc4543_create()
1216 inst->alg.base.cra_blocksize = 1; in crypto_rfc4543_create()
1217 inst->alg.base.cra_alignmask = alg->base.cra_alignmask; in crypto_rfc4543_create()
1219 inst->alg.base.cra_ctxsize = sizeof(struct crypto_rfc4543_ctx); in crypto_rfc4543_create()
1221 inst->alg.ivsize = 8; in crypto_rfc4543_create()
1222 inst->alg.maxauthsize = crypto_aead_alg_maxauthsize(alg); in crypto_rfc4543_create()
1224 inst->alg.init = crypto_rfc4543_init_tfm; in crypto_rfc4543_create()
1225 inst->alg.exit = crypto_rfc4543_exit_tfm; in crypto_rfc4543_create()
1227 inst->alg.setkey = crypto_rfc4543_setkey; in crypto_rfc4543_create()
1228 inst->alg.setauthsize = crypto_rfc4543_setauthsize; in crypto_rfc4543_create()
1229 inst->alg.encrypt = crypto_rfc4543_encrypt; in crypto_rfc4543_create()
1230 inst->alg.decrypt = crypto_rfc4543_decrypt; in crypto_rfc4543_create()