pub trait KeyProvider: Send + Sync {
// Required methods
fn wrap_dek(&self, scope: &Scope, dek: &[u8]) -> Result<Vec<u8>, Error>;
fn unwrap_dek(
&self,
scope: &Scope,
wrapped: &[u8],
) -> Result<Vec<u8>, Error>;
}Expand description
Trait implemented by key providers responsible for wrapping and unwrapping DEKs.
Required Methods§
fn wrap_dek(&self, scope: &Scope, dek: &[u8]) -> Result<Vec<u8>, Error>
fn unwrap_dek(&self, scope: &Scope, wrapped: &[u8]) -> Result<Vec<u8>, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".