projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e88cd6f
)
crypto: sha512-s390 - Add missing block size
author
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 21 Mar 2009 13:12:19 +0000
(21:12 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 21 Mar 2009 13:12:19 +0000
(21:12 +0800)
I missed the block size when converting sha512-s390 to shash.
Tested-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/s390/crypto/sha512_s390.c
patch
|
blob
|
history
diff --git
a/arch/s390/crypto/sha512_s390.c
b/arch/s390/crypto/sha512_s390.c
index 420acf41b72733067d5891579d2c37335e0b4500..83192bfc80480bd1477433fd906b6450ab7c4d38 100644
(file)
--- a/
arch/s390/crypto/sha512_s390.c
+++ b/
arch/s390/crypto/sha512_s390.c
@@
-84,6
+84,7
@@
static struct shash_alg sha384_alg = {
.cra_driver_name= "sha384-s390",
.cra_priority = CRYPT_S390_PRIORITY,
.cra_flags = CRYPTO_ALG_TYPE_SHASH,
+ .cra_blocksize = SHA384_BLOCK_SIZE,
.cra_ctxsize = sizeof(struct s390_sha_ctx),
.cra_module = THIS_MODULE,
}