diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-10 07:00:27 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-11 12:23:34 +0200 |
commit | 9b2fda7b94a769af13c24582739e50664b0e27a8 (patch) | |
tree | 9569f151b19dec10a8b5d3741a5ad875a98a1a63 /include/crypto/sha.h | |
parent | crypto: sha256_generic - Use 64-bit counter like sha1 (diff) | |
download | linux-9b2fda7b94a769af13c24582739e50664b0e27a8.tar.xz linux-9b2fda7b94a769af13c24582739e50664b0e27a8.zip |
crypto: sha256_generic - Add export/import support
This patch adds export/import support to sha256_generic. The exported
type is defined by struct sha256_state, which is basically the entire
descriptor state of sha256_generic.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/sha.h')
-rw-r--r-- | include/crypto/sha.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/crypto/sha.h b/include/crypto/sha.h index 922a248bd04d..88ef5eb9514d 100644 --- a/include/crypto/sha.h +++ b/include/crypto/sha.h @@ -70,4 +70,10 @@ struct sha1_state { u8 buffer[SHA1_BLOCK_SIZE]; }; +struct sha256_state { + u64 count; + u32 state[SHA256_DIGEST_SIZE / 4]; + u8 buf[SHA256_BLOCK_SIZE]; +}; + #endif |