summaryrefslogtreecommitdiff
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@iki.fi>2013-04-08 10:48:44 +0300
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-03-31 10:17:33 +0200
commita543267d44645f35346f9de5ba4a6cc37f2bb1ae (patch)
tree49b4d491bb84c76e772b5a37aa8d6c318ba93a4e /crypto/testmgr.c
parente5ad0688a6b46f62664bdaad854311017bd039c4 (diff)
crypto: add CMAC support to CryptoAPI
Patch adds support for NIST recommended block cipher mode CMAC to CryptoAPI. This work is based on Tom St Denis' earlier patch, http://marc.info/?l=linux-crypto-vger&m=135877306305466&w=2 Cc: Tom St Denis <tstdenis@elliptictech.com> Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> (cherry picked from commit 93b5e86a6d13c5dec18c6611933fb38d7d80f0d2)
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r--crypto/testmgr.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 92b9298d658c..e4205b58b1f5 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -1711,11 +1711,20 @@ static const struct alg_test_desc alg_test_descs[] = {
.fips_allowed = 1,
.suite = {
.hash = {
- .vecs = cmac_aes_tv_template,
+ .vecs = aes_cmac128_tv_template,
.count = CMAC_AES_TEST_VECTORS
}
}
}, {
+ .alg = "cmac(des3_ede)",
+ .test = alg_test_hash,
+ .suite = {
+ .hash = {
+ .vecs = des3_ede_cmac64_tv_template,
+ .count = CMAC_DES3_EDE_TEST_VECTORS
+ }
+ }
+ }, {
.alg = "crc32c",
.test = alg_test_crc32c,
.fips_allowed = 1,