Skip to content

Commit 06c0172

Browse files
committed
Remove remainder of snp
1 parent 68f4a42 commit 06c0172

17 files changed

Lines changed: 524 additions & 381 deletions

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1515

1616
### Changed
1717

18+
- SNP attestation reports are now parsed and verified through TAV accessors. The public packed `ccf::pal::snp::Attestation` wire-layout type has been replaced by the move-only `ccf::pal::snp::AttestationReport` accessor API. (#8083)
1819
- TLS handshakes now prefer hybrid post-quantum key exchange groups, in the order `SecP384r1MLKEM1024`, `SecP256r1MLKEM768`, `X25519MLKEM768`, when the linked crypto provider supports them. The `P-521`, `P-384` and `P-256` groups are retained as fallbacks (#8107).
1920
- `ccf.cose.verify_receipt()` has moved and been renamed to `ccf.receipt.verify_cose()`; the old name still works but is deprecated (#8109).
2021

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ if(BUILD_TESTS)
604604
snp_ioctl_test
605605
${CMAKE_CURRENT_SOURCE_DIR}/src/pal/test/snp_ioctl_test.cpp
606606
)
607+
target_link_libraries(snp_ioctl_test PRIVATE ccf_pal)
607608
set_property(TEST snp_ioctl_test APPEND PROPERTY LABELS snp)
608609
set_property(TEST snp_ioctl_test APPEND PROPERTY CONFIGURATIONS snp)
609610

include/ccf/node/quote.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace ccf
3939

4040
static std::optional<HostData> get_host_data(const QuoteInfo& quote_info);
4141

42-
static std::optional<pal::snp::Attestation> get_snp_attestation(
42+
static std::optional<pal::snp::AttestationReport> get_snp_attestation(
4343
const QuoteInfo& quote_info);
4444

4545
static QuoteVerificationResult verify_quote_against_store(

include/ccf/pal/attestation.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#pragma once
44

55
#include "ccf/ds/quote_info.h"
6+
#include "ccf/pal/attestation_sev_snp.h"
67
#include "ccf/pal/attestation_sev_snp_endorsements.h"
78
#include "ccf/pal/measurement.h"
89
#include "ccf/pal/report_data.h"
@@ -28,6 +29,11 @@ namespace ccf::pal
2829
PlatformAttestationMeasurement& measurement,
2930
PlatformAttestationReportData& report_data);
3031

32+
snp::AttestationReport verify_snp_attestation_report_and_get(
33+
const QuoteInfo& quote_info,
34+
PlatformAttestationMeasurement& measurement,
35+
PlatformAttestationReportData& report_data);
36+
3137
void verify_quote(
3238
const QuoteInfo& quote_info,
3339
PlatformAttestationMeasurement& measurement,

0 commit comments

Comments
 (0)