]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: drbg - stop checking crypto_shash_alignmask
authorEric Biggers <ebiggers@google.com>
Thu, 19 Oct 2023 05:53:39 +0000 (22:53 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Oct 2023 10:04:25 +0000 (18:04 +0800)
Now that the shash algorithm type does not support nonzero alignmasks,
crypto_shash_alignmask() always returns 0 and will be removed.  In
preparation for this, stop checking crypto_shash_alignmask() in drbg.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/drbg.c

index ff4ebbc68efab1b2956e42784bb5c9cc1df785cb..e01f8c7769d036da4e15f48c25a86a9c44aec545 100644 (file)
@@ -1698,7 +1698,7 @@ static int drbg_init_hash_kernel(struct drbg_state *drbg)
        sdesc->shash.tfm = tfm;
        drbg->priv_data = sdesc;
 
-       return crypto_shash_alignmask(tfm);
+       return 0;
 }
 
 static int drbg_fini_hash_kernel(struct drbg_state *drbg)