Function bearssl::br_ecdsa_asn1_to_raw [] [src]

pub unsafe extern "C" fn br_ecdsa_asn1_to_raw(
    sig: *mut c_void,
    sig_len: usize
) -> usize

\brief Convert a signature from "asn1" to "raw".

Conversion is done "in place" and the new length is returned. Conversion may enlarge the signature, but the new signature length will be less than twice the source length at most. On error, 0 is returned (error conditions include an invalid ASN.1 structure or an oversized integer).

\param sig signature to convert. \param sig_len signature length (in bytes). \return the new signature length, or 0 on error.