[][src]Struct jwt_compact::alg::Ed25519

pub struct Ed25519;

Integrity algorithm using digital signatures on the Ed25519 elliptic curve.

The name of the algorithm is specified as EdDSA as per IANA registry. Use with_specific_name() to switch to non-standard Ed25519.

This type is available if the crate is built with the exonum-crypto feature.

Methods

impl Ed25519[src]

pub fn with_specific_name() -> Renamed<Self>[src]

Creates an algorithm instance with the algorithm name specified as Ed25519. This is a non-standard name, but it is used in some apps.

Trait Implementations

impl Algorithm for Ed25519[src]

type SigningKey = SecretKey

Key used when issuing new tokens.

type VerifyingKey = PublicKey

Key used when verifying tokens. May coincide with SigningKey for symmetric algorithms (e.g., HS*). Read more

type Signature = Signature

Signature produced by the algorithm.

impl PartialEq<Ed25519> for Ed25519[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Copy for Ed25519[src]

impl Eq for Ed25519[src]

impl Clone for Ed25519[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Hash for Ed25519[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Ed25519[src]

Auto Trait Implementations

impl Send for Ed25519

impl Unpin for Ed25519

impl Sync for Ed25519

impl UnwindSafe for Ed25519

impl RefUnwindSafe for Ed25519

Blanket Implementations

impl<A> AlgorithmExt for A where
    A: Algorithm
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> Borrow<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