]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - crypto/testmgr.c
crypto: testmgr - add xts(twofish) test vectors
[mirror_ubuntu-zesty-kernel.git] / crypto / testmgr.c
index 5e349a6bc98ac4d076612f11a33d410d17cf60ee..01553a6754b752dc4ca6abada6ca4aca33cb238c 100644 (file)
@@ -2588,6 +2588,21 @@ static const struct alg_test_desc alg_test_descs[] = {
                                }
                        }
                }
+       }, {
+               .alg = "xts(twofish)",
+               .test = alg_test_skcipher,
+               .suite = {
+                       .cipher = {
+                               .enc = {
+                                       .vecs = tf_xts_enc_tv_template,
+                                       .count = TF_XTS_ENC_TEST_VECTORS
+                               },
+                               .dec = {
+                                       .vecs = tf_xts_dec_tv_template,
+                                       .count = TF_XTS_DEC_TEST_VECTORS
+                               }
+                       }
+               }
        }, {
                .alg = "zlib",
                .test = alg_test_pcomp,