crypto: sha512-s390 - Add missing block size

Previous thread: crypto: testmgr - Add support for the pcomp interface by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:03 pm. (1 message)

Next thread: crypto: api - Fix crypto_alloc_tfm/create_create_tfm return convention by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:03 pm. (1 message)
From: Linux Kernel Mailing List
Date: Thursday, March 26, 2009 - 12:04 pm

Gitweb:     http://git.kernel.org/linus/949abe574739848b1e68271fbac86c3cb4506aad
Commit:     949abe574739848b1e68271fbac86c3cb4506aad
Parent:     e88cd6ff2ce14ed7025d253b7f7f468d38415f77
Author:     Herbert Xu <herbert@gondor.apana.org.au>
AuthorDate: Sat Mar 21 21:12:19 2009 +0800
Committer:  Herbert Xu <herbert@gondor.apana.org.au>
CommitDate: Sat Mar 21 21:12:19 2009 +0800

    crypto: sha512-s390 - Add missing block size
    
    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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/s390/crypto/sha512_s390.c b/arch/s390/crypto/sha512_s390.c
index 420acf4..83192bf 100644
--- 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,
 	}
--

Previous thread: crypto: testmgr - Add support for the pcomp interface by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:03 pm. (1 message)

Next thread: crypto: api - Fix crypto_alloc_tfm/create_create_tfm return convention by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:03 pm. (1 message)