[][src]Struct yubihsm::signatory::ecdsa::EcdsaSigner

pub struct EcdsaSigner<C> where
    C: WeierstrassCurve
{ /* fields omitted */ }

ECDSA signature provider for yubihsm-client

Methods

impl<C> EcdsaSigner<C> where
    C: WeierstrassCurve
[src]

pub fn create(client: Client, signing_key_id: Id) -> Result<Self, Error>[src]

Create a new YubiHSM-backed ECDSA signer

pub fn asymmetric_alg() -> Algorithm[src]

Get the expected asymmetric::Algorithm for this Curve

Trait Implementations

impl<C> PublicKeyed<PublicKey<C>> for EcdsaSigner<C> where
    C: WeierstrassCurve
[src]

fn public_key(&self) -> Result<PublicKey<C>, Error>[src]

Obtain the public key which identifies this signer

impl<D> DigestSigner<D, Asn1Signature<NistP256>> for EcdsaSigner<NistP256> where
    D: Digest<OutputSize = U32> + Default
[src]

fn sign(&self, digest: D) -> Result<Asn1Signature<NistP256>, Error>[src]

Compute an ASN.1 DER-encoded P-256 ECDSA signature of the given digest

impl<D> DigestSigner<D, FixedSignature<NistP256>> for EcdsaSigner<NistP256> where
    D: Digest<OutputSize = U32> + Default
[src]

fn sign(&self, digest: D) -> Result<FixedSignature<NistP256>, Error>[src]

Compute a fixed-sized P-256 ECDSA signature of the given digest

impl<D> DigestSigner<D, Asn1Signature<NistP384>> for EcdsaSigner<NistP384> where
    D: Digest<OutputSize = U48> + Default
[src]

fn sign(&self, digest: D) -> Result<Asn1Signature<NistP384>, Error>[src]

Compute an ASN.1 DER-encoded P-384 ECDSA signature of the given digest

impl<D> DigestSigner<D, FixedSignature<NistP384>> for EcdsaSigner<NistP384> where
    D: Digest<OutputSize = U48> + Default
[src]

fn sign(&self, digest: D) -> Result<FixedSignature<NistP384>, Error>[src]

Compute a fixed-sized P-384 ECDSA signature of the given digest

Auto Trait Implementations

impl<C> Send for EcdsaSigner<C>

impl<C> Sync for EcdsaSigner<C>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self