CCF
Loading...
Searching...
No Matches
cose_verifier.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the Apache 2.0 License.
3#pragma once
4
10
11#include <chrono>
12#include <openssl/x509.h>
13
14namespace ccf::crypto
15{
17 {
18 protected:
19 std::shared_ptr<PublicKey_OpenSSL> public_key;
20
21 public:
22 virtual ~COSEVerifier_OpenSSL() override;
23 virtual bool verify(
24 const std::span<const uint8_t>& buf,
25 std::span<uint8_t>& authned_content) const override;
26 virtual bool verify_detached(
27 std::span<const uint8_t> buf,
28 std::span<const uint8_t> payload) const override;
29 };
30
32 {
33 public:
34 COSECertVerifier_OpenSSL(const std::vector<uint8_t>& certificate);
35 };
36
38 {
39 public:
41 };
42}
Definition cose_verifier.h:32
Definition cose_verifier.h:38
Definition cose_verifier.h:17
virtual bool verify(const std::span< const uint8_t > &buf, std::span< uint8_t > &authned_content) const override
Definition cose_verifier.cpp:144
std::shared_ptr< PublicKey_OpenSSL > public_key
Definition cose_verifier.h:19
virtual bool verify_detached(std::span< const uint8_t > buf, std::span< const uint8_t > payload) const override
Definition cose_verifier.cpp:177
virtual ~COSEVerifier_OpenSSL() override
Definition cose_verifier.h:15
Definition pem.h:18
Definition base64.h:10