]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
crypto: sha512-s390 - Add missing block size
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 21 Mar 2009 13:12:19 +0000 (21:12 +0800)
committerHerbert 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

index 420acf41b72733067d5891579d2c37335e0b4500..83192bfc80480bd1477433fd906b6450ab7c4d38 100644 (file)
@@ -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,
        }