summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-02-14 19:42:22 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2018-02-22 15:16:56 +0100
commitc3bb521bb6ac3023ae236a3a361f951f8d78ecc4 (patch)
tree35c5492197ef422d76475040961a021d4339f894 /crypto/testmgr.c
parentcrypto: arm/speck - add NEON-accelerated implementation of Speck-XTS (diff)
downloadlinux-c3bb521bb6ac3023ae236a3a361f951f8d78ecc4.tar.xz
linux-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.c9
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 = {