diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-02-03 09:49:35 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-02-11 04:50:44 -0500 |
commit | 092acf069813a7a07371de0d05010de80d8e613b (patch) | |
tree | 304b9970c8660a80bde0b3efbae8da3e6ceb07db /crypto/testmgr.c | |
parent | b5e0b032b6c31c052ee0132ee70b155c22cf7b28 (diff) |
crypto: testmgr - add test cases for cbcmac(aes)
In preparation of splitting off the CBC-MAC transform in the CCM
driver into a separate algorithm, define some test cases for the
AES incarnation of cbcmac.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 98eb09782db8..f9c378af3907 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -2514,6 +2514,13 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2514 | } | 2514 | } |
2515 | } | 2515 | } |
2516 | }, { | 2516 | }, { |
2517 | .alg = "cbcmac(aes)", | ||
2518 | .fips_allowed = 1, | ||
2519 | .test = alg_test_hash, | ||
2520 | .suite = { | ||
2521 | .hash = __VECS(aes_cbcmac_tv_template) | ||
2522 | } | ||
2523 | }, { | ||
2517 | .alg = "ccm(aes)", | 2524 | .alg = "ccm(aes)", |
2518 | .test = alg_test_aead, | 2525 | .test = alg_test_aead, |
2519 | .fips_allowed = 1, | 2526 | .fips_allowed = 1, |