diff options
author | Jan Glauber <jang@linux.vnet.ibm.com> | 2008-03-06 12:52:00 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-04-21 04:19:21 +0200 |
commit | 291dc7c0996b09a7c58b2cf6e9cc3495123a607e (patch) | |
tree | df678f61c217baddb3c959166639e919be637193 /arch/s390/crypto/sha.h | |
parent | [CRYPTO] s390: Generic sha_update and sha_final (diff) | |
download | linux-291dc7c0996b09a7c58b2cf6e9cc3495123a607e.tar.xz linux-291dc7c0996b09a7c58b2cf6e9cc3495123a607e.zip |
[CRYPTO] sha512: Hardware acceleration for s390
Exploit the System z10 hardware acceleration for SHA512.
Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/s390/crypto/sha.h')
-rw-r--r-- | arch/s390/crypto/sha.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/s390/crypto/sha.h b/arch/s390/crypto/sha.h index b7a52ab5db97..1ceafa571eab 100644 --- a/arch/s390/crypto/sha.h +++ b/arch/s390/crypto/sha.h @@ -19,11 +19,12 @@ #include <crypto/sha.h> /* must be big enough for the largest SHA variant */ -#define SHA_MAX_BLOCK_SIZE SHA256_BLOCK_SIZE +#define SHA_MAX_STATE_SIZE 16 +#define SHA_MAX_BLOCK_SIZE SHA512_BLOCK_SIZE struct s390_sha_ctx { u64 count; /* message length in bytes */ - u32 state[8]; + u32 state[SHA_MAX_STATE_SIZE]; u8 buf[2 * SHA_MAX_BLOCK_SIZE]; int func; /* KIMD function to use */ }; |