des_generic.c (0a87a2db485a1456b7427914969c0e8195a1bbda) des_generic.c (3e14dcf7cb80b34a1f38b55bc96f02d23fdaaaaf)
1/*
2 * Cryptographic API.
3 *
4 * DES & Triple DES EDE Cipher Algorithms.
5 *
6 * Copyright (c) 2005 Dag Arne Osvik <da@osvik.no>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 969 unchanged lines hidden (view full) ---

978 .cra_u = { .cipher = {
979 .cia_min_keysize = DES3_EDE_KEY_SIZE,
980 .cia_max_keysize = DES3_EDE_KEY_SIZE,
981 .cia_setkey = des3_ede_setkey,
982 .cia_encrypt = des3_ede_encrypt,
983 .cia_decrypt = des3_ede_decrypt } }
984} };
985
1/*
2 * Cryptographic API.
3 *
4 * DES & Triple DES EDE Cipher Algorithms.
5 *
6 * Copyright (c) 2005 Dag Arne Osvik <da@osvik.no>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 969 unchanged lines hidden (view full) ---

978 .cra_u = { .cipher = {
979 .cia_min_keysize = DES3_EDE_KEY_SIZE,
980 .cia_max_keysize = DES3_EDE_KEY_SIZE,
981 .cia_setkey = des3_ede_setkey,
982 .cia_encrypt = des3_ede_encrypt,
983 .cia_decrypt = des3_ede_decrypt } }
984} };
985
986MODULE_ALIAS_CRYPTO("des3_ede");
987
988static int __init des_generic_mod_init(void)
989{
990 return crypto_register_algs(des_algs, ARRAY_SIZE(des_algs));
991}
992
993static void __exit des_generic_mod_fini(void)
994{
995 crypto_unregister_algs(des_algs, ARRAY_SIZE(des_algs));
996}
997
998module_init(des_generic_mod_init);
999module_exit(des_generic_mod_fini);
1000
1001MODULE_LICENSE("GPL");
1002MODULE_DESCRIPTION("DES & Triple DES EDE Cipher Algorithms");
1003MODULE_AUTHOR("Dag Arne Osvik <da@osvik.no>");
986static int __init des_generic_mod_init(void)
987{
988 return crypto_register_algs(des_algs, ARRAY_SIZE(des_algs));
989}
990
991static void __exit des_generic_mod_fini(void)
992{
993 crypto_unregister_algs(des_algs, ARRAY_SIZE(des_algs));
994}
995
996module_init(des_generic_mod_init);
997module_exit(des_generic_mod_fini);
998
999MODULE_LICENSE("GPL");
1000MODULE_DESCRIPTION("DES & Triple DES EDE Cipher Algorithms");
1001MODULE_AUTHOR("Dag Arne Osvik <da@osvik.no>");
1004MODULE_ALIAS("des");
1002MODULE_ALIAS_CRYPTO("des");
1003MODULE_ALIAS_CRYPTO("des-generic");
1004MODULE_ALIAS_CRYPTO("des3_ede");
1005MODULE_ALIAS_CRYPTO("des3_ede-generic");