]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: talitos - stop using crypto_ahash::init
authorEric Biggers <ebiggers@google.com>
Sun, 22 Oct 2023 08:10:57 +0000 (01:10 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Oct 2023 10:04:29 +0000 (18:04 +0800)
commit9826d1d6ed5f86cb3d61610b3b1fe31e96a40418
tree0064e12a8c8aff302ab1b7cea7967f0284ef8632
parent9416210fb0b4b63ee7b812856ab6f989cfa7acbe
crypto: talitos - stop using crypto_ahash::init

The function pointer crypto_ahash::init is an internal implementation
detail of the ahash API that exists to help it support both ahash and
shash algorithms.  With an upcoming refactoring of how the ahash API
supports shash algorithms, this field will be removed.

Some drivers are invoking crypto_ahash::init to call into their own
code, which is unnecessary and inefficient.  The talitos driver is one
of those drivers.  Make it just call its own code directly.

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