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.