Function ECDSA_verify

Source
pub unsafe extern "C" fn ECDSA_verify(
    type_: i32,
    dgst: *const u8,
    dgstlen: i32,
    sig: *const u8,
    siglen: i32,
    eckey: *mut ec_key_st,
) -> i32
Expand description

Verifies that the given signature is valid ECDSA signature of the supplied hash value using the specified public key. \param type this parameter is ignored \param dgst pointer to the hash value \param dgstlen length of the hash value \param sig pointer to the DER encoded signature \param siglen length of the DER encoded signature \param eckey EC_KEY object containing a public EC key \return 1 if the signature is valid, 0 if the signature is invalid and -1 on error