diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2013-01-19 06:31:36 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-01-19 18:16:47 -0500 |
commit | 66e5bd0063f4efd99c9c7e3bc23344dfd88bf98d (patch) | |
tree | 889e05bfd7e81a9e2fda57c36338eb66b216d074 /crypto | |
parent | c3c3b3292d202e9924fb3af0f4139848fd7e1de0 (diff) |
crypto: testmgr - add test vector for fcrypt
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>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/testmgr.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index edf4a0818773..efd8b20e13dc 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -2269,6 +2269,21 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2269 | } | 2269 | } |
2270 | } | 2270 | } |
2271 | }, { | 2271 | }, { |
2272 | .alg = "ecb(fcrypt)", | ||
2273 | .test = alg_test_skcipher, | ||
2274 | .suite = { | ||
2275 | .cipher = { | ||
2276 | .enc = { | ||
2277 | .vecs = fcrypt_pcbc_enc_tv_template, | ||
2278 | .count = 1 | ||
2279 | }, | ||
2280 | .dec = { | ||
2281 | .vecs = fcrypt_pcbc_dec_tv_template, | ||
2282 | .count = 1 | ||
2283 | } | ||
2284 | } | ||
2285 | } | ||
2286 | }, { | ||
2272 | .alg = "ecb(khazad)", | 2287 | .alg = "ecb(khazad)", |
2273 | .test = alg_test_skcipher, | 2288 | .test = alg_test_skcipher, |
2274 | .suite = { | 2289 | .suite = { |