pub trait EncryptionKeys {
// Required methods
fn active_key(&self) -> Result<EncryptionKey<'_>>;
fn decryption_key(&self, id: &str) -> Result<&[u8; 32]>;
}Expand description
Supplies the active encryption key and historical decryption keys.
Required Methods§
Sourcefn active_key(&self) -> Result<EncryptionKey<'_>>
fn active_key(&self) -> Result<EncryptionKey<'_>>
Returns the key used for new envelopes.
§Errors
Returns an error when the active key is unavailable.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".