Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cross platform issues of EC signatures #32

Merged
merged 1 commit into from
Mar 15, 2017

Conversation

alexandrejbr
Copy link
Contributor

  • EC Signatures should be 64, 96 or 132 octet sequences according to
    https://tools.ietf.org/html/rfc7518#section-3.4

  • Previous padding implementation can generate signatures that are
    shorter than what is stated in the RFC and other platform
    (non-erlang VM) librarys may fail to verify the signature

 * EC Signatures should be 64, 96 or 132 octet sequences according to
 https://tools.ietf.org/html/rfc7518#section-3.4

 * Previous padding implementation can generate signatures that are
 shorter than what is stated in the RFC and other platform
 (non-erlang VM) librarys may fail to verify the signature
@potatosalad potatosalad merged commit af97af0 into potatosalad:master Mar 15, 2017
@potatosalad
Copy link
Owner

Thanks!

potatosalad added a commit that referenced this pull request Mar 15, 2017
* Enhancements
  * Add support for decoding firebase certificate public keys (thanks to @noizu, see #30)

* Fixes
  * Fix cross-platform issues with EC signatures (specifically S and R sizes, thanks to @alexandrejbr, see #32)
  * Typo in documentation for `JOSE.encode/1` (thanks to @DaveLampton, see #31)

* Tests
  * Tested against OTP 19.3, Elixir 1.4.x, and Poison 3.x
@potatosalad
Copy link
Owner

This has been included in jose 1.8.2, thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants