pub unsafe extern "C" fn ECDSA_sign_ex(
type_: i32,
dgst: *const u8,
dgstlen: i32,
sig: *mut u8,
siglen: *mut u32,
kinv: *const bignum_st,
rp: *const bignum_st,
eckey: *mut ec_key_st,
) -> i32
Expand description
Computes ECDSA signature of a given hash value using the supplied private key (note: sig must point to ECDSA_size(eckey) bytes of memory). \param type this parameter is ignored \param dgst pointer to the hash value to sign \param dgstlen length of the hash value \param sig buffer to hold the DER encoded signature \param siglen pointer to the length of the returned signature \param kinv BIGNUM with a pre-computed inverse k (optional) \param rp BIGNUM with a pre-computed rp value (optional), see ECDSA_sign_setup \param eckey EC_KEY object containing a private EC key \return 1 on success and 0 otherwise