Expand description
APFSDS Crypto - Encryption, signing, and key management
This crate provides:
- Ed25519 key generation and signing (legacy)
- ML-DSA-65 (Dilithium3) post-quantum signatures
- X25519 ECDH key exchange (legacy)
- ML-KEM-768 (Kyber) post-quantum key exchange
- AES-256-GCM encryption/decryption
- HMAC-SHA256 with constant-time comparison
- Replay cache for nonce deduplication
Structs§
- Aes256
GcmCipher - AES-256-GCM cipher wrapper
- Ed25519
KeyPair - Ed25519 key pair for signing
- Hmac
Authenticator - HMAC-SHA256 authenticator
- MlDsa65
KeyPair - ML-DSA-65 (Dilithium3) key pair for post-quantum signatures
- MlKem768
KeyPair - ML-KEM-768 (Kyber) key pair for post-quantum key exchange
- Replay
Cache - Thread-safe replay cache for nonce/UUID deduplication
- Uuid
Replay Cache - UUID-based replay cache (16-byte keys)
- X25519
KeyPair - X25519 key pair for ECDH key exchange
Enums§
Functions§
- derive_
aes_ key - Derive AES key from X25519 shared secret using SHA256