From 21b347a3d75fd52fd49130e75c962c5b56123d2f Mon Sep 17 00:00:00 2001 From: Clement Faure Date: Thu, 29 Apr 2021 13:06:55 +0200 Subject: [PATCH] regression 4002: add CMAC test case with a 16 bytes increment Add a CMAC subtest where do_update operations are done with a data input size of 16 bytes. This is a test case for a bug in the CAAM CMAC driver which would not handle properly consecutive do_update operations with input data size of 16 bytes. Link: https://github.com/OP-TEE/optee_os/pull/4583 Signed-off-by: Clement Faure Reviewed-by: Jerome Forissier Reviewed-by: Jens Wiklander --- host/xtest/regression_4000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/host/xtest/regression_4000.c b/host/xtest/regression_4000.c index 4f8c7134e..a6527c3b1 100644 --- a/host/xtest/regression_4000.c +++ b/host/xtest/regression_4000.c @@ -1160,6 +1160,7 @@ static const struct xtest_mac_case mac_cases[] = { XTEST_MAC_CMAC_CASE(vect10, 9), XTEST_MAC_CMAC_CASE(vect11, 9), XTEST_MAC_CMAC_CASE(vect12, 9), + XTEST_MAC_CMAC_CASE(vect12, 16), { TEE_ALG_DES3_CMAC, TEE_TYPE_DES3, mac_des3_cmac_vect1_key, ARRAY_SIZE(mac_des3_cmac_vect1_key), 0, NULL, 0, mac_des3_cmac_vect1_out,