diff options
author | Puneet Saxena <puneets@nvidia.com> | 2011-05-04 13:58:01 +0530 |
---|---|---|
committer | Niket Sirsi <nsirsi@nvidia.com> | 2011-05-04 16:08:11 -0700 |
commit | db7bf5c9d420891cce60e35cae638fcff71a86c2 (patch) | |
tree | befc2a71c744a96d2c26d2597c79d90cacb721cf /crypto/testmgr.c | |
parent | 5f2b525a73dd48435975ef72937d1b8627e1c917 (diff) |
crypto: testmgr: add support for aes ofb modetegra-10.11.9
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>
Bug 787628
cherry picked the following commit
http://git.kernel.org/?p=linux/kernel/git/herbert/
cryptodev-2.6.git;a=commit;h=ba0e14acc417eceb895efda1ff46366f4d1728f8
Change-Id: Ibcb554ac4971edd61c8141137fbe6178e2fb8209
Reviewed-on: http://git-master/r/30339
Tested-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index fa8c8f78c8d4..5b5165330bee 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -2211,6 +2211,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 = { |