diff options
author | Eric Biggers <ebiggers@google.com> | 2018-02-14 10:42:22 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-02-22 22:16:56 +0800 |
commit | c3bb521bb6ac3023ae236a3a361f951f8d78ecc4 (patch) | |
tree | 35c5492197ef422d76475040961a021d4339f894 /crypto/testmgr.c | |
parent | ede9622162fac42eacde231d64e94c926f4be45d (diff) | |
download | lwn-c3bb521bb6ac3023ae236a3a361f951f8d78ecc4.tar.gz lwn-c3bb521bb6ac3023ae236a3a361f951f8d78ecc4.zip |
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: 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 058ed5eb6620..e011a347d51b 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -3576,6 +3576,15 @@ static const struct alg_test_desc alg_test_descs[] = { } } }, { + .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, .suite = { |