std1.0.0-beta-7 SafeC docs

std :: crypto::ec

Function std::ecdsa_sign_der

#include <std/crypto/ec.h> source ยท definition

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.