Expand description
JSON Web Key
This module implements code for JWK as described in RFC7517.
Structs
Common JWK parameters
Parameters for an Elliptic Curve Key
A JSON object that represents a cryptographic key.
The members of the object represent properties of the key, including its value.
Type
T
is a struct representing additional JWK propertiesA JSON object that represents a set of JWKs.
The “oth” (other primes info) parameter contains an array of
information about any third and subsequent primes, should they exist.
When only two primes have been used (the normal case), this parameter
MUST be omitted. When three or more primes have been used, the
number of array elements MUST be the number of primes used minus two.
For more information on this case, see the description of the
OtherPrimeInfo
parameters in Appendix A.1.2 of RFC 3447,
upon which the following parameters are modeled. If the consumer of
a JWK does not support private keys with more than two primes and it
encounters a private key that includes the “oth” parameter, then it
MUST NOT use the key.Parameters for a RSA Key
Enums
Algorithm specific parameters
Type of cryptographic curve used by a key. This is defined in
RFC 7518 #7.6
Key type value for an Elliptic Curve Key.
This single value enum is a workaround for Rust not supporting associated constants.
Operations that the key is intended to be used for. This enum is serialized
untagged
Type of Key as specified in RFC 7518.
Key type value for an Octect symmetric Key.
This single value enum is a workaround for Rust not supporting associated constants.
The intended usage of the public
KeyType
. This enum is serialized untagged
Key type value for an RSA Key.
This single value enum is a workaround for Rust not supporting associated constants.