crypto: testmgr - Add ChaCha20-Poly1305 test vectors from RFC7539
[firefly-linux-kernel-4.4.55.git] / crypto / testmgr.c
index faf93a6696e269bd65af21ef94273a476ef686c6..915a9effd8386f0500f8cfd7cb08cacb831aa4fa 100644 (file)
@@ -3386,6 +3386,21 @@ static const struct alg_test_desc alg_test_descs[] = {
                                },
                        }
                }
+       }, {
+               .alg = "rfc7539(chacha20,poly1305)",
+               .test = alg_test_aead,
+               .suite = {
+                       .aead = {
+                               .enc = {
+                                       .vecs = rfc7539_enc_tv_template,
+                                       .count = RFC7539_ENC_TEST_VECTORS
+                               },
+                               .dec = {
+                                       .vecs = rfc7539_dec_tv_template,
+                                       .count = RFC7539_DEC_TEST_VECTORS
+                               },
+                       }
+               }
        }, {
                .alg = "rmd128",
                .test = alg_test_hash,