Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regression 4002: add CMAC test case with a 16 bytes increment #513

Merged

Conversation

clementfaure
Copy link
Contributor

Hello,

@jforissier
The test to add is in the end very simple ... just one XTEST_MAC_CMAC_CASE :)
Should I specify in the commit message, that it's related to the CAAM? I don't know if I should since this test is generic and the CAAM platform specific ..

Please refer to OP-TEE/optee_os#4583

Thanks

@jenswi-linaro
Copy link
Contributor

If you're targeting a bug that is supposed to be fixed please mention that in the commit message. A link to OP-TEE/optee_os#4583 in the commit message should be useful.

Copy link
Contributor

@jforissier jforissier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add:

Link: https://github.com/OP-TEE/optee_os/pull/4583
Signed-off-by: ...

...to the commit description as suggested by Jens. With that:

Reviewed-by: Jerome Forissier <jerome@forissier.org>

Thanks!

@clementfaure clementfaure force-pushed the upstream/test_cmac_caam_input_size branch from 59b3b46 to ffa6694 Compare April 29, 2021 11:38
@clementfaure
Copy link
Contributor Author

@jenswi-linaro @jforissier Commit reworded!

@jenswi-linaro
Copy link
Contributor

Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

@clementfaure clementfaure force-pushed the upstream/test_cmac_caam_input_size branch from ffa6694 to 3c82a08 Compare April 29, 2021 11:48
@jforissier
Copy link
Contributor

jforissier commented Apr 29, 2021

"does not properly handle"? That was the problem that was fixed, right? So you can't say that. Instead "This is a test case for a bug in the CAAM CMAC driver which would not handle... [1]" and Link: [1] https://....

@clementfaure
Copy link
Contributor Author

clementfaure commented Apr 29, 2021

Indeed, that's not well written 🤦 yes, this is the problem fixed
Let me fix that

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>
@clementfaure clementfaure force-pushed the upstream/test_cmac_caam_input_size branch from 3c82a08 to baa500f Compare April 29, 2021 13:44
@jforissier jforissier merged commit 21b347a into OP-TEE:master Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants