wp512.c (860dbce3d8dd90cb9e909c58fa79808766243651) wp512.c (d6ebf5286f8f94a254a8c90d4b9f2a8b076a8634)
1/*
2 * Cryptographic API.
3 *
4 * Whirlpool hashing Algorithm
5 *
6 * The Whirlpool algorithm was developed by Paulo S. L. M. Barreto and
7 * Vincent Rijmen. It has been selected as one of cryptographic
8 * primitives by the NESSIE project http://www.cryptonessie.org/

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

1121
1122static struct shash_alg wp_algs[3] = { {
1123 .digestsize = WP512_DIGEST_SIZE,
1124 .init = wp512_init,
1125 .update = wp512_update,
1126 .final = wp512_final,
1127 .descsize = sizeof(struct wp512_ctx),
1128 .base = {
1/*
2 * Cryptographic API.
3 *
4 * Whirlpool hashing Algorithm
5 *
6 * The Whirlpool algorithm was developed by Paulo S. L. M. Barreto and
7 * Vincent Rijmen. It has been selected as one of cryptographic
8 * primitives by the NESSIE project http://www.cryptonessie.org/

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

1121
1122static struct shash_alg wp_algs[3] = { {
1123 .digestsize = WP512_DIGEST_SIZE,
1124 .init = wp512_init,
1125 .update = wp512_update,
1126 .final = wp512_final,
1127 .descsize = sizeof(struct wp512_ctx),
1128 .base = {
1129 .cra_name = "wp512",
1130 .cra_blocksize = WP512_BLOCK_SIZE,
1131 .cra_module = THIS_MODULE,
1129 .cra_name = "wp512",
1130 .cra_driver_name = "wp512-generic",
1131 .cra_blocksize = WP512_BLOCK_SIZE,
1132 .cra_module = THIS_MODULE,
1132 }
1133}, {
1134 .digestsize = WP384_DIGEST_SIZE,
1135 .init = wp512_init,
1136 .update = wp512_update,
1137 .final = wp384_final,
1138 .descsize = sizeof(struct wp512_ctx),
1139 .base = {
1133 }
1134}, {
1135 .digestsize = WP384_DIGEST_SIZE,
1136 .init = wp512_init,
1137 .update = wp512_update,
1138 .final = wp384_final,
1139 .descsize = sizeof(struct wp512_ctx),
1140 .base = {
1140 .cra_name = "wp384",
1141 .cra_blocksize = WP512_BLOCK_SIZE,
1142 .cra_module = THIS_MODULE,
1141 .cra_name = "wp384",
1142 .cra_driver_name = "wp384-generic",
1143 .cra_blocksize = WP512_BLOCK_SIZE,
1144 .cra_module = THIS_MODULE,
1143 }
1144}, {
1145 .digestsize = WP256_DIGEST_SIZE,
1146 .init = wp512_init,
1147 .update = wp512_update,
1148 .final = wp256_final,
1149 .descsize = sizeof(struct wp512_ctx),
1150 .base = {
1145 }
1146}, {
1147 .digestsize = WP256_DIGEST_SIZE,
1148 .init = wp512_init,
1149 .update = wp512_update,
1150 .final = wp256_final,
1151 .descsize = sizeof(struct wp512_ctx),
1152 .base = {
1151 .cra_name = "wp256",
1152 .cra_blocksize = WP512_BLOCK_SIZE,
1153 .cra_module = THIS_MODULE,
1153 .cra_name = "wp256",
1154 .cra_driver_name = "wp256-generic",
1155 .cra_blocksize = WP512_BLOCK_SIZE,
1156 .cra_module = THIS_MODULE,
1154 }
1155} };
1156
1157static int __init wp512_mod_init(void)
1158{
1159 return crypto_register_shashes(wp_algs, ARRAY_SIZE(wp_algs));
1160}
1161

--- 14 unchanged lines hidden ---
1157 }
1158} };
1159
1160static int __init wp512_mod_init(void)
1161{
1162 return crypto_register_shashes(wp_algs, ARRAY_SIZE(wp_algs));
1163}
1164

--- 14 unchanged lines hidden ---