summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorPuneet Saxena <puneets@nvidia.com>2011-05-04 15:04:10 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2011-05-04 15:04:10 +1000
commitba0e14acc417eceb895efda1ff46366f4d1728f8 (patch)
treed2deee9515bf47356967053179bf678a586eab47 /crypto/testmgr.c
parentec8e8dfe5f862a01bf1b5cdac441c083ce0a2a22 (diff)
downloadlinux-stable-ba0e14acc417eceb895efda1ff46366f4d1728f8.tar.gz
linux-stable-ba0e14acc417eceb895efda1ff46366f4d1728f8.tar.bz2
linux-stable-ba0e14acc417eceb895efda1ff46366f4d1728f8.zip
crypto: testmgr - add support for aes ofb mode
the fix add testcase for testing aes ofb mode. Signed-off-by: Puneet Saxena <puneets@nvidia.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r--crypto/testmgr.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 2854865f2434..b6b93d416351 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -2219,6 +2219,22 @@ static const struct alg_test_desc alg_test_descs[] = {
}
}
}, {
+ .alg = "ofb(aes)",
+ .test = alg_test_skcipher,
+ .fips_allowed = 1,
+ .suite = {
+ .cipher = {
+ .enc = {
+ .vecs = aes_ofb_enc_tv_template,
+ .count = AES_OFB_ENC_TEST_VECTORS
+ },
+ .dec = {
+ .vecs = aes_ofb_dec_tv_template,
+ .count = AES_OFB_DEC_TEST_VECTORS
+ }
+ }
+ }
+ }, {
.alg = "pcbc(fcrypt)",
.test = alg_test_skcipher,
.suite = {