-
Notifications
You must be signed in to change notification settings - Fork 283
Add additional tests from OpenWall implementation sources #84
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
Conversation
* Fixes bcrypt-ruby#39, bcrypt-ruby#80 * Include new tests from upstream (fixes bcrypt-ruby#84)
* Fixes bcrypt-ruby#39, bcrypt-ruby#80 * Include new tests from upstream (fixes bcrypt-ruby#84)
* Fixes bcrypt-ruby#39, bcrypt-ruby#80 * Include new tests from upstream (fixes bcrypt-ruby#84)
|
status? can be closed? |
|
It's not merged, so no. Though, I did include the changes in #91. |
|
Yeah, the tests still show a probable issue; although the issue is likely in jBCrypt. I may have time next month to do some more debugging to try to identify the issue. |
|
Great! |
|
The jBCrypt issues appear to be due to character encoding due to use of Java's String.getBytes on input. Suggestion would be to pass byte[] array directly -- see POC at https://github.com/Oscil8/bcrypt-ruby/tree/wip/jruby-fix which does pass tests in either jruby or MRI. |
See http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/john/john/src/BF_fmt.c Note that these tests pass on MRI 1.8/1.9 but fail on jruby, the bugs are due to character encoding on input to the jBCrypt implementation.
* Fixes bcrypt-ruby#39, bcrypt-ruby#80 * Include new tests from upstream (fixes bcrypt-ruby#84)
* Fixes bcrypt-ruby#39, bcrypt-ruby#80 * Include new tests from upstream (fixes bcrypt-ruby#84)
See http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/john/john/src/BF_fmt.c
Note that these tests pass on MRI 1.8/1.9 but fail on jruby, the
bugs are likely in the jBCrypt implementation.
This is related to #82.