diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-04-08 10:48:44 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-04-25 21:01:47 +0800 |
commit | 93b5e86a6d13c5dec18c6611933fb38d7d80f0d2 (patch) | |
tree | d30e88d098a44877a8701320f2a17073da37ff71 /crypto/testmgr.c | |
parent | e448370d7377f064c2fef55f72e9b45184bf0926 (diff) | |
download | kernel-common-93b5e86a6d13c5dec18c6611933fb38d7d80f0d2.tar.gz kernel-common-93b5e86a6d13c5dec18c6611933fb38d7d80f0d2.tar.bz2 kernel-common-93b5e86a6d13c5dec18c6611933fb38d7d80f0d2.zip |
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>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index f37e544dddf0..380708477b35 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -1913,6 +1913,24 @@ static const struct alg_test_desc alg_test_descs[] = { } } }, { + .alg = "cmac(aes)", + .test = alg_test_hash, + .suite = { + .hash = { + .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 = "compress_null", .test = alg_test_null, }, { |