android_kernel_motorola_sm6375/include/crypto
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ard Biesheuvel 7dfbe55359
UPSTREAM: crypto: chacha - move existing library code into lib/crypto
Currently, our generic ChaCha implementation consists of a permute
function in lib/chacha.c that operates on the 64-byte ChaCha state
directly [and which is always included into the core kernel since it
is used by the /dev/random driver], and the crypto API plumbing to
expose it as a skcipher.

In order to support in-kernel users that need the ChaCha streamcipher
but have no need [or tolerance] for going through the abstractions of
the crypto API, let's expose the streamcipher bits via a library API
as well, in a way that permits the implementation to be superseded by
an architecture specific one if provided.

So move the streamcipher code into a separate module in lib/crypto,
and expose the init() and crypt() routines to users of the library.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 5fb8ef25803ef33e2eb60b626435828b937bed75)
Bug: 152722841
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I15a2ab1be696f3c37ae6483348c840fdb1d05117
2025-09-24 12:16:29 +02:00
..
internal UPSTREAM: crypto: chacha - move existing library code into lib/crypto 2025-09-24 12:16:29 +02:00
acompress.h
aead.h
aes.h
akcipher.h
algapi.h
arc4.h
asym_tpm_subtype.h
authenc.h
b128ops.h
blake2b.h BACKPORT: crypto: blake2b - sync with blake2s implementation 2021-10-23 19:32:26 -07:00
blake2s.h This is the 5.4.200 stable release 2022-06-23 15:04:40 +02:00
blowfish.h
cast5.h
cast6.h
cast_common.h
cbc.h
chacha.h UPSTREAM: crypto: chacha - move existing library code into lib/crypto 2025-09-24 12:16:29 +02:00
cryptd.h
ctr.h
des.h
dh.h
drbg.h crypto: drbg - make reseeding from get_random_bytes() synchronous 2022-06-22 14:11:18 +02:00
ecdh.h
engine.h
gcm.h
gf128mul.h
ghash.h
hash.h This is the 5.4.118 stable release 2021-05-11 16:56:33 +02:00
hash_info.h
hmac.h
ice.h
if_alg.h crypto: af_alg - Disallow multiple in-flight AIO requests 2024-01-25 14:34:23 -08:00
kpp.h
md5.h
nhpoly1305.h
null.h
padlock.h
pcrypt.h
pkcs7.h
poly1305.h
public_key.h crypto: public_key: fix overflow during implicit conversion 2021-09-22 12:26:21 +02:00
rng.h
scatterwalk.h
serpent.h
sha.h
sha1_base.h
sha3.h
sha256_base.h
sha512_base.h
skcipher.h
sm3.h
sm3_base.h
sm4.h
streebog.h
twofish.h
xts.h