Skip to content

Commit

Permalink
regression 4002: add CMAC test case with a 16 bytes increment
Browse files Browse the repository at this point in the history
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: OP-TEE/optee_os#4583
Signed-off-by: Clement Faure <clement.faure@nxp.com>
Reviewed-by: Jerome Forissier <jerome@forissier.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
clementfaure authored and jforissier committed Apr 29, 2021
1 parent afb915b commit 21b347a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions host/xtest/regression_4000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 21b347a

Please sign in to comment.