Comments (4)
ruby version maybe?
$ ruby --version [6:00:54]
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin14.0]
$ gem list|grep sha3 [6:01:06]
sha3 (0.2.5)
irb -f [5:59:44]
irb(main):001:0> require 'openssl'
=> true
irb(main):002:0> OpenSSL::HMAC.digest OpenSSL::Digest::SHA512.new, '', ''
=> "\xB96\xCE\xE8l\x9F\x87\xAA]<o.\x84\xCBZB9\xA5\xFEPH\nn\xC6kp\xAB[\x1FJ\xC6s\flQT!\xB3'\xEC\[email protected]\xDF\xB4\x9A\xD78\x1E\xB0g\xB38\xFD{\f\xB2"G"]G"
irb(main):003:0> require 'sha3'
=> true
irb(main):004:0> OpenSSL::HMAC.digest OpenSSL::Digest::SHA512.new, '', ''
=> "\xB96\xCE\xE8l\x9F\x87\xAA]<o.\x84\xCBZB9\xA5\xFEPH\nn\xC6kp\xAB[\x1FJ\xC6s\flQT!\xB3'\xEC\[email protected]\xDF\xB4\x9A\xD78\x1E\xB0g\xB38\xFD{\f\xB2"G"]G"
from sha3.
$ ruby --version
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux-gnu]
$ gem list | grep sha3
sha3 (0.2.5)
I get a different error in Rubinius
TypeError: wrong argument (�)! (Expected kind of )
$ rbx -v
rubinius 2.5.2.c136 (2.1.0 c776a009 2015-03-19 3.4 JI) [x86_64-linux-gnu]
$ uname -vr
3.13.0-49-generic #83-Ubuntu SMP Fri Apr 10 20:11:33 UTC 2015
from sha3.
Thanks for reporting the issue. I was able to reproduce it on Linux with (MRI 2.2.1), but interestingly, not on my development machine, OS X (with MRI or Rubinius).
Working on a fix!
from sha3.
@paz Apologies for the delay. I've published a fix for this issue. Please install the latest release v0.2.6: gem install sha3 -v0.2.6
. Alternatively, you an download the gem directly from Github: https://github.com/johanns/sha3/releases/download/v0.2.6/sha3-0.2.6.gem
J
from sha3.
Related Issues (13)
- Seems like this gem's 512 result is not the same as phusion / digest-sha3-ruby HOT 1
- Support --disable-march-tune-native HOT 4
- ruby 3.1 compatibility: error: '__declspec' attributes are not enabled HOT 4
- can't build gem: possible bug in the tools you use to build with? HOT 1
- CVE-2022-37454 Buffer overflow HOT 2
- SHAKE128/SHAKE256 support HOT 1
- error in readme (usage > basics) HOT 2
- HMAC? HOT 2
- Proper SHA3 implementation? HOT 8
- `:SHA512` does not output a correct hash HOT 2
- Error whille Installing on Raspbian OS HOT 5
- How can I use sha3 with OpenSSL in ruby? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sha3.