Source
243
243
EXPORT_SYMBOL(crypto_sha3_final);
244
244
245
245
static struct shash_alg algs[] = { {
246
246
.digestsize = SHA3_224_DIGEST_SIZE,
247
247
.init = crypto_sha3_init,
248
248
.update = crypto_sha3_update,
249
249
.final = crypto_sha3_final,
250
250
.descsize = sizeof(struct sha3_state),
251
251
.base.cra_name = "sha3-224",
252
252
.base.cra_driver_name = "sha3-224-generic",
253
-
.base.cra_flags = CRYPTO_ALG_TYPE_SHASH,
254
253
.base.cra_blocksize = SHA3_224_BLOCK_SIZE,
255
254
.base.cra_module = THIS_MODULE,
256
255
}, {
257
256
.digestsize = SHA3_256_DIGEST_SIZE,
258
257
.init = crypto_sha3_init,
259
258
.update = crypto_sha3_update,
260
259
.final = crypto_sha3_final,
261
260
.descsize = sizeof(struct sha3_state),
262
261
.base.cra_name = "sha3-256",
263
262
.base.cra_driver_name = "sha3-256-generic",
264
-
.base.cra_flags = CRYPTO_ALG_TYPE_SHASH,
265
263
.base.cra_blocksize = SHA3_256_BLOCK_SIZE,
266
264
.base.cra_module = THIS_MODULE,
267
265
}, {
268
266
.digestsize = SHA3_384_DIGEST_SIZE,
269
267
.init = crypto_sha3_init,
270
268
.update = crypto_sha3_update,
271
269
.final = crypto_sha3_final,
272
270
.descsize = sizeof(struct sha3_state),
273
271
.base.cra_name = "sha3-384",
274
272
.base.cra_driver_name = "sha3-384-generic",
275
-
.base.cra_flags = CRYPTO_ALG_TYPE_SHASH,
276
273
.base.cra_blocksize = SHA3_384_BLOCK_SIZE,
277
274
.base.cra_module = THIS_MODULE,
278
275
}, {
279
276
.digestsize = SHA3_512_DIGEST_SIZE,
280
277
.init = crypto_sha3_init,
281
278
.update = crypto_sha3_update,
282
279
.final = crypto_sha3_final,
283
280
.descsize = sizeof(struct sha3_state),
284
281
.base.cra_name = "sha3-512",
285
282
.base.cra_driver_name = "sha3-512-generic",
286
-
.base.cra_flags = CRYPTO_ALG_TYPE_SHASH,
287
283
.base.cra_blocksize = SHA3_512_BLOCK_SIZE,
288
284
.base.cra_module = THIS_MODULE,
289
285
} };
290
286
291
287
static int __init sha3_generic_mod_init(void)
292
288
{
293
289
return crypto_register_shashes(algs, ARRAY_SIZE(algs));
294
290
}
295
291
296
292
static void __exit sha3_generic_mod_fini(void)