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

Updates to fix ruby 2.2. #4

Merged
merged 1 commit into from
Jun 24, 2015
Merged

Conversation

bramski
Copy link
Contributor

@bramski bramski commented May 21, 2015

This fixes digest-sha3-ruby to work with the changes made by

Major version upgrade as this breaks compatibility with older versions of ruby.

The main difficulty of this implementation was that it was using internals of digest.h to create a variable length digest class, and digest.h assumes non-variable length digests; which was highly problematic for the changes made to the base class Digest::Base. The original rb_alloc had to be ditched for compatibility. Now the variable length adjustments are done in the constructor and final is senstivie to the size of the digest intended.

@bramski
Copy link
Contributor Author

bramski commented May 21, 2015

Passing tests:

screen shot 2015-05-20 at 7 11 43 pm

@tmornini
Copy link

👍

@bramski
Copy link
Contributor Author

bramski commented Jun 23, 2015

@FooBarWidget Can I get a review please?

@FooBarWidget
Copy link
Member

Looks good. Thanks for the pull request.

FooBarWidget added a commit that referenced this pull request Jun 24, 2015
@FooBarWidget FooBarWidget merged commit 12d155b into phusion:master Jun 24, 2015
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