aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-07-22 11:48:18 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2009-07-22 14:38:12 +0800
commit1f38ad8389bbca038d320c29d30aa1d6ed96b48d (patch)
tree78f458530e16980b9298c09f1b2c1f9c14c09411 /include/crypto
parentcrypto: xcbc - Fix shash conversion (diff)
downloadlinux-dev-1f38ad8389bbca038d320c29d30aa1d6ed96b48d.tar.xz
linux-dev-1f38ad8389bbca038d320c29d30aa1d6ed96b48d.zip
crypto: sha512 - Export struct sha512_state
This patch renames struct sha512_ctx and exports it as struct sha512_state so that other sha512 implementations can use it as the reference structure for exporting their state. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/sha.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/crypto/sha.h b/include/crypto/sha.h
index 88ef5eb9514d..45b25ccf7cc6 100644
--- a/include/crypto/sha.h
+++ b/include/crypto/sha.h
@@ -76,4 +76,10 @@ struct sha256_state {
u8 buf[SHA256_BLOCK_SIZE];
};
+struct sha512_state {
+ u64 state[8];
+ u32 count[4];
+ u8 buf[128];
+};
+
#endif