Skip to main content

KeyWrapper

Trait KeyWrapper 

Source
pub trait KeyWrapper {
    // Required methods
    fn generate_data_key(&self) -> Result<DataKey>;
    fn unwrap_data_key(&self, wrapped: &[u8], key_id: &str) -> Result<Dek>;
}

Required Methods§

Source

fn generate_data_key(&self) -> Result<DataKey>

Source

fn unwrap_data_key(&self, wrapped: &[u8], key_id: &str) -> Result<Dek>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§