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

Commit 921c8866 authored by Eric Biggers's avatar Eric Biggers
Browse files

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



Add test vectors for Speck64-XTS, generated in userspace using C code.
The inputs were borrowed from the AES-XTS test vectors, with key lengths
adjusted.

xts-speck64-neon passes these tests.  However, they aren't currently
applicable for the generic XTS template, as that only supports a 128-bit
block size.

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

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

 master)
Change-Id: I61a2c77dbfcf487d77b3d9ef0a823dadea8ddf07
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent dfd5e027
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3611,6 +3611,15 @@ static const struct alg_test_desc alg_test_descs[] = {
				.dec = __VECS(speck128_xts_dec_tv_template)
			}
		}
	}, {
		.alg = "xts(speck64)",
		.test = alg_test_skcipher,
		.suite = {
			.cipher = {
				.enc = __VECS(speck64_xts_enc_tv_template),
				.dec = __VECS(speck64_xts_dec_tv_template)
			}
		}
	}, {
		.alg = "xts(twofish)",
		.test = alg_test_skcipher,
+671 −0

File changed.

Preview size limit exceeded, changes collapsed.