Enum fidl_fuchsia_fxfs::CryptRequest
source · pub enum CryptRequest {
CreateKey {
owner: u64,
purpose: KeyPurpose,
responder: CryptCreateKeyResponder,
},
UnwrapKey {
wrapping_key_id: u64,
owner: u64,
key: Vec<u8>,
responder: CryptUnwrapKeyResponder,
},
}
Variants§
CreateKey
Creates a new key wrapped with the key identified by wrapping_key_id
. owner
identifies
the owner of the key and must be supplied to UnwrapKeys
. The crypt service chooses a
wrapping_key_id
which must be supplied to UnwrapKeys. The wrapping_key_id
has no
meaning to Fxfs.
UnwrapKey
Unwraps a key that is wrapped by the key identified by wrapping_key_id
. owner
must be
the same as that passed to CreateKey
. This can fail due to permission reasons, but an
incorrect key or owner will not fail; it will just return an unwrapped key that won’t
actually decrpyt the data.
Implementations§
source§impl CryptRequest
impl CryptRequest
pub fn into_create_key( self ) -> Option<(u64, KeyPurpose, CryptCreateKeyResponder)>
pub fn into_unwrap_key( self ) -> Option<(u64, u64, Vec<u8>, CryptUnwrapKeyResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CryptRequest
impl !RefUnwindSafe for CryptRequest
impl Send for CryptRequest
impl Sync for CryptRequest
impl Unpin for CryptRequest
impl !UnwindSafe for CryptRequest
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