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

SigningCertificateV2 ::= SEQUENCE { certs SEQUENCE OF ESSCertIDv2, policies SEQUENCE OF PolicyInformation OPTIONAL }. More...

#include <SigningCertificateV2.hpp>

Inheritance diagram for LIEF::PE::SigningCertificateV2:
Collaboration diagram for LIEF::PE::SigningCertificateV2:

Public Member Functions

 SigningCertificateV2 ()
 
 SigningCertificateV2 (const SigningCertificateV2 &)=default
 
SigningCertificateV2operator= (const SigningCertificateV2 &)=default
 
std::unique_ptr< Attributeclone () const override
 
std::string print () const override
 Print information about the underlying attribute.
 
void accept (Visitor &visitor) const override
 
 ~SigningCertificateV2 () override=default
 
- Public Member Functions inherited from LIEF::PE::Attribute
 Attribute ()=delete
 
 Attribute (const Attribute &)=default
 
Attributeoperator= (const Attribute &)=default
 
virtual TYPE type () const
 Concrete type of the attribute.
 
 ~Attribute () override=default
 
- Public Member Functions inherited from LIEF::Object
 Object ()
 
 Object (const Object &other)
 
Objectoperator= (const Object &other)
 
template<class T >
output_t< T > as ()
 
template<class T >
output_const_t< T > as () const
 
virtual bool operator== (const Object &other) const
 
virtual bool operator!= (const Object &other) const
 
virtual ~Object ()
 

Static Public Member Functions

static bool classof (const Attribute *attr)
 

Additional Inherited Members

- Public Types inherited from LIEF::PE::Attribute
enum class  TYPE {
  UNKNOWN = 0 , CONTENT_TYPE , GENERIC_TYPE , SIGNING_CERTIFICATE_V2 ,
  SPC_SP_OPUS_INFO , SPC_RELAXED_PE_MARKER_CHECK , MS_COUNTER_SIGN , MS_SPC_NESTED_SIGN ,
  MS_SPC_STATEMENT_TYPE , MS_PLATFORM_MANIFEST_BINARY_ID , PKCS9_AT_SEQUENCE_NUMBER , PKCS9_COUNTER_SIGNATURE ,
  PKCS9_MESSAGE_DIGEST , PKCS9_SIGNING_TIME
}
 
- Public Types inherited from LIEF::Object
template<class T >
using output_t = add_pointer_t<decay_t<T>>
 
template<class T >
using output_const_t = add_pointer_t<add_const_t<decay_t<T>>>
 

Detailed Description

SigningCertificateV2 ::= SEQUENCE { certs SEQUENCE OF ESSCertIDv2, policies SEQUENCE OF PolicyInformation OPTIONAL }.

ESSCertIDv2 ::= SEQUENCE { hashAlgorithm AlgorithmIdentifier DEFAULT {algorithm id-sha256}, certHash OCTET STRING, issuerSerial IssuerSerial OPTIONAL }

IssuerSerial ::= SEQUENCE { issuer GeneralNames, serialNumber CertificateSerialNumber }

PolicyInformation ::= SEQUENCE { policyIdentifier OBJECT IDENTIFIER, policyQualifiers SEQUENCE SIZE (1..MAX) OF PolicyQualifierInfo OPTIONAL }

Constructor & Destructor Documentation

◆ SigningCertificateV2() [1/2]

LIEF::PE::SigningCertificateV2::SigningCertificateV2 ( )
inline

◆ SigningCertificateV2() [2/2]

LIEF::PE::SigningCertificateV2::SigningCertificateV2 ( const SigningCertificateV2 & )
default

◆ ~SigningCertificateV2()

LIEF::PE::SigningCertificateV2::~SigningCertificateV2 ( )
overridedefault

Member Function Documentation

◆ accept()

void LIEF::PE::SigningCertificateV2::accept ( Visitor & visitor) const
overridevirtual

Reimplemented from LIEF::PE::Attribute.

◆ classof()

static bool LIEF::PE::SigningCertificateV2::classof ( const Attribute * attr)
inlinestatic

◆ clone()

std::unique_ptr< Attribute > LIEF::PE::SigningCertificateV2::clone ( ) const
inlineoverridevirtual

Implements LIEF::PE::Attribute.

◆ operator=()

SigningCertificateV2 & LIEF::PE::SigningCertificateV2::operator= ( const SigningCertificateV2 & )
default

◆ print()

std::string LIEF::PE::SigningCertificateV2::print ( ) const
overridevirtual

Print information about the underlying attribute.

Implements LIEF::PE::Attribute.


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