pub trait Signer: Send + Sync {
fn sign(&self, message: &[u8]) -> Result<Vec<u8>, TLSError>;
fn get_scheme(&self) -> SignatureScheme;
}
Expand description
A thing that can sign a message.
Required Methods
sourcefn sign(&self, message: &[u8]) -> Result<Vec<u8>, TLSError>
fn sign(&self, message: &[u8]) -> Result<Vec<u8>, TLSError>
Signs message
using the selected scheme.
sourcefn get_scheme(&self) -> SignatureScheme
fn get_scheme(&self) -> SignatureScheme
Reveals which scheme will be used when you call sign()
.