Function authenticode_parser::parse

source ·
pub fn parse(
    _token: &InitializationToken,
    data: &[u8]
) -> Option<AuthenticodeArray>
Expand description

Constructs AuthenticodeArray from binary data containing Authenticode signature.

Authenticode can contains nested Authenticode signatures as its unsigned attribute, which can also contain nested signatures. For this reason the function return an Array of parsed Authenticode signatures.

Any field of the parsed out structures can be NULL, depending on the input data.

WARNING: in case of this interface, the file and signature digest comparison is up to the library user, as there is no pe data to calculate file digest from.

Verification result is stored in verify_flags with the first verification error.