[][src]Struct signatory_ring::ecdsa::p256::Signer

pub struct Signer<S: Signature>(_);

NIST P-256 ECDSA signer

Trait Implementations

impl FromPkcs8 for Signer<Asn1Signature>[src]

fn from_pkcs8<K: AsRef<[u8]>>(secret_key: K) -> Result<Self, Error>[src]

Create a new ECDSA signer which produces fixed-width signatures from a PKCS#8 keypair

impl FromPkcs8 for Signer<FixedSignature>[src]

fn from_pkcs8<K: AsRef<[u8]>>(secret_key: K) -> Result<Self, Error>[src]

Create a new ECDSA signer which produces fixed-width signatures from a PKCS#8 keypair

impl GeneratePkcs8 for Signer<Asn1Signature>[src]

fn generate_pkcs8() -> Result<SecretKey, Error>[src]

Randomly generate a P-256 PKCS#8 keypair

impl GeneratePkcs8 for Signer<FixedSignature>[src]

fn generate_pkcs8() -> Result<SecretKey, Error>[src]

Randomly generate a P-256 PKCS#8 keypair

impl<S> PublicKeyed<PublicKey<NistP256>> for Signer<S> where
    S: Signature + Send + Sync
[src]

impl Signer<Asn1Signature<NistP256>> for Signer<Asn1Signature>[src]

impl Signer<FixedSignature<NistP256>> for Signer<FixedSignature>[src]

Auto Trait Implementations

impl<S> Unpin for Signer<S> where
    S: Unpin

impl<S> Send for Signer<S> where
    S: Send

impl<S> Sync for Signer<S> where
    S: Sync

impl<S> UnwindSafe for Signer<S> where
    S: UnwindSafe

impl<S> RefUnwindSafe for Signer<S> where
    S: RefUnwindSafe

Blanket Implementations

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

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> Into<U> for T where
    U: From<T>, 
[src]

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self