diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-01-18 20:33:33 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-02-18 16:48:07 +0800 |
commit | 563f346d04e8373739240604a51ce8529dd9f07e (patch) | |
tree | e08f528e442c6861b591a283f5cf3a5666b92015 /arch/s390/crypto/sha.h | |
parent | 9749598633efc2561224954217ff0d70aeed8b50 (diff) | |
download | lwn-563f346d04e8373739240604a51ce8529dd9f07e.tar.gz lwn-563f346d04e8373739240604a51ce8529dd9f07e.zip |
crypto: sha-s390 - Switch to shash
This patch converts the S390 sha algorithms to the new shash interface.
With fixes by Jan Glauber.
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 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/s390/crypto/sha.h b/arch/s390/crypto/sha.h index 1ceafa571eab..f4e9dc71675f 100644 --- a/arch/s390/crypto/sha.h +++ b/arch/s390/crypto/sha.h @@ -29,7 +29,9 @@ struct s390_sha_ctx { int func; /* KIMD function to use */ }; -void s390_sha_update(struct crypto_tfm *tfm, const u8 *data, unsigned int len); -void s390_sha_final(struct crypto_tfm *tfm, u8 *out); +struct shash_desc; + +int s390_sha_update(struct shash_desc *desc, const u8 *data, unsigned int len); +int s390_sha_final(struct shash_desc *desc, u8 *out); #endif |