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/PE/signature/Attribute.hpp"
21#include "LIEF/span.hpp"
55 Attribute(Attribute::TYPE::PKCS9_MESSAGE_DIGEST),
56 digest_{std::move(digest)}
62 std::unique_ptr<Attribute> clone()
const override {
72 std::string
print()
const override;
74 static bool classof(
const Attribute* attr) {
75 return attr->
type() == Attribute::TYPE::PKCS9_MESSAGE_DIGEST;
78 void accept(
Visitor& visitor)
const override;
83 std::vector<uint8_t> digest_;
Interface over PKCS #7 attribute.
Definition Attribute.hpp:28
virtual TYPE type() const
Concrete type of the attribute.
Definition Attribute.hpp:58
Interface over the structure described by the OID 1.2.840.113549.1.9.4 (PKCS #9)
Definition PKCS9MessageDigest.hpp:47
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:67
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:221
LIEF namespace.
Definition Abstract/Binary.hpp:31