Trait rustls::sign::Signer[][src]

pub trait Signer: Send + Sync {
    fn sign(&self, message: &[u8]) -> Result<Vec<u8>, TLSError>;
fn get_scheme(&self) -> SignatureScheme; }

A thing that can sign a message.

Required methods

fn sign(&self, message: &[u8]) -> Result<Vec<u8>, TLSError>[src]

Signs message using the selected scheme.

fn get_scheme(&self) -> SignatureScheme[src]

Reveals which scheme will be used when you call sign().

Loading content...

Implementors

Loading content...