Skip to content
New issue

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

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

Already on GitHub? # to your account

compression modification #3

Merged
merged 1 commit into from
Jul 8, 2016
Merged

Conversation

amadden734
Copy link

updating compress and uncompress methods to follow the RFC 1951 standard,

from what I can tell, ZLib wraps the data (RFC 1950 around RFC 1951) making
it incompatible with other libraries
https://tools.ietf.org/html/draft-ietf-jose-json-web-encryption-10#section-4.1.4
http://stackoverflow.com/questions/15632979/java-decompressing-array-of-bytes

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 93.07% when pulling a356994 on LyricFinancial:master into 9388a4a on potatosalad:master.

potatosalad added a commit that referenced this pull request Jul 8, 2016
* Enhancements
  * Improved handling of RSA private keys in SMF (Straightforward
  * Method) form to CRT (Chinese Remainder Theorem) form, see
  * potatosalad/erlang-jose#19  This is especially useful for keys
  * produced by Java programs using the `RSAPrivateKeySpec` API as
  * mentioned in Section 9.3 of RFC 7517:
  * https://tools.ietf.org/html/rfc7517#section-9.3
  * Updated EdDSA operations to comply with draft 04 of
  * https://tools.ietf.org/html/draft-ietf-jose-cfrg-curves-04.

* Fixes
  * Fixed compression encoding bug for `{"zip":"DEF"}` operations
  * (thanks to @amadden734 see #3)
@potatosalad potatosalad merged commit a356994 into potatosalad:master Jul 8, 2016
@potatosalad
Copy link
Owner

@amadden734 Awesome, thank you! This has been released as part of jose 1.1.2.

I also added a test which exposed the bug from RFC 7520.

potatosalad added a commit to potatosalad/erlang-jose that referenced this pull request Jul 8, 2016
* Enhancements
  * Updated EdDSA tests to comply with draft 04 of https://tools.ietf.org/html/draft-ietf-jose-cfrg-curves-04

* Fixes
  * Fixed compression encoding bug for `{"zip":"DEF"}` operations (thanks to @amadden734 see potatosalad/ruby-jose#3)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants