You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mbed TLS version (number or commit id): 3.6.2
Operating system and version: embedded
Configuration (if not default, please attach mbedtls_config.h):
Compiler and options (if you used a pre-built binary, please indicate how you obtained it): N/A
Additional environment information:
Expected behavior
Actual behavior
Steps to reproduce
Additional information
The text was updated successfully, but these errors were encountered:
Indeed I think you are correct about the inconsistency, but I think we actually need to remove the dead code that checks the status. The opaque test driver which has the inconsistency is declared without fallback == true, which means that it should not fall back to the builtin implementation if the driver does not support the algorithm.
The correct code should just return and not have the check of status afterwards.
Summary
Inconsictency in psa_crypto_driver_wrappers
Some of functions in psa_driver_wrapper_verify_message are called with return, which creating unreachable code and skiping condition for PSA_ERROR_NOT_SUPPORTED
Seens on line 226 https://github.com/Mbed-TLS/mbedtls/blob/v3.6.2/scripts/data_files/driver_templates/psa_crypto_driver_wrappers.h.jinja#L226
Probably correct way of calling on line 208 https://github.com/Mbed-TLS/mbedtls/blob/v3.6.2/scripts/data_files/driver_templates/psa_crypto_driver_wrappers.h.jinja#L208
System information
Mbed TLS version (number or commit id): 3.6.2
Operating system and version: embedded
Configuration (if not default, please attach
mbedtls_config.h
):Compiler and options (if you used a pre-built binary, please indicate how you obtained it): N/A
Additional environment information:
Expected behavior
Actual behavior
Steps to reproduce
Additional information
The text was updated successfully, but these errors were encountered: