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

Implement mac_verify driver entry point #8043

Open
gilles-peskine-arm opened this issue Aug 8, 2023 · 0 comments
Open

Implement mac_verify driver entry point #8043

gilles-peskine-arm opened this issue Aug 8, 2023 · 0 comments
Labels
component-psa PSA keystore/dispatch layer (storage, drivers, …) enhancement help-wanted This issue is not being actively worked on, but PRs welcome. size-m Estimated task size: medium (~1w)

Comments

@gilles-peskine-arm
Copy link
Contributor

Implement the mac_verify driver entry point:

  • psa_mac_verify calls the mac_verify entry point if there is one.
  • If there is no psa_mac_verify entry point, call the mac_compute entry point (or the built-in implementation if there's no driver) then mbedtls_psa_safer_memcmp, as is done today.
  • Implement mbedtls_test_transparent_mac_verify and mbedtls_test_opaque_mac_verify in the test driver (`tests/src/drivers/test_driver_mac.c).
  • Make sure that in an all.sh run, we try at least one configuration with a driver for mac_compute but not mac_verify, and at least one configuration with a driver for both mac_compute and mac_verify. This goes both for transparent and opaque.
@gilles-peskine-arm gilles-peskine-arm added enhancement component-psa PSA keystore/dispatch layer (storage, drivers, …) size-m Estimated task size: medium (~1w) help-wanted This issue is not being actively worked on, but PRs welcome. labels Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component-psa PSA keystore/dispatch layer (storage, drivers, …) enhancement help-wanted This issue is not being actively worked on, but PRs welcome. size-m Estimated task size: medium (~1w)
Projects
None yet
Development

No branches or pull requests

1 participant