summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorPuneet Saxena <puneets@nvidia.com>2011-05-04 13:58:01 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-08 18:02:04 +0530
commitf97623e0cdc5ec6733ef65946593280516d90cca (patch)
treeffd103a9663029ce998db1a7a63c4f4d34cb5be5 /crypto
parent0bcefb657babea6f9d32c284e13e0d13228f5cdc (diff)
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> Bug 787628 cherry picked the following commit http://git.kernel.org/?p=linux/kernel/git/herbert/ cryptodev-2.6.git;a=commit;h=ba0e14acc417eceb895efda1ff46366f4d1728f8 Reviewed-on: http://git-master/r/30339 Reviewed-on: http://git-master/r/54441 (cherry picked from commit b6a86d94028d57884b85179a641a6275d6708c70) Change-Id: I5bbd3e8a04f0281ff5c22ffcf7522ac3d4a31e30 Reviewed-on: http://git-master/r/68150 Tested-by: Puneet Saxena <puneets@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/testmgr.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h
index 82ae18099863..27de604ec4bc 100644
--- a/crypto/testmgr.h
+++ b/crypto/testmgr.h
@@ -3033,8 +3033,8 @@ static struct cipher_testvec cast6_dec_tv_template[] = {
#define AES_XTS_DEC_TEST_VECTORS 5
#define AES_CTR_ENC_TEST_VECTORS 3
#define AES_CTR_DEC_TEST_VECTORS 3
-#define AES_OFB_ENC_TEST_VECTORS 3
-#define AES_OFB_DEC_TEST_VECTORS 3
+#define AES_OFB_ENC_TEST_VECTORS 1
+#define AES_OFB_DEC_TEST_VECTORS 1
#define AES_CTR_3686_ENC_TEST_VECTORS 7
#define AES_CTR_3686_DEC_TEST_VECTORS 6
#define AES_GCM_ENC_TEST_VECTORS 9
@@ -4467,8 +4467,6 @@ static struct cipher_testvec aes_xts_dec_tv_template[] = {
}
};
-
-
static struct cipher_testvec aes_ctr_enc_tv_template[] = {
{ /* From NIST Special Publication 800-38A, Appendix F.5 */
.key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"