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

pub struct Ed25519;
This is supported on crate features exonum-crypto or ed25519-dalek or ed25519-compact only.
Expand description

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.

Implementations

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

Key used when issuing new tokens.

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

Signature produced by the algorithm.

Returns the name of this algorithm, as mentioned in the alg field of the JWT header.

Signs a message with the signing_key.

Verifies the message against the signature and verifying_key.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Feeds this value into the given Hasher. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Creates a key from raw bytes. Returns an error if the bytes do not represent a valid key. Read more

Converts a signing key to a verification key.

Returns the key as raw bytes. Read more

Creates a key from raw bytes. Returns an error if the bytes do not represent a valid key. Read more

Returns the key as raw bytes. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.