16#ifndef LIEF_PE_ATTRIBUTES_MS_COUNTER_SIGNATURE_H
17#define LIEF_PE_ATTRIBUTES_MS_COUNTER_SIGNATURE_H
52 std::unique_ptr<Attribute>
clone()
const override {
79 return digest_algorithm_;
86 std::string
print()
const override;
91 return attr->
type() == Attribute::TYPE::MS_COUNTER_SIGN;
97 uint32_t version_ = 0;
98 ALGORITHMS digest_algorithm_ = ALGORITHMS::UNKNOWN;
101 std::vector<SignerInfo> signers_;
Interface over PKCS #7 attribute.
Definition PE/signature/Attribute.hpp:28
TYPE
Definition PE/signature/Attribute.hpp:34
virtual TYPE type() const
Concrete type of the attribute.
Definition PE/signature/Attribute.hpp:61
Definition ContentInfo.hpp:78
This class exposes the MS Counter Signature attribute.
Definition MsCounterSign.hpp:32
MsCounterSign & operator=(const MsCounterSign &)=default
MsCounterSign(const MsCounterSign &)=default
it_certificates certificates()
Definition MsCounterSign.hpp:65
it_const_certificates certificates() const
Iterator over the LIEF::PE::x509 certificates of this counter signature.
Definition MsCounterSign.hpp:61
std::unique_ptr< Attribute > clone() const override
Definition MsCounterSign.hpp:52
static bool classof(const Attribute *attr)
Definition MsCounterSign.hpp:90
void accept(Visitor &visitor) const override
MsCounterSign()
Definition MsCounterSign.hpp:45
~MsCounterSign() override=default
uint32_t version() const
Definition MsCounterSign.hpp:56
it_const_signers signers() const
Signer iterator (same as LIEF::PE::SignerInfo)
Definition MsCounterSign.hpp:70
ALGORITHMS digest_algorithm() const
Definition MsCounterSign.hpp:78
const ContentInfo & content_info() const
Definition MsCounterSign.hpp:82
it_signers signers()
Definition MsCounterSign.hpp:74
std::vector< x509 > certificates_t
Definition MsCounterSign.hpp:37
std::string print() const override
Print information about the underlying attribute.
std::vector< SignerInfo > signers_t
Definition MsCounterSign.hpp:41
Main interface to parse PE binaries. In particular the static functions: Parser::parse should be used...
Definition PE/Parser.hpp:47
Definition SignatureParser.hpp:37
Definition Visitor.hpp:224
Iterator which returns reference on container's values.
Definition iterators.hpp:48
ALGORITHMS
Cryptography algorithms.
Definition PE/enums.hpp:686
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41