Expand description
tee_crypto — Cryptographic abstraction layer backed by RustCrypto.
Provides trait-based abstractions for hash, MAC, symmetric/asymmetric cryptography, BigNum, and RNG, replacing mbedtls in the TEE stack.
Re-exports§
pub use error::CryptoError;pub use error::Result;pub use rng::CryptoRng;pub use tee_ops::ed25519;
Modules§
- aead
- AEAD cipher abstraction — AES-128/192/256-GCM, SM4-GCM, AES-CCM.
- asymmetric
- Asymmetric crypto traits and shared types.
- bignum
- BigNum implementation for arbitrary-precision integer arithmetic.
- block_
cipher - Block cipher abstraction — AES-128-ECB, AES-256-ECB, SM4-ECB, DES-ECB, DES3-ECB.
- bytes
- Semantic byte containers for cryptographic material.
- cipher
- Streaming symmetric cipher — CBC and CTR modes.
- ecc
- ECC implementation (P-256, P-384, P-521) using the RustCrypto crates.
- error
- Error types for tee_crypto.
- hash
- Hash abstraction — SHA-1/224/256/384/512, SM3, MD5.
- hkdf
- HKDF (HMAC-based Key Derivation Function) — RFC 5869.
- kdf
- Password-based key derivation functions (PBKDF2).
- mac
- MAC abstraction — HMAC-MD5/SHA1/224/256/384/512/SM3, AES-128/192/256-CMAC, SM4-CMAC, DES3-CMAC.
- material
- Algorithm-tagged cryptographic material.
- md5
- MD5 hash wrapper backed by RustCrypto.
- rng
- RNG abstraction — ChaCha20-based cryptographic random number generator.
- rsa
- RSA implementation wrapping the
rsacrate. - sm2
- SM2 implementation (DSA, PKE, KEP) using the
sm2crate. - streaming_
cipher - Streaming symmetric cipher context.
- tee_ops
- TEE operation-level cryptographic APIs.
- xts
- XTS cipher abstraction — AES-128-XTS, AES-256-XTS, SM4-XTS.