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

This class exposes the MS Counter Signature attribute. More...

#include <MsCounterSign.hpp>

Inheritance diagram for LIEF::PE::MsCounterSign:
Collaboration diagram for LIEF::PE::MsCounterSign:

Public Types

using certificates_t = std::vector<x509>
 
using it_const_certificates = const_ref_iterator<const certificates_t&>
 
using it_certificates = ref_iterator<certificates_t&>
 
using signers_t = std::vector<SignerInfo>
 
using it_const_signers = const_ref_iterator<const signers_t&>
 
using it_signers = ref_iterator<signers_t&>
 
- 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>>>
 

Public Member Functions

 MsCounterSign ()
 
 MsCounterSign (const MsCounterSign &)=default
 
MsCounterSignoperator= (const MsCounterSign &)=default
 
std::unique_ptr< Attributeclone () const override
 
uint32_t version () const
 
it_const_certificates certificates () const
 Iterator over the LIEF::PE::x509 certificates of this counter signature.
 
it_certificates certificates ()
 
it_const_signers signers () const
 Signer iterator (same as LIEF::PE::SignerInfo)
 
it_signers signers ()
 
ALGORITHMS digest_algorithm () const
 
const ContentInfocontent_info () const
 
std::string print () const override
 Print information about the underlying attribute.
 
void accept (Visitor &visitor) const override
 
 ~MsCounterSign () 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)
 

Detailed Description

This class exposes the MS Counter Signature attribute.

Member Typedef Documentation

◆ certificates_t

◆ it_certificates

◆ it_const_certificates

◆ it_const_signers

◆ it_signers

◆ signers_t

Constructor & Destructor Documentation

◆ MsCounterSign() [1/2]

LIEF::PE::MsCounterSign::MsCounterSign ( )
inline

◆ MsCounterSign() [2/2]

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

◆ ~MsCounterSign()

LIEF::PE::MsCounterSign::~MsCounterSign ( )
overridedefault

Member Function Documentation

◆ accept()

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

Reimplemented from LIEF::PE::Attribute.

◆ certificates() [1/2]

it_certificates LIEF::PE::MsCounterSign::certificates ( )
inline

◆ certificates() [2/2]

it_const_certificates LIEF::PE::MsCounterSign::certificates ( ) const
inline

Iterator over the LIEF::PE::x509 certificates of this counter signature.

◆ classof()

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

◆ clone()

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

Implements LIEF::PE::Attribute.

◆ content_info()

const ContentInfo & LIEF::PE::MsCounterSign::content_info ( ) const
inline

◆ digest_algorithm()

ALGORITHMS LIEF::PE::MsCounterSign::digest_algorithm ( ) const
inline

◆ operator=()

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

◆ print()

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

Print information about the underlying attribute.

Implements LIEF::PE::Attribute.

◆ signers() [1/2]

it_signers LIEF::PE::MsCounterSign::signers ( )
inline

◆ signers() [2/2]

it_const_signers LIEF::PE::MsCounterSign::signers ( ) const
inline

Signer iterator (same as LIEF::PE::SignerInfo)

◆ version()

uint32_t LIEF::PE::MsCounterSign::version ( ) const
inline

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