15#ifndef LIEF_PE_SIGNATURE_PARSER_H
16#define LIEF_PE_SIGNATURE_PARSER_H
39 struct SpcPeImageData {
45 std::string program_name;
46 std::string more_info;
57 using time_t = std::array<int32_t, 6>;
61 bool skip_header =
false);
71 template<
class PathT, enable_if_path_t<PathT> = 0>
73 return parse(path.string());
108 parse_spc_relaxed_pe_marker_check(
BinaryStream& stream);
111 parse_spc_indirect_data(
BinaryStream& stream, range_t& range);
113 parse_ms_platform_manifest_binary_id(
BinaryStream& stream);
Class that is used to a read stream of data from different sources.
Definition BinaryStream.hpp:34
Interface over PKCS #7 attribute.
Definition PE/signature/Attribute.hpp:28
Interface over the structure described by the OID 1.2.840.113549.1.9.16.1.4 (PKCS #9).
Definition PKCS9TSTInfo.hpp:59
Main interface to parse PE binaries. In particular, the static Parser::parse functions should be used...
Definition PE/Parser.hpp:53
static result< Signature > parse(std::vector< uint8_t > data, bool skip_header=false)
Parse a PKCS #7 signature given a raw blob.
std::vector< x509 > x509_certificates_t
Definition SignatureParser.hpp:56
static result< Signature > parse(const PathT &path)
Same as parse(std::string_view) but the file is given as a std::filesystem::path.
Definition SignatureParser.hpp:72
static result< Signature > parse(BinaryStream &stream, bool skip_header=false)
Parse a PKCS #7 signature given a BinaryStream.
std::vector< SignerInfo > signer_infos_t
Definition SignatureParser.hpp:55
std::vector< std::unique_ptr< Attribute > > attributes_t
Definition SignatureParser.hpp:54
std::array< int32_t, 6 > time_t
Definition SignatureParser.hpp:57
SignatureParser & operator=(const SignatureParser &)=delete
SignatureParser(const SignatureParser &)=delete
static result< Signature > parse(std::string_view path)
Parse a PKCS #7 signature from a file path.
friend class Parser
Definition SignatureParser.hpp:38
Definition SpcIndirectData.hpp:31
Interface over the structure described by the OID 1.3.6.1.4.1.311.2.1.12.
Definition SpcSpOpusInfo.hpp:40
Definition VectorStream.hpp:28
Wrapper that contains an Object (T) or an error.
Definition errors.hpp:78
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:31
LIEF namespace.
Definition Abstract/Binary.hpp:41
#define LIEF_API
Definition visibility.h:44