Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfd5e027 authored by Eric Biggers's avatar Eric Biggers
Browse files

FROMGIT: crypto: speck - add test vectors for Speck128-XTS



Add test vectors for Speck128-XTS, generated in userspace using C code.
The inputs were borrowed from the AES-XTS test vectors.

Both xts(speck128-generic) and xts-speck128-neon pass these tests.

Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>

(cherry picked from commit c3bb521bb6ac3023ae236a3a361f951f8d78ecc4
 git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git

 master)
Change-Id: Ifd701d5df4a6602c207cfb28decc620ef7e5f896
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 79314116
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3602,6 +3602,15 @@ static const struct alg_test_desc alg_test_descs[] = {
				.dec = __VECS(serpent_xts_dec_tv_template)
			}
		}
	}, {
		.alg = "xts(speck128)",
		.test = alg_test_skcipher,
		.suite = {
			.cipher = {
				.enc = __VECS(speck128_xts_enc_tv_template),
				.dec = __VECS(speck128_xts_dec_tv_template)
			}
		}
	}, {
		.alg = "xts(twofish)",
		.test = alg_test_skcipher,
+687 −0

File changed.

Preview size limit exceeded, changes collapsed.