crypto: testmgr - add test vector for fcrypt
Jussi Kivilinna [Sat, 19 Jan 2013 11:31:36 +0000 (13:31 +0200)]
fcrypt is used only as pcbc(fcrypt), but testmgr does not know this.
Use the zero key, zero plaintext pcbc(fcrypt) test vector for
testing plain 'fcrypt' to hide "no test for fcrypt" warnings.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

crypto/testmgr.c

index edf4a08..efd8b20 100644 (file)
@@ -2269,6 +2269,21 @@ static const struct alg_test_desc alg_test_descs[] = {
                        }
                }
        }, {
+               .alg = "ecb(fcrypt)",
+               .test = alg_test_skcipher,
+               .suite = {
+                       .cipher = {
+                               .enc = {
+                                       .vecs = fcrypt_pcbc_enc_tv_template,
+                                       .count = 1
+                               },
+                               .dec = {
+                                       .vecs = fcrypt_pcbc_dec_tv_template,
+                                       .count = 1
+                               }
+                       }
+               }
+       }, {
                .alg = "ecb(khazad)",
                .test = alg_test_skcipher,
                .suite = {