crypto: sha3 - Add SHA-3 hash algorithm

This patch adds the implementation of SHA3 algorithm
in software and it's based on original implementation
pushed in patch https://lwn.net/Articles/518415/ with
additional changes to match the padding rules specified
in SHA-3 specification.

Signed-off-by: Jeff Garzik <[email protected]>
Signed-off-by: Raveendra Padasalagi <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
Jeff Garzik 2016-06-17 10:30:35 +05:30 • committed by Herbert Xu
commit 53964b9ee6
4 changed files with 340 additions and 0 deletions

View file

@ -750,6 +750,16 @@ config CRYPTO_SHA512_SPARC64
SHA-512 secure hash standard (DFIPS 180-2) implemented
using sparc64 crypto instructions, when available.
config CRYPTO_SHA3
tristate "SHA3 digest algorithm"
select CRYPTO_HASH
help
SHA-3 secure hash standard (DFIPS 202). It's based on
cryptographic sponge function family called Keccak.
References:
http://keccak.noekeon.org/
config CRYPTO_TGR192
tristate "Tiger digest algorithms"
select CRYPTO_HASH