[][src]Struct yubihsm::ecdsa::Signer

pub struct Signer<C> where
    C: Curve + CurveAlgorithm + Compression,
    UntaggedPointSize<C>: Add<U1> + ArrayLength<u8>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
{ /* fields omitted */ }

ECDSA signature provider for yubihsm-client

Implementations

impl<C> Signer<C> where
    C: Curve + CurveAlgorithm + Compression,
    UntaggedPointSize<C>: Add<U1> + ArrayLength<u8>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

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

Create a new YubiHSM-backed ECDSA signer

pub fn public_key(&self) -> &EncodedPoint<C>[src]

Get the public key for the YubiHSM-backed private key.

Trait Implementations

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

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

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

impl<D> DigestSigner<D, Signature<NistP384>> for Signer<NistP384> where
    D: Digest<OutputSize = U32> + Default
[src]

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

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

impl<D> DigestSigner<D, Signature<Secp256k1>> for Signer<Secp256k1> where
    D: Digest<OutputSize = U32> + Default
[src]

fn try_sign_digest(&self, digest: D) -> Result<Signature<Secp256k1>, Error>[src]

Compute a fixed-size secp256k1 ECDSA signature of the given digest

impl<D> DigestSigner<D, Signature> for Signer<Secp256k1> where
    D: Digest<OutputSize = U32> + Clone + Default
[src]

fn try_sign_digest(&self, digest: D) -> Result<Signature, Error>[src]

Compute an Ethereum-style ECDSA/secp256k1 signature of the given digest

impl<C, '_> From<&'_ Signer<C>> for EncodedPoint<C> where
    Self: Clone,
    C: Curve + CurveAlgorithm + Compression,
    UntaggedPointSize<C>: Add<U1> + ArrayLength<u8>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

impl<S, C> Signer<S> for Signer<C> where
    S: PrehashSignature,
    Self: DigestSigner<S::Digest, S>,
    C: Curve + CurveAlgorithm + Compression,
    UntaggedPointSize<C>: Add<U1> + ArrayLength<u8>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

Auto Trait Implementations

impl<C> !RefUnwindSafe for Signer<C>

impl<C> Send for Signer<C> where
    <C as Curve>::FieldSize: Add<<C as Curve>::FieldSize>, 

impl<C> Sync for Signer<C> where
    <C as Curve>::FieldSize: Add<<C as Curve>::FieldSize>, 

impl<C> Unpin for Signer<C> where
    <<<<C as Curve>::FieldSize as Add<<C as Curve>::FieldSize>>::Output as Add<UInt<UTerm, B1>>>::Output as ArrayLength<u8>>::ArrayType: Unpin,
    <C as Curve>::FieldSize: Add<<C as Curve>::FieldSize>, 

impl<C> !UnwindSafe for Signer<C>

Blanket Implementations

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

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

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

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

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

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,