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

Added test vectors from the IETF JOSE Cookbook for HMAC, RSA, and EC. #160

Merged
merged 2 commits into from
May 19, 2015

Conversation

mark-adams
Copy link
Contributor

The JOSE Cookbook has a very good set of test keys / signatures that we can use to verify our algorithms are functioning properly. Considering the recent discovery of our EC implementation being improper, I wanted to add these known good vectors to our test suite to verify everything is working properly prior to merging of #158.

It should be noted that there is a test in here for RSA-PSS that I'm not 100% I've written properly. I went ahead and left the test with a @skipIf decorator so that I can go in and fix it tomorrow once I know more about RSA-PSS.

Once this is merged, the EC test should show up as failing and we can use that test to verify #158 has fixed the issue.

@coveralls
Copy link

Coverage Status

Coverage decreased (-19.92%) to 80.08% when pulling 7c870a8 on mark-adams:add-test-vectors into 4797f7f on jpadilla:master.

@mark-adams
Copy link
Contributor Author

I'm merging this even though it is failing so the test can verify the #158 fix.

mark-adams added a commit that referenced this pull request May 19, 2015
Added test vectors from the IETF JOSE Cookbook for HMAC, RSA, and EC.
@mark-adams mark-adams merged commit 8f00324 into jpadilla:master May 19, 2015
mark-adams added a commit to mark-adams/pyjwt that referenced this pull request May 19, 2015
@jpadilla
Copy link
Owner

@mark-adams this was a great idea, thanks for getting it done!

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