wrap.rs (278B)
1 use alloc::vec::Vec; 2 3 pub trait RadrootsSecretKeyWrapping { 4 type Error; 5 6 fn wrap_data_key(&self, key_slot: &str, plaintext_key: &[u8]) -> Result<Vec<u8>, Self::Error>; 7 8 fn unwrap_data_key(&self, key_slot: &str, wrapped_key: &[u8]) -> Result<Vec<u8>, Self::Error>; 9 }