mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-31 01:20:35 +00:00
When USE_PSA is disabled and ECDSA_DETERMINISTIC is enabled, generating ECDSA signatures via PK requires use of the hash via the MD layer (in HMAC-DRBG, used by deterministic ECDSA). When USE_PSA is enabled, ECDSA signatures via PK go through PSA which always uses non-deterministic ECDSA, so does not rely on HMAC-DRBG/MD. The condition used here is slightly too strong, but expressing exactly the optimal condition seems more effort than it's worth for just 3 test cases. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>