mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-22 15:34:48 +02:00

Introduced a new `intel-dcap-api` crate for interacting with Intel's DCAP APIs. - Implemented various API client functionalities for SGX/TDX attestation services. - Added support for registration, certification, enclave identity, and FMSPC retrieval. Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
28 lines
737 B
Rust
28 lines
737 B
Rust
// SPDX-License-Identifier: Apache-2.0
|
|
// Copyright (c) 2025 Matter Labs
|
|
|
|
use serde::Serialize;
|
|
|
|
#[derive(Serialize)]
|
|
pub(crate) struct PckCertRequest<'a> {
|
|
#[serde(rename = "platformManifest")]
|
|
pub(crate) platform_manifest: &'a str,
|
|
pub(crate) cpusvn: &'a str,
|
|
pub(crate) pcesvn: &'a str,
|
|
pub(crate) pceid: &'a str,
|
|
}
|
|
|
|
#[derive(Serialize)]
|
|
pub(crate) struct PckCertsRequest<'a> {
|
|
#[serde(rename = "platformManifest")]
|
|
pub(crate) platform_manifest: &'a str,
|
|
pub(crate) pceid: &'a str,
|
|
}
|
|
|
|
#[derive(Serialize)]
|
|
pub(crate) struct PckCertsConfigRequest<'a> {
|
|
#[serde(rename = "platformManifest")]
|
|
pub(crate) platform_manifest: &'a str,
|
|
pub(crate) cpusvn: &'a str,
|
|
pub(crate) pceid: &'a str,
|
|
}
|