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

Create a signature of the requested type and write it to the provided buffer.

Provided methods

This is supported on crate feature alloc only.

Create a signature of the requested type and return an allocated buffer.

Implementors