]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[CRYPTO] sha256-generic: Extend sha256_generic.c to support SHA-224
authorJonathan Lynch <jonathan.lynch@intel.com>
Sat, 10 Nov 2007 12:08:25 +0000 (20:08 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:12 +0000 (08:16 +1100)
commitcd12fb906d2591e80da9edcbd4794b9b916d7489
tree312f7ff32b70a1c093fd3d45e6f2a0715008f22b
parentcd7c3bfe54270f41ac52be6b725a7194d99175b4
[CRYPTO] sha256-generic: Extend sha256_generic.c to support SHA-224

Resubmitting this patch which extends sha256_generic.c to support SHA-224 as
described in FIPS 180-2 and RFC 3874. HMAC-SHA-224 as described in RFC4231
is then supported through the hmac interface.

Patch includes test vectors for SHA-224 and HMAC-SHA-224.

SHA-224 chould be chosen as a hash algorithm when 112 bits of security
strength is required.

Patch generated against the 2.6.24-rc1 kernel and tested against
2.6.24-rc1-git14 which includes fix for scatter gather implementation for HMAC.

Signed-off-by: Jonathan Lynch <jonathan.lynch@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig
crypto/sha256_generic.c
crypto/tcrypt.c
crypto/tcrypt.h
include/crypto/sha.h