diff options
author | Jarod Wilson <jarod@redhat.com> | 2009-05-06 17:29:17 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-06-02 14:04:46 +1000 |
commit | 1263118085e6d6486a880bbd0175d65fe54f25c7 (patch) | |
tree | d75fcb4aff36f51bb332b84fd2b1723b64d6eae7 /crypto/testmgr.c | |
parent | d89cc22372e493e0054fc843a1bb29929d18a326 (diff) | |
download | linux-crypto-1263118085e6d6486a880bbd0175d65fe54f25c7.tar.gz linux-crypto-1263118085e6d6486a880bbd0175d65fe54f25c7.zip |
crypto: testmgr - Add ctr(aes) test vectors
Now with multi-block test vectors, all from SP800-38A, Appendix F.5.
Also added ctr(aes) to case 10 in tcrypt.
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index c5550943..f4cc1780 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -1568,6 +1568,21 @@ static const struct alg_test_desc alg_test_descs[] = { } } }, { + .alg = "ctr(aes)", + .test = alg_test_skcipher, + .suite = { + .cipher = { + .enc = { + .vecs = aes_ctr_enc_tv_template, + .count = AES_CTR_ENC_TEST_VECTORS + }, + .dec = { + .vecs = aes_ctr_dec_tv_template, + .count = AES_CTR_DEC_TEST_VECTORS + } + } + } + }, { .alg = "cts(cbc(aes))", .test = alg_test_skcipher, .suite = { @@ -2017,12 +2032,12 @@ static const struct alg_test_desc alg_test_descs[] = { .suite = { .cipher = { .enc = { - .vecs = aes_ctr_enc_tv_template, - .count = AES_CTR_ENC_TEST_VECTORS + .vecs = aes_ctr_rfc3686_enc_tv_template, + .count = AES_CTR_3686_ENC_TEST_VECTORS }, .dec = { - .vecs = aes_ctr_dec_tv_template, - .count = AES_CTR_DEC_TEST_VECTORS + .vecs = aes_ctr_rfc3686_dec_tv_template, + .count = AES_CTR_3686_DEC_TEST_VECTORS } } } |