Expand description
Implementations of JWT signing / verification algorithms. Also contains generic traits for signing and verifying keys.
Structs§
- Ed25519
- Integrity algorithm using digital signatures on the Ed25519 elliptic curve.
- Es256
ES256
signing algorithm. Implements elliptic curve digital signatures (ECDSA) on the secp256r1 curve (aka P-256).- Es256k
- Algorithm implementing elliptic curve digital signatures (ECDSA) on the secp256k1 curve.
- Hs256
HS256
signing algorithm.- Hs384
HS384
signing algorithm.- Hs512
HS512
signing algorithm.- Hs256
Key - Signing / verifying key for
HS256
algorithm. Zeroed on drop. - Hs256
Signature - Signature produced by the
Hs256
algorithm. - Hs384
Key - Signing / verifying key for
HS384
algorithm. Zeroed on drop. - Hs384
Signature - Signature produced by the
Hs384
algorithm. - Hs512
Key - Signing / verifying key for
HS512
algorithm. Zeroed on drop. - Hs512
Signature - Signature produced by the
Hs512
algorithm. - Modulus
Bits Error rsa
- Error type returned when a conversion of an integer into
ModulusBits
fails. - Rsa
rsa
- Integrity algorithm using RSA digital signatures.
- RsaParse
Error rsa
- Errors that can occur when parsing an
Rsa
algorithm from a string. - RsaPrivate
Key rsa
- Represents a whole RSA key, public and private parts.
- RsaPublic
Key rsa
- Represents the public part of an RSA key.
- RsaSignature
rsa
- RSA signature.
- Secret
Bytes - Generic container for secret bytes, which can be either owned or borrowed. If owned, bytes are zeroized on drop.
- Strong
Alg - Wrapper around a JWT algorithm signalling that it supports only
StrongKey
s. - Strong
Key - Wrapper around keys allowing to enforce key strength requirements.
- Weak
KeyError - Error type used for fallible conversion into a
StrongKey
.
Enums§
- Modulus
Bits rsa
- Bit length of an RSA key modulus (aka RSA key length).
Traits§
- Signing
Key - Signing key for a specific signature cryptosystem. In the case of public-key cryptosystems, this is a private key.
- Verifying
Key - Verifying key for a specific signature cryptosystem. In the case of public-key cryptosystems, this is a public key.