crypto: testmgr - add aead cbc des, des3_ede tests
authorNitesh Lal <NiteshNarayanLal@freescale.com>
Wed, 21 May 2014 11:39:08 +0000 (17:09 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 May 2014 13:03:18 +0000 (21:03 +0800)
commit5208ed2ca16526cdbec25abe594a3cc3aea210f4
treeb133e5a27ae52c3f6e26db1d72d5693c91958298
parent9bac019dad8098a77cce555d929f678e22111783
crypto: testmgr - add aead cbc des, des3_ede tests

Test vectors were taken from existing test for
CBC(DES3_EDE). Associated data has been added to test vectors.
HMAC computed with Crypto++ has been used. Following algos have
been covered.

        (a) "authenc(hmac(sha1),cbc(des))"
        (b) "authenc(hmac(sha1),cbc(des3_ede))"
        (c) "authenc(hmac(sha224),cbc(des))"
        (d) "authenc(hmac(sha224),cbc(des3_ede))"
        (e) "authenc(hmac(sha256),cbc(des))"
        (f) "authenc(hmac(sha256),cbc(des3_ede))"
        (g) "authenc(hmac(sha384),cbc(des))"
        (h) "authenc(hmac(sha384),cbc(des3_ede))"
        (i) "authenc(hmac(sha512),cbc(des))"
        (j) "authenc(hmac(sha512),cbc(des3_ede))"

Signed-off-by: Vakul Garg <vakul@freescale.com>
[NiteshNarayanLal@freescale.com: added hooks for the missing algorithms test and tested the patch]
Signed-off-by: Nitesh Lal <NiteshNarayanLal@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c
crypto/testmgr.c
crypto/testmgr.h