md5.c (860dbce3d8dd90cb9e909c58fa79808766243651) | md5.c (d6ebf5286f8f94a254a8c90d4b9f2a8b076a8634) |
---|---|
1/* 2 * Cryptographic API. 3 * 4 * MD5 Message Digest Algorithm (RFC1321). 5 * 6 * Derived from cryptoapi implementation, originally based on the 7 * public domain implementation written by Colin Plumb in 1993. 8 * --- 214 unchanged lines hidden (view full) --- 223 .init = md5_init, 224 .update = md5_update, 225 .final = md5_final, 226 .export = md5_export, 227 .import = md5_import, 228 .descsize = sizeof(struct md5_state), 229 .statesize = sizeof(struct md5_state), 230 .base = { | 1/* 2 * Cryptographic API. 3 * 4 * MD5 Message Digest Algorithm (RFC1321). 5 * 6 * Derived from cryptoapi implementation, originally based on the 7 * public domain implementation written by Colin Plumb in 1993. 8 * --- 214 unchanged lines hidden (view full) --- 223 .init = md5_init, 224 .update = md5_update, 225 .final = md5_final, 226 .export = md5_export, 227 .import = md5_import, 228 .descsize = sizeof(struct md5_state), 229 .statesize = sizeof(struct md5_state), 230 .base = { |
231 .cra_name = "md5", 232 .cra_blocksize = MD5_HMAC_BLOCK_SIZE, 233 .cra_module = THIS_MODULE, | 231 .cra_name = "md5", 232 .cra_driver_name = "md5-generic", 233 .cra_blocksize = MD5_HMAC_BLOCK_SIZE, 234 .cra_module = THIS_MODULE, |
234 } 235}; 236 237static int __init md5_mod_init(void) 238{ 239 return crypto_register_shash(&alg); 240} 241 242static void __exit md5_mod_fini(void) 243{ 244 crypto_unregister_shash(&alg); 245} 246 247subsys_initcall(md5_mod_init); 248module_exit(md5_mod_fini); 249 250MODULE_LICENSE("GPL"); 251MODULE_DESCRIPTION("MD5 Message Digest Algorithm"); 252MODULE_ALIAS_CRYPTO("md5"); | 235 } 236}; 237 238static int __init md5_mod_init(void) 239{ 240 return crypto_register_shash(&alg); 241} 242 243static void __exit md5_mod_fini(void) 244{ 245 crypto_unregister_shash(&alg); 246} 247 248subsys_initcall(md5_mod_init); 249module_exit(md5_mod_fini); 250 251MODULE_LICENSE("GPL"); 252MODULE_DESCRIPTION("MD5 Message Digest Algorithm"); 253MODULE_ALIAS_CRYPTO("md5"); |