Module jwt_compact::alg

source ·
Expand description

Implementations of JWT signing / verification algorithms. Also contains generic traits for signing and verifying keys.

Structs

  • Ed25519exonum-crypto or ed25519-dalek or ed25519-compact
    Integrity algorithm using digital signatures on the Ed25519 elliptic curve.
  • Es256p256
    ES256 signing algorithm. Implements elliptic curve digital signatures (ECDSA) on the secp256r1 curve (aka P-256).
  • Es256kes256k or k256
    Algorithm implementing elliptic curve digital signatures (ECDSA) on the secp256k1 curve.
  • HS256 signing algorithm.
  • Signing / verifying key for HS256 algorithm. Zeroed on drop.
  • Signature produced by the Hs256 algorithm.
  • HS384 signing algorithm.
  • Signing / verifying key for HS384 algorithm. Zeroed on drop.
  • Signature produced by the Hs384 algorithm.
  • HS512 signing algorithm.
  • Signing / verifying key for HS512 algorithm. Zeroed on drop.
  • Signature produced by the Hs512 algorithm.
  • Error type returned when a conversion of an integer into ModulusBits fails.
  • Rsarsa
    Integrity algorithm using RSA digital signatures.
  • Errors that can occur when parsing an Rsa algorithm from a string.
  • Represents a whole RSA key, public and private parts.
  • Represents the public part of an RSA key.
  • RSA signature.
  • Generic container for secret bytes, which can be either owned or borrowed. If owned, bytes are zeroized on drop.
  • Wrapper around a JWT algorithm signalling that it supports only StrongKeys.
  • Wrapper around keys allowing to enforce key strength requirements.
  • Error type used for fallible conversion into a StrongKey.

Enums

  • Bit length of an RSA key modulus (aka RSA key length).

Traits

  • Signing key for a specific signature cryptosystem. In the case of public-key cryptosystems, this is a private key.
  • Verifying key for a specific signature cryptosystem. In the case of public-key cryptosystems, this is a public key.