Trait askar_crypto::sign::KeySign [−][src]
pub trait KeySign: KeySigVerify { fn write_signature(
&self,
message: &[u8],
sig_type: Option<SignatureType>,
out: &mut dyn WriteBuffer
) -> Result<(), Error>; fn create_signature(
&self,
message: &[u8],
sig_type: Option<SignatureType>
) -> Result<SecretBytes, Error> { ... } }
Expand description
Signature creation operations
Required methods
fn write_signature(
&self,
message: &[u8],
sig_type: Option<SignatureType>,
out: &mut dyn WriteBuffer
) -> Result<(), Error>
fn write_signature(
&self,
message: &[u8],
sig_type: Option<SignatureType>,
out: &mut dyn WriteBuffer
) -> Result<(), Error>
Create a signature of the requested type and write it to the provided buffer.
Provided methods
fn create_signature(
&self,
message: &[u8],
sig_type: Option<SignatureType>
) -> Result<SecretBytes, Error>
fn create_signature(
&self,
message: &[u8],
sig_type: Option<SignatureType>
) -> Result<SecretBytes, Error>
This is supported on crate feature
alloc only.Create a signature of the requested type and return an allocated buffer.