Trait rustls::sign::SigningKey

source ·
pub trait SigningKey: Send + Sync {
    // Required methods
    fn choose_scheme(
        &self,
        offered: &[SignatureScheme]
    ) -> Option<Box<dyn Signer>>;
    fn algorithm(&self) -> SignatureAlgorithm;
}
Expand description

An abstract signing key.

Required Methods§

source

fn choose_scheme(&self, offered: &[SignatureScheme]) -> Option<Box<dyn Signer>>

Choose a SignatureScheme from those offered.

Expresses the choice by returning something that implements Signer, using the chosen scheme.

source

fn algorithm(&self) -> SignatureAlgorithm

What kind of key we have.

Implementors§