linux/include/crypto
Ard Biesheuvel 695a313db3 UPSTREAM: crypto: x86/chacha-sse3 - use unaligned loads for state array
Due to the fact that the x86 port does not support allocating objects
on the stack with an alignment that exceeds 8 bytes, we have a rather
ugly hack in the x86 code for ChaCha to ensure that the state array is
aligned to 16 bytes, allowing the SSE3 implementation of the algorithm
to use aligned loads.

Given that the performance benefit of using of aligned loads appears to
be limited (~0.25% for 1k blocks using tcrypt on a Corei7-8650U), and
the fact that this hack has leaked into generic ChaCha code, let's just
remove it.

Cc: Martin Willi <martin@strongswan.org>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Martin Willi <martin@strongswan.org>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit e79a317151)
Bug: 152722841
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I1c372c0b826b6fb2d1007bd7e39450a07db3f4c5
2020-10-25 11:48:06 +01:00
..
internal UPSTREAM: crypto: poly1305 - add new 32 and 64-bit generic versions 2020-10-25 11:47:54 +01:00
acompress.h
aead.h
aes.h
akcipher.h
algapi.h
authenc.h
b128ops.h
blake2s.h UPSTREAM: crypto: blake2s - generic C library implementation and selftest 2020-10-24 22:42:43 +02:00
blowfish.h
cast_common.h
cast5.h
cast6.h
cbc.h
chacha.h UPSTREAM: crypto: x86/chacha-sse3 - use unaligned loads for state array 2020-10-25 11:48:06 +01:00
chacha20poly1305.h UPSTREAM: crypto: lib/chacha20poly1305 - Add missing function declaration 2020-10-25 11:48:05 +01:00
cryptd.h
crypto_wq.h
ctr.h
curve25519.h UPSTREAM: crypto: x86/curve25519 - support assemblers with no adx support 2020-10-25 11:48:01 +01:00
des.h
dh.h
drbg.h
ecdh.h
engine.h
gcm.h
gf128mul.h
ghash.h
hash_info.h
hash.h
hmac.h
if_alg.h crypto: af_alg - fix use-after-free in af_alg_accept() due to bh_lock_sock() 2020-07-09 09:37:10 +02:00
kpp.h
mcryptd.h
md5.h
morus_common.h
morus640_glue.h
morus1280_glue.h
nhpoly1305.h UPSTREAM: crypto: poly1305 - add new 32 and 64-bit generic versions 2020-10-25 11:47:54 +01:00
null.h
padlock.h
pcrypt.h
pkcs7.h
poly1305.h UPSTREAM: crypto: poly1305 - add new 32 and 64-bit generic versions 2020-10-25 11:47:54 +01:00
public_key.h
rng.h
scatterwalk.h
serpent.h
sha.h
sha1_base.h
sha3.h
sha256_base.h
sha512_base.h
skcipher.h
sm3_base.h
sm3.h
sm4.h
twofish.h
xts.h