Skip to content

0.5.0-beta1 (2020-04-29)

Pre-release
Pre-release
Compare
Choose a tag to compare
@lawliet89 lawliet89 released this 29 Apr 07:18
· 89 commits to master since this release

0.5.0-beta1 (2020-04-29)

Breaking Changes

  • The jwk::AlgorithmParameters::OctetKey enum variant is now a newtype variant which takes a
    jwk::OctetKeyParameters struct for its parameters. To migrate your existing code, you can do
    the following

    -jwk::AlgorithmParameters::OctetKey {
    +jwk::AlgorithmParameters::OctetKey(jwk::OctetKeyParameters {
       value: key,
       key_type: Default::default(),
    -}
    +})

    (#125)

  • jws::Compact::decode_with_jwks now supports JWK without an alg specified. However, a new
    parameter to specify an expected parameter had to be added to support this use case. This is to
    mitigate against issues like
    this.
    Existing usage of JWK with the alg specified can simply add a None as the second parameter.
    (#130)

Enhancements

  • Add new jwk::AlgorithmParameters::OctetKeyPair variant to support (de)serializing OKP
    key types. (#125)