summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2015-04-09 12:55:38 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-10 21:39:41 +0800
commitca142584bc8ebc8e15b317680771ade58ca96315 (patch)
treed77aa069eaced0b549a677c567f7759ca13d68eb /include/crypto
parenta2e5ba4fedd6e590bb2cd83817c2bf0cd0de69d1 (diff)
downloadlinux-stable-ca142584bc8ebc8e15b317680771ade58ca96315.tar.gz
linux-stable-ca142584bc8ebc8e15b317680771ade58ca96315.tar.bz2
linux-stable-ca142584bc8ebc8e15b317680771ade58ca96315.zip
crypto: sha512-generic - move to generic glue implementation
This updated the generic SHA-512 implementation to use the generic shared SHA-512 glue code. It also implements a .finup hook crypto_sha512_finup() and exports it to other modules. The import and export() functions and the .statesize member are dropped, since the default implementation is perfectly suitable for this module. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/sha.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/crypto/sha.h b/include/crypto/sha.h
index e28c4b5e805d..dd7905a3c22e 100644
--- a/include/crypto/sha.h
+++ b/include/crypto/sha.h
@@ -98,4 +98,7 @@ extern int crypto_sha256_finup(struct shash_desc *desc, const u8 *data,
extern int crypto_sha512_update(struct shash_desc *desc, const u8 *data,
unsigned int len);
+
+extern int crypto_sha512_finup(struct shash_desc *desc, const u8 *data,
+ unsigned int len, u8 *hash);
#endif