hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/crypto/md5.c
....@@ -23,9 +23,6 @@
2323 #include <linux/types.h>
2424 #include <asm/byteorder.h>
2525
26
-#define MD5_DIGEST_WORDS 4
27
-#define MD5_MESSAGE_BYTES 64
28
-
2926 const u8 md5_zero_message_hash[MD5_DIGEST_SIZE] = {
3027 0xd4, 0x1d, 0x8c, 0xd9, 0x8f, 0x00, 0xb2, 0x04,
3128 0xe9, 0x80, 0x09, 0x98, 0xec, 0xf8, 0x42, 0x7e,
....@@ -228,9 +225,10 @@
228225 .descsize = sizeof(struct md5_state),
229226 .statesize = sizeof(struct md5_state),
230227 .base = {
231
- .cra_name = "md5",
232
- .cra_blocksize = MD5_HMAC_BLOCK_SIZE,
233
- .cra_module = THIS_MODULE,
228
+ .cra_name = "md5",
229
+ .cra_driver_name = "md5-generic",
230
+ .cra_blocksize = MD5_HMAC_BLOCK_SIZE,
231
+ .cra_module = THIS_MODULE,
234232 }
235233 };
236234
....@@ -244,7 +242,7 @@
244242 crypto_unregister_shash(&alg);
245243 }
246244
247
-module_init(md5_mod_init);
245
+subsys_initcall(md5_mod_init);
248246 module_exit(md5_mod_fini);
249247
250248 MODULE_LICENSE("GPL");