ITeeProvider<T>
Interfaces · AiDotNet.FederatedLearning.TEE
Abstracts a Trusted Execution Environment backend for enclave lifecycle, data sealing, and attestation quote generation.
Known implementations: TeeProviderBase<T>
For Beginners
A TEE provider manages a hardware-isolated “vault” (enclave) on a processor. Think of it like a bank’s safe-deposit box: you can put data in (seal), take data out (unseal), and ask the bank for a signed letter proving the box exists (generate attestation quote).
How It Works
Implementations:
Properties
| Property | Summary |
|---|---|
TeeProviderType ProviderType { get; } |
Gets the TEE provider type. |
bool IsInitialized { get; } |
Gets a value indicating whether the enclave is currently initialized and ready. |
Methods
| Method | Summary |
|---|---|
byte[] GenerateAttestationQuote(byte[] reportData) |
Generates a remote attestation quote proving this enclave’s identity and integrity. |
byte[] SealData(byte[] plaintext) |
Seals (encrypts) data to the enclave so only this enclave can unseal it. |
byte[] UnsealData(byte[] sealedData) |
Unseals (decrypts) data that was previously sealed by this enclave. |
long GetMaxEnclaveMemory() |
Gets the maximum memory (in bytes) available inside this enclave. |
string GetMeasurementHash() |
Gets the measurement hash (code identity) of the running enclave. |
void Destroy() |
Destroys the enclave and releases all protected resources. |
void Initialize(TeeOptions options) |
Initializes the TEE enclave. |