teepot/crates/teepot-tdx-attest-sys
2025-06-27 15:14:12 +00:00
..
src chore(deps): prepare release 0.6.0 2025-06-24 16:39:00 +02:00
bindings.h chore(deps): prepare release 0.6.0 2025-06-24 16:39:00 +02:00
build.rs chore(deps): prepare release 0.6.0 2025-06-24 16:39:00 +02:00
Cargo.lock chore(deps): update rust crate bindgen to 0.72.0 2025-06-27 15:14:12 +00:00
Cargo.toml chore(deps): update rust crate bindgen to 0.72.0 2025-06-27 15:14:12 +00:00
License.txt chore(deps): prepare release 0.6.0 2025-06-24 16:39:00 +02:00
README.md docs: add README files for teepot-related crates 2025-06-25 13:55:00 +02:00

teepot-tdx-attest-sys

Crates.io Documentation License

Raw FFI bindings to Intel TDX Attestation Library (libtdx_attest).

This crate provides low-level FFI bindings for Intel Trust Domain Extensions (TDX) attestation functionality. It is a fork of the original tdx-attest-sys crate from Intel's SGX Data Center Attestation Primitives.

Prerequisites

Before using this crate, you need to install:

  • Intel® SGX DCAP Driver
  • Intel® SGX SDK
  • Intel® SGX DCAP Packages
  • Intel® SGX DCAP PCCS (Provisioning Certificate Caching Service)

Please refer to the SGX DCAP Linux installation guide for detailed installation instructions.

Usage

Add this to your Cargo.toml:

[dependencies]
teepot-tdx-attest-sys = "0.1.0"

This crate provides raw FFI bindings. For a more ergonomic Rust API, consider using a higher-level wrapper crate.

Building

The crate uses bindgen to generate Rust bindings from the C headers during build time. Make sure you have:

  • The TDX attestation library (libtdx_attest) installed on your system
  • If using Intel SGX SDK, set the SGX_SDK environment variable to point to your SDK installation

License

This project is licensed under the BSD-3-Clause License. See the License.txt file for details.

Repository

This crate is part of the Teepot project.