mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-23 16:04:46 +02:00
feat(api): add Intel DCAP API client module
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>
This commit is contained in:
parent
93c35dad38
commit
ed84a424db
11 changed files with 1939 additions and 1 deletions
28
crates/intel-dcap-api/src/requests.rs
Normal file
28
crates/intel-dcap-api/src/requests.rs
Normal file
|
@ -0,0 +1,28 @@
|
|||
// 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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue