hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/crypto/anubis.c
....@@ -464,7 +464,6 @@
464464 {
465465 struct anubis_ctx *ctx = crypto_tfm_ctx(tfm);
466466 const __be32 *key = (const __be32 *)in_key;
467
- u32 *flags = &tfm->crt_flags;
468467 int N, R, i, r;
469468 u32 kappa[ANUBIS_MAX_N];
470469 u32 inter[ANUBIS_MAX_N];
....@@ -474,7 +473,6 @@
474473 case 32: case 36: case 40:
475474 break;
476475 default:
477
- *flags |= CRYPTO_TFM_RES_BAD_KEY_LEN;
478476 return -EINVAL;
479477 }
480478
....@@ -673,6 +671,7 @@
673671
674672 static struct crypto_alg anubis_alg = {
675673 .cra_name = "anubis",
674
+ .cra_driver_name = "anubis-generic",
676675 .cra_flags = CRYPTO_ALG_TYPE_CIPHER,
677676 .cra_blocksize = ANUBIS_BLOCK_SIZE,
678677 .cra_ctxsize = sizeof (struct anubis_ctx),
....@@ -699,7 +698,7 @@
699698 crypto_unregister_alg(&anubis_alg);
700699 }
701700
702
-module_init(anubis_mod_init);
701
+subsys_initcall(anubis_mod_init);
703702 module_exit(anubis_mod_fini);
704703
705704 MODULE_LICENSE("GPL");