Releases: square/go-jose
Version 2.1.1
Version 2.1.0
Version 2.0.1
Version 2.0.0
Cleaner interface
The API for the base package has been reworked. In particular, encrypter/signer/decrypter/verifier objects are now immutable. An options struct can be passed to set various options when creating the object now. This is a bit more flexible and should make it easier to add new things in the future.
Support for JWT
Thanks to @shaxbee, go-jose now includes a new jwt
sub-package with functions for dealing with encrypted/signed JWTs. See the documentation for the jwt
package for more information.
Version 1.1.0
Fixes and improvements
- Add new
VerifyMulti
function to verify multi-signature JWS objects. The existingVerify
function has been changed to only accept single-signature objects. This ensures that callers do not accidentally accept multi-signature objects in contexts where they are not expected (#111, 2c5656a). - Add new
DecryptMulti
function to decrypt multi-recipient JWE messages. The existingDecrypt
function has been changed to only accept single-recipient messages. This ensures callers do not accidentally accept multi-recipient messages in contexts where they are not expected (#111, 2c5656a). - Add checks when deserializing JWS objects to ensure that any embedded JWK (if present) is valid and represents a public key (not private/symmetric key) as per spec. This is to ensure that callers don't accidentally end up accepting embedded JWKs that represent symmetric/private keys (#112, e8e21a9).
Note that this represents a subtle API change, as the Decrypt
and Verify
functions are now stricter than before and only accept single-signature/single-recipient inputs. To reflect this change, the minor version has been bumped.
Version 1.0.5
Version 1.0.4
Security fixes
For ECDH-ES key derivation (in JWE), ensure that received public key (from an "epk" header field on an encrypted message) is on expected elliptic curve before performing any cryptographic operations. This also adds various sanity checks for EC keys other places, e.g. when parsing JWK blobs with embedded EC keys. See commits c758193, 03c5c6e, d163d44.
Other changes
Fix expand command in jose-util (c18180c)
Remove support for std_json build tag (1f36a88)
Version 1.0.3
Notable changes
Added basic support for x5c header in JWKs (7cd6062)
Version 1.0.2
Notable changes
Switch jose-util
to use alecthomas/kingpin
for flag parsing (15af859)
Add JsonWebKey.Valid
method to check key validity (h/t @rolandshoemaker, d2a8471)