pub enum CryptManagementRequest {
AddWrappingKey {
wrapping_key_id: [u8; 16],
key: Vec<u8>,
responder: CryptManagementAddWrappingKeyResponder,
},
SetActiveKey {
purpose: KeyPurpose,
wrapping_key_id: [u8; 16],
responder: CryptManagementSetActiveKeyResponder,
},
ForgetWrappingKey {
wrapping_key_id: [u8; 16],
responder: CryptManagementForgetWrappingKeyResponder,
},
}
Variants§
AddWrappingKey
Adds a new wrapping key to the Crypt service. The new key will immediately be available for unwrapping keys (Crypt::UnwrapKeys) but won’t be used for wrapping keys until CryptManagement::SetActiveKeys is called.
SetActiveKey
Updates the key which will be used for wrapping keys (Crypt::CreateKey). purpose
describes which active key to modify.
ForgetWrappingKey
Forgets a wrapping key, preventing its use for future key-unwrapping. All future calls to Crypt::UnwrapKeys with that wrapping key ID will fail. If either the data or metadata part of the key is active, an error is returned.
Implementations§
Source§impl CryptManagementRequest
impl CryptManagementRequest
pub fn into_add_wrapping_key( self, ) -> Option<([u8; 16], Vec<u8>, CryptManagementAddWrappingKeyResponder)>
pub fn into_set_active_key( self, ) -> Option<(KeyPurpose, [u8; 16], CryptManagementSetActiveKeyResponder)>
pub fn into_forget_wrapping_key( self, ) -> Option<([u8; 16], CryptManagementForgetWrappingKeyResponder)>
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 CryptManagementRequest
impl !RefUnwindSafe for CryptManagementRequest
impl Send for CryptManagementRequest
impl Sync for CryptManagementRequest
impl Unpin for CryptManagementRequest
impl !UnwindSafe for CryptManagementRequest
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