PSA_ALG_DETERMINISTIC_ECDSA macro
Deterministic ECDSA signature with hashing. This is the deterministic ECDSA signature scheme defined by RFC 6979. The representation of a signature is the same as with #PSA_ALG_ECDSA(). Note that when this algorithm is used for verification, signatures made with randomized ECDSA (#PSA_ALG_ECDSA(\p hash_alg)) with the same private key are accepted. In other words, #PSA_ALG_DETERMINISTIC_ECDSA(\p hash_alg) differs from #PSA_ALG_ECDSA(\p hash_alg) only for signature, not for verification.
Syntax
#define PSA_ALG_DETERMINISTIC_ECDSA(hash_alg) \
(PSA_ALG_DETERMINISTIC_ECDSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
Arguments
hash_alg
A hash algorithm (\c PSA_ALG_XXX value such that #PSA_ALG_IS_HASH(\p hash_alg) is true). This includes #PSA_ALG_ANY_HASH when specifying the algorithm in a usage policy.
Return value
The corresponding deterministic ECDSA signature algorithm. Unspecified if \p hash_alg is not a supported hash algorithm.
![]()
#define PSA_ALG_DETERMINISTIC_ECDSA(hash_alg) \