Skip to content

Handle invalid ECDSA curve in JWK

Compare
Choose a tag to compare
@MicahParks MicahParks released this 03 Nov 17:07
338d24e

The purpose of this pull request is to add a a default switch case for ECDSA curve selection. Previously, if an invalid or empty crv JWK parameter was given for an ECDSA key, there would be a nil pointer dereference panic. You can find more information about valid crv ECDSA JWK parameters in this RFC: https://www.rfc-editor.org/rfc/rfc7518#section-6.2.1.1

Thank you to our new contributor, @btoews!

Related pull requests: