Trait min_jwt::sign::ring::EcdsaKey

source ·
pub trait EcdsaKey {
    type Signature: Signature;
    type Error;

    // Required method
    fn sign(
        &self,
        secure_random: &dyn SecureRandom,
        bytes: &[u8]
    ) -> Result<Self::Signature, Self::Error>;
}
Available on crate feature ring only.
Expand description

An ECDSA key.

Required Associated Types§

source

type Signature: Signature

Signature type returned.

source

type Error

Error type returned.

Required Methods§

source

fn sign( &self, secure_random: &dyn SecureRandom, bytes: &[u8] ) -> Result<Self::Signature, Self::Error>

Signs the bytes with the key.

Errors

Returns an underlying implementation error.

Implementations on Foreign Types§

source§

impl EcdsaKey for EcdsaKeyPair

§

type Signature = Signature

§

type Error = Unspecified

source§

fn sign( &self, secure_random: &dyn SecureRandom, bytes: &[u8] ) -> Result<Self::Signature, Self::Error>

source§

impl<T> EcdsaKey for &T
where T: EcdsaKey,

§

type Signature = <T as EcdsaKey>::Signature

§

type Error = <T as EcdsaKey>::Error

source§

fn sign( &self, secure_random: &dyn SecureRandom, bytes: &[u8] ) -> Result<Self::Signature, Self::Error>

Implementors§