md4.c (860dbce3d8dd90cb9e909c58fa79808766243651) | md4.c (d6ebf5286f8f94a254a8c90d4b9f2a8b076a8634) |
---|---|
1/* 2 * Cryptographic API. 3 * 4 * MD4 Message Digest Algorithm (RFC1320). 5 * 6 * Implementation derived from Andrew Tridgell and Steve French's 7 * CIFS MD4 implementation, and the cryptoapi implementation 8 * originally based on the public domain implementation written --- 202 unchanged lines hidden (view full) --- 211 212static struct shash_alg alg = { 213 .digestsize = MD4_DIGEST_SIZE, 214 .init = md4_init, 215 .update = md4_update, 216 .final = md4_final, 217 .descsize = sizeof(struct md4_ctx), 218 .base = { | 1/* 2 * Cryptographic API. 3 * 4 * MD4 Message Digest Algorithm (RFC1320). 5 * 6 * Implementation derived from Andrew Tridgell and Steve French's 7 * CIFS MD4 implementation, and the cryptoapi implementation 8 * originally based on the public domain implementation written --- 202 unchanged lines hidden (view full) --- 211 212static struct shash_alg alg = { 213 .digestsize = MD4_DIGEST_SIZE, 214 .init = md4_init, 215 .update = md4_update, 216 .final = md4_final, 217 .descsize = sizeof(struct md4_ctx), 218 .base = { |
219 .cra_name = "md4", 220 .cra_blocksize = MD4_HMAC_BLOCK_SIZE, 221 .cra_module = THIS_MODULE, | 219 .cra_name = "md4", 220 .cra_driver_name = "md4-generic", 221 .cra_blocksize = MD4_HMAC_BLOCK_SIZE, 222 .cra_module = THIS_MODULE, |
222 } 223}; 224 225static int __init md4_mod_init(void) 226{ 227 return crypto_register_shash(&alg); 228} 229 230static void __exit md4_mod_fini(void) 231{ 232 crypto_unregister_shash(&alg); 233} 234 235subsys_initcall(md4_mod_init); 236module_exit(md4_mod_fini); 237 238MODULE_LICENSE("GPL"); 239MODULE_DESCRIPTION("MD4 Message Digest Algorithm"); 240MODULE_ALIAS_CRYPTO("md4"); | 223 } 224}; 225 226static int __init md4_mod_init(void) 227{ 228 return crypto_register_shash(&alg); 229} 230 231static void __exit md4_mod_fini(void) 232{ 233 crypto_unregister_shash(&alg); 234} 235 236subsys_initcall(md4_mod_init); 237module_exit(md4_mod_fini); 238 239MODULE_LICENSE("GPL"); 240MODULE_DESCRIPTION("MD4 Message Digest Algorithm"); 241MODULE_ALIAS_CRYPTO("md4"); |