crypto: testmgr: add support for aes ofb mode
Puneet Saxena [Wed, 4 May 2011 08:28:01 +0000 (13:28 +0530)]
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>

crypto/testmgr.h

index 82ae180..27de604 100644 (file)
@@ -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"