LIEF: Library to Instrument Executable Formats Version 2.0.0
Loading...
Searching...
No Matches
LIEF::PE::SignatureParser Class Reference

#include <SignatureParser.hpp>

Public Types

using attributes_t = std::vector<std::unique_ptr<Attribute>>
using signer_infos_t = std::vector<SignerInfo>
using x509_certificates_t = std::vector<x509>
using time_t = std::array<int32_t, 6>

Public Member Functions

 SignatureParser (const SignatureParser &)=delete
SignatureParseroperator= (const SignatureParser &)=delete

Static Public Member Functions

static result< Signatureparse (std::vector< uint8_t > data, bool skip_header=false)
 Parse a PKCS #7 signature given a raw blob.
static result< Signatureparse (BinaryStream &stream, bool skip_header=false)
 Parse a PKCS #7 signature given a BinaryStream.
static result< Signatureparse (std::string_view path)
 Parse a PKCS #7 signature from a file path.
template<class PathT, enable_if_path_t< PathT > = 0>
static result< Signatureparse (const PathT &path)
 Same as parse(std::string_view) but the file is given as a std::filesystem::path.

Member Typedef Documentation

◆ attributes_t

using LIEF::PE::SignatureParser::attributes_t = std::vector<std::unique_ptr<Attribute>>

◆ signer_infos_t

◆ time_t

using LIEF::PE::SignatureParser::time_t = std::array<int32_t, 6>

◆ x509_certificates_t

Constructor & Destructor Documentation

◆ SignatureParser()

LIEF::PE::SignatureParser::SignatureParser ( const SignatureParser & )
delete

References SignatureParser().

Referenced by operator=(), and SignatureParser().

Member Function Documentation

◆ operator=()

SignatureParser & LIEF::PE::SignatureParser::operator= ( const SignatureParser & )
delete

References SignatureParser().

◆ parse() [1/4]

result< Signature > LIEF::PE::SignatureParser::parse ( BinaryStream & stream,
bool skip_header = false )
static

Parse a PKCS #7 signature given a BinaryStream.

◆ parse() [2/4]

template<class PathT, enable_if_path_t< PathT > = 0>
result< Signature > LIEF::PE::SignatureParser::parse ( const PathT & path)
inlinestatic

Same as parse(std::string_view) but the file is given as a std::filesystem::path.

References parse().

◆ parse() [3/4]

result< Signature > LIEF::PE::SignatureParser::parse ( std::string_view path)
static

Parse a PKCS #7 signature from a file path.

◆ parse() [4/4]

result< Signature > LIEF::PE::SignatureParser::parse ( std::vector< uint8_t > data,
bool skip_header = false )
static

Parse a PKCS #7 signature given a raw blob.

Referenced by parse().


The documentation for this class was generated from the following file: