16#ifndef LIEF_PE_ATTRIBUTES_PKCS9_MESSAGE_DIGEST_H
17#define LIEF_PE_ATTRIBUTES_PKCS9_MESSAGE_DIGEST_H
19#include "LIEF/visibility.h"
20#include "LIEF/errors.hpp"
21#include "LIEF/PE/signature/Attribute.hpp"
22#include "LIEF/span.hpp"
56 Attribute(Attribute::TYPE::PKCS9_MESSAGE_DIGEST),
57 digest_{std::move(digest)}
63 std::unique_ptr<Attribute> clone()
const override {
73 std::string
print()
const override;
75 static bool classof(
const Attribute* attr) {
76 return attr->
type() == Attribute::TYPE::PKCS9_MESSAGE_DIGEST;
79 void accept(
Visitor& visitor)
const override;
84 std::vector<uint8_t> digest_;
Interface over PKCS #7 attribute.
Definition Attribute.hpp:30
virtual TYPE type() const
Concrete type of the attribute.
Definition Attribute.hpp:60
Interface over the structure described by the OID 1.2.840.113549.1.9.4 (PKCS #9)
Definition PKCS9MessageDigest.hpp:48
std::string print() const override
Print information about the attribute.
span< const uint8_t > digest() const
Message digeset as a blob of bytes as described in the RFC.
Definition PKCS9MessageDigest.hpp:68
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:219
LIEF namespace.
Definition Abstract/Binary.hpp:32