Crate secured_enclave

Crate secured_enclave 

Source

Re-exports§

pub use errors::EnclaveError;
pub use traits::Decryptable;
pub use traits::Encryptable;

Modules§

errors
traits

Structs§

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.

Enums§

KeyDerivationStrategy

Constants§

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.

Functions§

random_bytes
Generates a random byte array of a specified size.