Expand description
Security utilities for enclave / confidential computing environments.
Provides constant-time hex encoding, memory guarding, pluggable RNG, and secure comparison primitives for use in TEE (SGX, Nitro, TDX, SEV) environments.
Structs§
- Guarded
Memory - A guarded memory region that zeroizes on drop.
Traits§
- Enclave
Context - Enclave attestation context for remote verification.
Functions§
- ct_
hex_ decode - Constant-time hex decoding for secret material.
- ct_
hex_ encode - Constant-time hex encoding for secret material.
- rotate_
key - Atomically rotate a key: generates a new key and zeroizes the old one.
- rotate_
key_ with_ seed - Rotate a key using a specific seed (deterministic rotation).
- secure_
random - Fill a buffer with cryptographically secure random bytes.
- secure_
zero - Securely zeroize a mutable byte slice using volatile writes.