crypto: lib - create utils module and move __crypto_memneq into it
authorEric Biggers <ebiggers@google.com>
Mon, 25 Jul 2022 18:36:34 +0000 (11:36 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Aug 2022 10:39:33 +0000 (18:39 +0800)
commit7033b937e21b12629d920e7864c20c46bc4ccf39
treec87bd1a731d99dcfafdedd9ff8b0a94aa7ab08bc
parent908f24270d9ccbe120b91e7029b372f3dcd18290
crypto: lib - create utils module and move __crypto_memneq into it

As requested at
https://lore.kernel.org/r/YtEgzHuuMts0YBCz@gondor.apana.org.au, move
__crypto_memneq into lib/crypto/ and put it under a new tristate.  The
tristate is CRYPTO_LIB_UTILS, and it builds a module libcryptoutils.  As
more crypto library utilities are being added, this creates a single
place for them to go without cluttering up the main lib directory.

The module's main file will be lib/crypto/utils.c.  However, leave
memneq.c as its own file because of its nonstandard license.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig
lib/Kconfig
lib/Makefile
lib/crypto/Kconfig
lib/crypto/Makefile
lib/crypto/memneq.c [moved from lib/memneq.c with 99% similarity]