]> asedeno.scripts.mit.edu Git - linux.git/commit
crypto: sun4i-ss - use crypto_ahash_digestsize
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Thu, 14 Nov 2019 10:58:13 +0000 (11:58 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Nov 2019 10:48:37 +0000 (18:48 +0800)
commit626abd3125e02d75e26f3cd2e2aa4a6fb74507b5
treee7ae4f8d9f65d0576aeb5736a8fa32d0e9405804
parent7ca2a71d177f51d1d0d339657d3b0cc988d1518e
crypto: sun4i-ss - use crypto_ahash_digestsize

The size of the digest is different between MD5 and SHA1 so instead of
using the higher value (5 words), let's use crypto_ahash_digestsize().

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-hash.c