diff options
author | Eric Biggers <ebiggers@google.com> | 2018-02-14 13:42:23 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-02-22 09:16:56 -0500 |
commit | 41b3316e75ee5e8aec7234c9d631582b13a38c7d (patch) | |
tree | dc2678d2a60552da0918702b2764e1ec9e7d701d /crypto/testmgr.c | |
parent | c3bb521bb6ac3023ae236a3a361f951f8d78ecc4 (diff) |
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>
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 e011a347d51b..9f82e7bc9c56 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -3585,6 +3585,15 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
3585 | } | 3585 | } |
3586 | } | 3586 | } |
3587 | }, { | 3587 | }, { |
3588 | .alg = "xts(speck64)", | ||
3589 | .test = alg_test_skcipher, | ||
3590 | .suite = { | ||
3591 | .cipher = { | ||
3592 | .enc = __VECS(speck64_xts_enc_tv_template), | ||
3593 | .dec = __VECS(speck64_xts_dec_tv_template) | ||
3594 | } | ||
3595 | } | ||
3596 | }, { | ||
3588 | .alg = "xts(twofish)", | 3597 | .alg = "xts(twofish)", |
3589 | .test = alg_test_skcipher, | 3598 | .test = alg_test_skcipher, |
3590 | .suite = { | 3599 | .suite = { |