WSL2-Linux-Kernel/lib/crypto
Jason A. Donenfeld 72c7943792 crypto: chacha20poly1305 - add back missing test vectors and test chunking
When this was originally ported, the 12-byte nonce vectors were left out
to keep things simple. I agree that we don't need nor want a library
interface for 12-byte nonces. But these test vectors were specially
crafted to look at issues in the underlying primitives and related
interactions.  Therefore, we actually want to keep around all of the
test vectors, and simply have a helper function to test them with.

Secondly, the sglist-based chunking code in the library interface is
rather complicated, so this adds a developer-only test for ensuring that
all the book keeping is correct, across a wide array of possibilities.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2020-01-22 16:21:11 +08:00
..
Kconfig
Makefile
aes.c
arc4.c
blake2s-generic.c
blake2s-selftest.c
blake2s.c
chacha.c
chacha20poly1305-selftest.c
chacha20poly1305.c
curve25519-fiat32.c
curve25519-generic.c
curve25519-hacl64.c
curve25519-selftest.c
curve25519.c
des.c
libchacha.c
poly1305-donna32.c
poly1305-donna64.c
poly1305.c
sha256.c