crypto: testmgr - add test vector for fcrypt
Subsystems (2)
PATCH 1/1 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.
--- crypto/testmgr.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
crypto/testmgr.c +15 -0
@@ -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 = {
From: Jussi Kivilinna <[email protected]>
Date: Sat, 19 Jan 2013 13:31:36 +0200
Quoted 5 lines
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 <[email protected]>
Quoted 10 lines · David Miller
From: Jussi Kivilinna <[email protected]>
Date: Sat, 19 Jan 2013 13:31:36 +0200Quoted 5 lines
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 <[email protected]>Acked-by David S. Miller <[email protected]>
Applied. Thanks!
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt