16#ifndef LIEF_PE_ATTRIBUTES_PKCS9_MESSAGE_DIGEST_H
17#define LIEF_PE_ATTRIBUTES_PKCS9_MESSAGE_DIGEST_H
55 digest_{std::move(digest)}
61 std::unique_ptr<Attribute>
clone()
const override {
71 std::string
print()
const override;
74 return attr->
type() == Attribute::TYPE::PKCS9_MESSAGE_DIGEST;
82 std::vector<uint8_t> digest_;
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
Interface over the structure described by the OID 1.2.840.113549.1.9.4 (PKCS #9)
Definition PKCS9MessageDigest.hpp:46
PKCS9MessageDigest(std::vector< uint8_t > digest)
Definition PKCS9MessageDigest.hpp:53
std::string print() const override
Print information about the attribute.
PKCS9MessageDigest()=delete
void accept(Visitor &visitor) const override
PKCS9MessageDigest(const PKCS9MessageDigest &)=default
~PKCS9MessageDigest() override=default
PKCS9MessageDigest & operator=(const PKCS9MessageDigest &)=default
span< const uint8_t > digest() const
Message digeset as a blob of bytes as described in the RFC.
Definition PKCS9MessageDigest.hpp:66
std::unique_ptr< Attribute > clone() const override
Definition PKCS9MessageDigest.hpp:61
static bool classof(const Attribute *attr)
Definition PKCS9MessageDigest.hpp:73
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
LIEF namespace.
Definition Abstract/Binary.hpp:32
tcb::span< ElementType, Extent > span
Definition span.hpp:22
#define LIEF_API
Definition visibility.h:41