summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2023-10-19 07:53:39 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2023-10-27 12:04:25 +0200
commiteed577b9a9220dc9f3968b54d055a3884d219897 (patch)
treeee0ecde19272854de28898977d781b7ebd836b30 /crypto
parentlibceph: stop checking crypto_shash_alignmask (diff)
downloadlinux-eed577b9a9220dc9f3968b54d055a3884d219897.tar.xz
linux-eed577b9a9220dc9f3968b54d055a3884d219897.zip
crypto: drbg - stop checking crypto_shash_alignmask
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>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/drbg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/drbg.c b/crypto/drbg.c
index ff4ebbc68efa..e01f8c7769d0 100644
--- a/crypto/drbg.c
+++ b/crypto/drbg.c
@@ -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)