std :: crypto::ec
Function std::ecdsa_sign_der
int ecdsa_sign_der(
int curve,
[]const unsigned char priv,
[]const unsigned char hash,
[]unsigned char sig,
&unsigned long sig_len,
)ECDSA signature of 'hash' as DER (at most EC_MAX_SIG bytes) with an RFC 6979 nonce (HMAC-SHA-256 for P-256, HMAC-SHA-384 for P-384). 1 on success.