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>
This commit is contained in:
Ard Biesheuvel
2017-02-03 14:49:35 +00:00
committed by Herbert Xu
parent b5e0b032b6
commit 092acf0698
2 changed files with 67 additions and 0 deletions

View File

@ -2513,6 +2513,13 @@ static const struct alg_test_desc alg_test_descs[] = {
.dec = __VECS(tf_cbc_dec_tv_template)
}
}
}, {
.alg = "cbcmac(aes)",
.fips_allowed = 1,
.test = alg_test_hash,
.suite = {
.hash = __VECS(aes_cbcmac_tv_template)
}
}, {
.alg = "ccm(aes)",
.test = alg_test_aead,