hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/crypto/tea.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Cryptographic API.
34 *
....@@ -11,12 +12,6 @@
1112 * compatibility with these implementations.
1213 *
1314 * Copyright (c) 2004 Aaron Grothe ajgrothe@yahoo.com
14
- *
15
- * This program is free software; you can redistribute it and/or modify
16
- * it under the terms of the GNU General Public License as published by
17
- * the Free Software Foundation; either version 2 of the License, or
18
- * (at your option) any later version.
19
- *
2015 */
2116
2217 #include <linux/init.h>
....@@ -221,6 +216,7 @@
221216
222217 static struct crypto_alg tea_algs[3] = { {
223218 .cra_name = "tea",
219
+ .cra_driver_name = "tea-generic",
224220 .cra_flags = CRYPTO_ALG_TYPE_CIPHER,
225221 .cra_blocksize = TEA_BLOCK_SIZE,
226222 .cra_ctxsize = sizeof (struct tea_ctx),
....@@ -234,6 +230,7 @@
234230 .cia_decrypt = tea_decrypt } }
235231 }, {
236232 .cra_name = "xtea",
233
+ .cra_driver_name = "xtea-generic",
237234 .cra_flags = CRYPTO_ALG_TYPE_CIPHER,
238235 .cra_blocksize = XTEA_BLOCK_SIZE,
239236 .cra_ctxsize = sizeof (struct xtea_ctx),
....@@ -247,6 +244,7 @@
247244 .cia_decrypt = xtea_decrypt } }
248245 }, {
249246 .cra_name = "xeta",
247
+ .cra_driver_name = "xeta-generic",
250248 .cra_flags = CRYPTO_ALG_TYPE_CIPHER,
251249 .cra_blocksize = XTEA_BLOCK_SIZE,
252250 .cra_ctxsize = sizeof (struct xtea_ctx),
....@@ -274,7 +272,7 @@
274272 MODULE_ALIAS_CRYPTO("xtea");
275273 MODULE_ALIAS_CRYPTO("xeta");
276274
277
-module_init(tea_mod_init);
275
+subsys_initcall(tea_mod_init);
278276 module_exit(tea_mod_fini);
279277
280278 MODULE_LICENSE("GPL");