Enum josekit::jwe::alg::ecdh_es::EcdhEsJweAlgorithm[][src]

pub enum EcdhEsJweAlgorithm {
    EcdhEs,
    EcdhEsA128kw,
    EcdhEsA192kw,
    EcdhEsA256kw,
}

Variants

EcdhEs

Elliptic Curve Diffie-Hellman Ephemeral Static key agreement using Concat KDF

EcdhEsA128kw

ECDH-ES using Concat KDF and CEK wrapped with “A128KW”

EcdhEsA192kw

ECDH-ES using Concat KDF and CEK wrapped with “A192KW”

EcdhEsA256kw

ECDH-ES using Concat KDF and CEK wrapped with “A256KW”

Implementations

Generate EC key pair for ECDH.

Generate ECx key pair for ECDH.

Create a EC key pair for ECDH from a private key that is a DER encoded PKCS#8 PrivateKeyInfo or ECPrivateKey.

Arguments
  • input - A private key that is a DER encoded PKCS#8 PrivateKeyInfo or ECPrivateKey.

Create a ECx key pair for ECDH from a private key that is a DER encoded PKCS#8 PrivateKeyInfo.

Arguments
  • input - A private key that is a DER encoded PKCS#8 PrivateKeyInfo.

Create a EC key pair for ECDH from a private key of common or traditinal PEM format.

Common PEM format is a DER and base64 encoded PKCS#8 PrivateKeyInfo that surrounded by “—–BEGIN/END PRIVATE KEY––”.

Traditional PEM format is a DER and base64 encoded ECPrivateKey that surrounded by “—–BEGIN/END EC PRIVATE KEY––”.

Arguments
  • input - A private key of common or traditinal PEM format.

Create a ECx key pair for ECDH from a private key of common or traditinal PEM format.

Common PEM format is a DER and base64 encoded PKCS#8 PrivateKeyInfo that surrounded by “—–BEGIN/END PRIVATE KEY––”.

Traditional PEM format is a DER and base64 encoded ECPrivateKey that surrounded by “—–BEGIN/END X25519/X448 PRIVATE KEY––”.

Arguments
  • input - A private key of common or traditinal PEM format.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Formats the value using the given formatter. Read more

Return the “alg” (algorithm) header parameter value of JWE.

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

This method tests for !=.

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

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

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)

recently added

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

Converts the given value to a String. 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.