pub enum AsymmetricPrivateKeyRequest {
GetKeyOrigin {
responder: AsymmetricPrivateKeyGetKeyOriginResponder,
},
GetKeyProvider {
responder: AsymmetricPrivateKeyGetKeyProviderResponder,
},
Sign {
data: Buffer,
responder: AsymmetricPrivateKeySignResponder,
},
GetPublicKey {
responder: AsymmetricPrivateKeyGetPublicKeyResponder,
},
GetKeyAlgorithm {
responder: AsymmetricPrivateKeyGetKeyAlgorithmResponder,
},
}
Variants§
GetKeyOrigin
Get the key origin (generated/imported).
Fields
§
responder: AsymmetricPrivateKeyGetKeyOriginResponder
GetKeyProvider
Get the name for the crypto provider backing up the key.
Fields
§
responder: AsymmetricPrivateKeyGetKeyProviderResponder
Sign
Sign data
using the current key. data
needs to be less than MAX_DATA_SIZE
bytes.
GetPublicKey
Get the DER format public key for the current private key.
Fields
§
responder: AsymmetricPrivateKeyGetPublicKeyResponder
GetKeyAlgorithm
Get the key algorithm.
Fields
Implementations§
Source§impl AsymmetricPrivateKeyRequest
impl AsymmetricPrivateKeyRequest
pub fn into_get_key_origin( self, ) -> Option<AsymmetricPrivateKeyGetKeyOriginResponder>
pub fn into_get_key_provider( self, ) -> Option<AsymmetricPrivateKeyGetKeyProviderResponder>
pub fn into_sign(self) -> Option<(Buffer, AsymmetricPrivateKeySignResponder)>
pub fn into_get_public_key( self, ) -> Option<AsymmetricPrivateKeyGetPublicKeyResponder>
pub fn into_get_key_algorithm( self, ) -> Option<AsymmetricPrivateKeyGetKeyAlgorithmResponder>
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 AsymmetricPrivateKeyRequest
impl !RefUnwindSafe for AsymmetricPrivateKeyRequest
impl Send for AsymmetricPrivateKeyRequest
impl Sync for AsymmetricPrivateKeyRequest
impl Unpin for AsymmetricPrivateKeyRequest
impl !UnwindSafe for AsymmetricPrivateKeyRequest
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