pub enum SignerRequest {
SignHash {
hash: Vec<u8>,
responder: SignerSignHashResponder,
},
SignHashWithPrivateKey {
hash: Vec<u8>,
wrapped_private_key: Vec<u8>,
responder: SignerSignHashWithPrivateKeyResponder,
},
}
Expand description
This protocol is used for signing operations with the factory-provisioned Weave key or generated private keys.
Variants§
SignHash
Sign the provided hash
with the factory provisioned key. On success
the result is returned in signature
. The signature must be of a type
that is supported by Weave, and must take the standard form of an ASN.1
DER SEQUENCE. This operation must support SHA1 and SHA256 hash values.
SignHashWithPrivateKey
Sign the provided hash
with the provided wrapped_private_key
. On
success, the result is returned in signature
. The signature must be
of a type that is supported by Weave, and must take the standard form
of an ASN.1 DER SEQUENCE. This operation must support SHA1 and SHA256
hash values.
Implementations§
Source§impl SignerRequest
impl SignerRequest
pub fn into_sign_hash(self) -> Option<(Vec<u8>, SignerSignHashResponder)>
pub fn into_sign_hash_with_private_key( self, ) -> Option<(Vec<u8>, Vec<u8>, SignerSignHashWithPrivateKeyResponder)>
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 SignerRequest
impl !RefUnwindSafe for SignerRequest
impl Send for SignerRequest
impl Sync for SignerRequest
impl Unpin for SignerRequest
impl !UnwindSafe for SignerRequest
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