CCF
Loading...
Searching...
No Matches
attestation.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
5#include "ccf/ds/quote_info.h"
9
10#include <functional>
11
12namespace ccf::pal
13{
14 // Caller-supplied callback used to retrieve endorsements as specified by
15 // the config argument. When called back, the quote_info argument will have
16 // already been populated with the raw quote.
17 using RetrieveEndorsementCallback = std::function<void(
18 const QuoteInfo& quote_info,
20
22 const QuoteInfo& quote_info,
25
27 const QuoteInfo& quote_info,
30
31 void verify_quote(
32 const QuoteInfo& quote_info,
35
36 class AttestationCollateralFetchingTimeout : public std::exception
37 {
38 private:
39 std::string msg;
40
41 public:
43 msg(std::move(msg_))
44 {}
45
46 [[nodiscard]] const char* what() const noexcept override
47 {
48 return msg.c_str();
49 }
50 };
51}
const char * what() const noexcept override
Definition attestation.h:46
AttestationCollateralFetchingTimeout(std::string msg_)
Definition attestation.h:42
Definition attestation.h:13
std::function< void(const QuoteInfo &quote_info, const snp::EndorsementEndpointsConfiguration &config)> RetrieveEndorsementCallback
Definition attestation.h:19
void verify_quote(const QuoteInfo &quote_info, PlatformAttestationMeasurement &measurement, PlatformAttestationReportData &report_data)
Definition attestation.cpp:428
void verify_snp_attestation_report(const QuoteInfo &quote_info, PlatformAttestationMeasurement &measurement, PlatformAttestationReportData &report_data)
Definition attestation.cpp:210
void verify_virtual_attestation_report(const QuoteInfo &quote_info, PlatformAttestationMeasurement &measurement, PlatformAttestationReportData &report_data)
Definition attestation.cpp:22
STL namespace.
Describes a quote (attestation) from trusted hardware.
Definition quote_info.h:26
Definition measurement.h:123
Definition report_data.h:56
Definition attestation_sev_snp_endorsements.h:39