pub struct InsecureCrypt { /* private fields */ }
Expand description
This struct provides the Crypt
trait without any strong security.
It is intended for use only in test code where actual security is inconsequential.
Implementations§
Source§impl InsecureCrypt
impl InsecureCrypt
Trait Implementations§
Source§impl Crypt for InsecureCrypt
impl Crypt for InsecureCrypt
Source§fn create_key<'life0, 'async_trait>(
&'life0 self,
owner: u64,
purpose: KeyPurpose,
) -> Pin<Box<dyn Future<Output = Result<(WrappedKey, UnwrappedKey), Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_key<'life0, 'async_trait>(
&'life0 self,
owner: u64,
purpose: KeyPurpose,
) -> Pin<Box<dyn Future<Output = Result<(WrappedKey, UnwrappedKey), Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
owner
is intended to be used such that when the key is wrapped, it appears to be different
to that of the same key wrapped by a different owner. In this way, keys can be shared
amongst different filesystem objects (e.g. for clones), but it is not possible to tell just
by looking at the wrapped keys.Source§fn create_key_with_id<'life0, 'async_trait>(
&'life0 self,
owner: u64,
wrapping_key_id: u128,
) -> Pin<Box<dyn Future<Output = Result<(WrappedKey, UnwrappedKey), Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_key_with_id<'life0, 'async_trait>(
&'life0 self,
owner: u64,
wrapping_key_id: u128,
) -> Pin<Box<dyn Future<Output = Result<(WrappedKey, UnwrappedKey), Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
owner
is intended to be used such that when the key is wrapped, it appears to be different
to that of the same key wrapped by a different owner. In this way, keys can be shared
amongst different filesystem objects (e.g. for clones), but it is not possible to tell just
by looking at the wrapped keys.fn unwrap_key<'life0, 'life1, 'async_trait>(
&'life0 self,
wrapped_key: &'life1 WrappedKey,
owner: u64,
) -> Pin<Box<dyn Future<Output = Result<UnwrappedKey, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
§fn unwrap_keys<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 WrappedKeysV40,
owner: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<(u64, Option<UnwrappedKey>)>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn unwrap_keys<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 WrappedKeysV40,
owner: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<(u64, Option<UnwrappedKey>)>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Unwraps the keys and stores the result in UnwrappedKeys.
Source§impl Default for InsecureCrypt
impl Default for InsecureCrypt
Source§fn default() -> InsecureCrypt
fn default() -> InsecureCrypt
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for InsecureCrypt
impl RefUnwindSafe for InsecureCrypt
impl Send for InsecureCrypt
impl Sync for InsecureCrypt
impl Unpin for InsecureCrypt
impl UnwindSafe for InsecureCrypt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more