aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorHoria Geanta <horia.geanta@freescale.com>2012-07-03 12:16:54 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2012-07-10 23:08:30 -0400
commite46e9a46386bca8e80a6467b5c643dc494861896 (patch)
tree8950e932426b35c77225ada5fed238448025d2bf /crypto/testmgr.c
parent357fb60502ede168fa1b76b996298e0045e24b59 (diff)
crypto: testmgr - add aead cbc aes hmac sha1,256,512 test vectors
Test vectors were generated starting from existing CBC(AES) test vectors (RFC3602, NIST SP800-38A) and adding HMAC(SHA*) computed with Crypto++ and double-checked with HashCalc. Signed-off-by: Horia Geanta <horia.geanta@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r--crypto/testmgr.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 4308a11f129c..a2ca7431760a 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -1721,6 +1721,42 @@ static const struct alg_test_desc alg_test_descs[] = {
1721 } 1721 }
1722 } 1722 }
1723 }, { 1723 }, {
1724 .alg = "authenc(hmac(sha1),cbc(aes))",
1725 .test = alg_test_aead,
1726 .fips_allowed = 1,
1727 .suite = {
1728 .aead = {
1729 .enc = {
1730 .vecs = hmac_sha1_aes_cbc_enc_tv_template,
1731 .count = HMAC_SHA1_AES_CBC_ENC_TEST_VECTORS
1732 }
1733 }
1734 }
1735 }, {
1736 .alg = "authenc(hmac(sha256),cbc(aes))",
1737 .test = alg_test_aead,
1738 .fips_allowed = 1,
1739 .suite = {
1740 .aead = {
1741 .enc = {
1742 .vecs = hmac_sha256_aes_cbc_enc_tv_template,
1743 .count = HMAC_SHA256_AES_CBC_ENC_TEST_VECTORS
1744 }
1745 }
1746 }
1747 }, {
1748 .alg = "authenc(hmac(sha512),cbc(aes))",
1749 .test = alg_test_aead,
1750 .fips_allowed = 1,
1751 .suite = {
1752 .aead = {
1753 .enc = {
1754 .vecs = hmac_sha512_aes_cbc_enc_tv_template,
1755 .count = HMAC_SHA512_AES_CBC_ENC_TEST_VECTORS
1756 }
1757 }
1758 }
1759 }, {
1724 .alg = "cbc(aes)", 1760 .alg = "cbc(aes)",
1725 .test = alg_test_skcipher, 1761 .test = alg_test_skcipher,
1726 .fips_allowed = 1, 1762 .fips_allowed = 1,