Expand description
Cryptographic key types with secure memory handling.
This module provides key types that ensure sensitive key material is:
- Zeroized on drop to prevent memory leaks
- Never exposed in debug output
- Compared in constant time to prevent timing attacks
§Security
All key types in this module are designed with defense-in-depth:
SecretKeydoes not implementCloneto prevent accidental duplication- Debug output is redacted to prevent logging of key material
- Comparison uses constant-time algorithms
Structs§
- Secret
Key - A 32-byte secret key with automatic zeroization.
Enums§
- Secret
KeyError - Errors related to secret key operations.
Constants§
- SECRET_
KEY_ LEN - The length of a secret key in bytes.