aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorHoria Geanta <horia.geanta@freescale.com>2014-03-14 11:46:51 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2014-03-21 09:54:27 -0400
commitbca4feb0d4fe2d5da1a0f31ef89f63709aba4906 (patch)
tree35f55c781ce29e88edc0594e2d663464ede00ca5 /crypto/testmgr.c
parent72567258f0643eda5d622be16e35fb933aa6146e (diff)
crypto: testmgr - add aead null encryption test vectors
Add test vectors for aead with null encryption and md5, respectively sha1 authentication. Input data is taken from test vectors listed in RFC2410. 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.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 77955507f6f1..dc3cf3535ef0 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -1809,6 +1809,22 @@ static const struct alg_test_desc alg_test_descs[] = {
1809 } 1809 }
1810 } 1810 }
1811 }, { 1811 }, {
1812 .alg = "authenc(hmac(md5),ecb(cipher_null))",
1813 .test = alg_test_aead,
1814 .fips_allowed = 1,
1815 .suite = {
1816 .aead = {
1817 .enc = {
1818 .vecs = hmac_md5_ecb_cipher_null_enc_tv_template,
1819 .count = HMAC_MD5_ECB_CIPHER_NULL_ENC_TEST_VECTORS
1820 },
1821 .dec = {
1822 .vecs = hmac_md5_ecb_cipher_null_dec_tv_template,
1823 .count = HMAC_MD5_ECB_CIPHER_NULL_DEC_TEST_VECTORS
1824 }
1825 }
1826 }
1827 }, {
1812 .alg = "authenc(hmac(sha1),cbc(aes))", 1828 .alg = "authenc(hmac(sha1),cbc(aes))",
1813 .test = alg_test_aead, 1829 .test = alg_test_aead,
1814 .fips_allowed = 1, 1830 .fips_allowed = 1,
@@ -1821,6 +1837,22 @@ static const struct alg_test_desc alg_test_descs[] = {
1821 } 1837 }
1822 } 1838 }
1823 }, { 1839 }, {
1840 .alg = "authenc(hmac(sha1),ecb(cipher_null))",
1841 .test = alg_test_aead,
1842 .fips_allowed = 1,
1843 .suite = {
1844 .aead = {
1845 .enc = {
1846 .vecs = hmac_sha1_ecb_cipher_null_enc_tv_template,
1847 .count = HMAC_SHA1_ECB_CIPHER_NULL_ENC_TEST_VECTORS
1848 },
1849 .dec = {
1850 .vecs = hmac_sha1_ecb_cipher_null_dec_tv_template,
1851 .count = HMAC_SHA1_ECB_CIPHER_NULL_DEC_TEST_VECTORS
1852 }
1853 }
1854 }
1855 }, {
1824 .alg = "authenc(hmac(sha256),cbc(aes))", 1856 .alg = "authenc(hmac(sha256),cbc(aes))",
1825 .test = alg_test_aead, 1857 .test = alg_test_aead,
1826 .fips_allowed = 1, 1858 .fips_allowed = 1,