pub trait KeyWrap {
// Required methods
fn wrap(&self, key: &SecretKey, kek: &SecretKey) -> Result<Vec<u8>>;
fn unwrap(
&self,
wrapped: &[u8],
kek: &SecretKey,
algorithm: Algorithm,
) -> Result<SecretKey>;
}Expand description
Trait for key wrapping/unwrapping