PSA_ALG_ECDSA macro
ECDSA signature with hashing. This is the ECDSA signature scheme defined by ANSI X9.62, with a random per-message secret number (*k*). The representation of the signature as a byte string consists of the concatenation of the signature values *r* and *s*. Each of *r* and *s* is encoded as an *N*-octet string, where *N* is the length of the base point of the curve in octets. Each value is represented in big-endian order (most significant octet first).
Syntax
#define PSA_ALG_ECDSA(hash_alg) \
(PSA_ALG_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 ECDSA signature algorithm. Unspecified if \p hash_alg is not a supported hash algorithm.
![]()
#define PSA_ALG_ECDSA(hash_alg) \