.. | .. |
---|
23 | 23 | #include <linux/types.h> |
---|
24 | 24 | #include <asm/byteorder.h> |
---|
25 | 25 | |
---|
26 | | -#define MD5_DIGEST_WORDS 4 |
---|
27 | | -#define MD5_MESSAGE_BYTES 64 |
---|
28 | | - |
---|
29 | 26 | const u8 md5_zero_message_hash[MD5_DIGEST_SIZE] = { |
---|
30 | 27 | 0xd4, 0x1d, 0x8c, 0xd9, 0x8f, 0x00, 0xb2, 0x04, |
---|
31 | 28 | 0xe9, 0x80, 0x09, 0x98, 0xec, 0xf8, 0x42, 0x7e, |
---|
.. | .. |
---|
228 | 225 | .descsize = sizeof(struct md5_state), |
---|
229 | 226 | .statesize = sizeof(struct md5_state), |
---|
230 | 227 | .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, |
---|
234 | 232 | } |
---|
235 | 233 | }; |
---|
236 | 234 | |
---|
.. | .. |
---|
244 | 242 | crypto_unregister_shash(&alg); |
---|
245 | 243 | } |
---|
246 | 244 | |
---|
247 | | -module_init(md5_mod_init); |
---|
| 245 | +subsys_initcall(md5_mod_init); |
---|
248 | 246 | module_exit(md5_mod_fini); |
---|
249 | 247 | |
---|
250 | 248 | MODULE_LICENSE("GPL"); |
---|