diff options
author | Eric Biggers <ebiggers@google.com> | 2018-02-14 10:42:23 -0800 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2018-02-22 13:22:15 -0800 |
commit | 921c88669c515e534d520df3e81b5405cd81bab7 (patch) | |
tree | 50bfa211a08cda9e2f97a03e896077f2c0e7d77b /crypto/testmgr.c | |
parent | dfd5e0277af3249994cbf23508727322ad293503 (diff) |
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: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert 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: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 260570443c9d..b5bb45a89ff8 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -3612,6 +3612,15 @@ static const struct alg_test_desc alg_test_descs[] = { } } }, { + .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, .suite = { |