Daiki Ueno ueno@gnu.org writes:
I agree, that's a valid use-case. Perhaps this might suffice:
/* Sign DIGEST with KEY using deterministic nonce generation.
- DIGEST must be of the same length of SHA-256 output, that is 32
- octets long. */
void ecdsa_sha256_sign_deterministic (const struct ecc_scalar *key, const uint8_t *digest, struct dsa_signature *signature);
Looks good to me. Underlying more general helper functions (however they are organized) can be internal only.
Regards, /Niels