[][src]Function secp256k1_abc_sys::secp256k1_ecdsa_signature_parse_der

pub unsafe extern "C" fn secp256k1_ecdsa_signature_parse_der(
    ctx: *const secp256k1_context,
    sig: *mut secp256k1_ecdsa_signature,
    input: *const c_uchar,
    inputlen: usize
) -> c_int

Parse a DER ECDSA signature.

Returns: 1 when the signature could be parsed, 0 otherwise. Args: ctx: a secp256k1 context object Out: sig: a pointer to a signature object In: input: a pointer to the signature to be parsed inputlen: the length of the array pointed to be input

This function will accept any valid DER encoded signature, even if the encoded numbers are out of range.

After the call, sig will always be initialized. If parsing failed or the encoded numbers are out of range, signature validation with it is guaranteed to fail for every message and public key.