square / go-jose

An implementation of JOSE standards (JWE, JWS, JWT) in Go
1.98k stars 276 forks source link

Handle JSONWebKey by value when making JWERecipient #364

Closed alee792 closed 1 year ago

alee792 commented 3 years ago

See #360.

JSONWebKey as a key was not supported, but *JSONWebKey was. Simply added a new case to handle the value version. Tests still pass.

The second issue mentioned in #360 was a misread. The recipient, which contains the keyID, is added directly to the encrypter in the default case.

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.