Crate secured_enclave Copy item path Source pub use errors::EnclaveError ;pub use traits::Decryptable ;pub use traits::Encryptable ;errors traits Cipher The Cipher struct provides a common interface for cryptographic operations,
specifically focusing on encryption and decryption. Enclave Enclave acts as a container for encrypted data, including metadata and the encrypted content itself.Key Key holds a public key and a salt value.
This struct is specifically designed for use in symmetric encryption,
and is compatible with multiple encryption algorithms.SignedEnvelope SignedEnvelope struct for handling data with its associated MAC. KeyDerivationStrategy CHACHA20_NONCE_SIZE Size of the ChaCha20 nonce in bytes.
The nonce is a 64-bit (8 bytes) value used to make each block unique. random_bytes Generates a random byte array of a specified size.