keccak 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -8
- data/ext/digest/keccak.c +1 -0
- data/keccak.gemspec +3 -2
- data/lib/digest/keccak/version.rb +1 -1
- metadata +20 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 69e7849ce0f856d5fd77f67ffa47690a15b232c4267cb120cc02973121cfb593
|
|
4
|
+
data.tar.gz: 9e885526b41b9831460b10159ee2905bbb69669b805d94dfb098a90b6dbfd752
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e364b10fa4618d4cd587d5b84595d396bc879f63c609ded375e329d50bfd183754885ae47349d80851f5b54b237d66d6465a49d1206f471e1f025fdd40efd947
|
|
7
|
+
data.tar.gz: 61e8b8527bf86b4c9b52eb0451ef66cf3d8ebf4e6538b3800d4d85e2b250e240a183b613f4dfffbe8efdfa1d774240c57402caba5d52f46582c94a0ce5c226f7
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# The Keccak (SHA3) digest for Ruby
|
|
1
|
+
# The Keccak (SHA3 candidate) digest for Ruby
|
|
2
2
|
|
|
3
3
|
[](https://github.com/q9f/keccak.rb/actions)
|
|
4
4
|
[](https://github.com/q9f/keccak.rb/pulse)
|
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
[](https://hits.seeyoufarm.com)
|
|
9
9
|
[](LICENSE)
|
|
10
10
|
|
|
11
|
-
This Ruby extension exposes the [Keccak](http://keccak.noekeon.org/) (SHA3) digest `C` bindings in the non-final version used by [Ethereum](https://ethereum.org). It is based on the reference `C` implementation, version 3.2. The exposed interface is almost identical to that of the `digest` standard library. See [#16](https://github.com/q9f/keccak.rb/pull/16).
|
|
12
|
-
|
|
13
|
-
:warning: **Note: version `~> 1.3` exposes `digest/keccak` (`Digest::Keccak`) whereas version `~> 1.2` maintains the old `digest/sha3` (`Digest::SHA3`) for backward compatibility.** Only use `~> 1.2` if you want to lazy-patch your library. It works, but it's _not recommended._ Use `~> 1.3` and simply rename SHA3 to Keccak.
|
|
11
|
+
This Ruby extension exposes the [Keccak](http://keccak.noekeon.org/) (SHA3 candidate) digest `C` bindings in the non-final version used by [Ethereum](https://ethereum.org). It is based on the reference `C` implementation, version 3.2. The exposed interface is almost identical to that of the `digest` standard library. See [#16](https://github.com/q9f/keccak.rb/pull/16).
|
|
14
12
|
|
|
15
13
|
## Installation
|
|
16
14
|
|
|
@@ -25,8 +23,6 @@ gem install keccak
|
|
|
25
23
|
gem 'keccak', '~> 1.3'
|
|
26
24
|
```
|
|
27
25
|
|
|
28
|
-
**Note**: as of version `~> v1.1`, `digest-sha3` (historic name, see below) requires Ruby 2.2. The new `keccak` version `~> v1.2` now also supports Ruby 3.0. The last version that worked on older Ruby (1.x) versions was `~> v1.0`. It can be found at the no longer maintained `digest-sha3` [repository from 2015](https://github.com/phusion/digest-sha3-ruby/releases/tag/release-1.0.2).
|
|
29
|
-
|
|
30
26
|
## Usage
|
|
31
27
|
|
|
32
28
|
This gem extends the `digest/*` module by a `digest/keccak` class.
|
|
@@ -69,8 +65,6 @@ A part of the test suite is automatically generated from Keccak's reference test
|
|
|
69
65
|
|
|
70
66
|
## Warning: Keccak vs. SHA3
|
|
71
67
|
|
|
72
|
-
**Note:** This gem still uses the `Digest::SHA3` namespace in version `~> 1.2` for reasons of backward compatibility and long-term maintainability. See history section below.
|
|
73
|
-
|
|
74
68
|
:warning: This gem does **not** implement the final FIPS202 standard, today known as SHA3 but rather an early version, commonly referred to as Keccak. The reason why this is kept around, is that Ethereum uses this earler version of Keccak. See also: [Ethereum: Difference between keccak256 and sha3](https://ethereum.stackexchange.com/questions/30369/difference-between-keccak256-and-sha3).
|
|
75
69
|
|
|
76
70
|
If you are looking for the final SHA3 gem, please use the following: https://rubygems.org/gems/sha3
|
data/ext/digest/keccak.c
CHANGED
data/keccak.gemspec
CHANGED
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
|
15
15
|
spec.email = "%w[ruby@q9f.cc]"
|
|
16
16
|
spec.extensions << "ext/digest/extconf.rb"
|
|
17
17
|
spec.platform = Gem::Platform::RUBY
|
|
18
|
-
spec.required_ruby_version = ">= 3.0", "<
|
|
18
|
+
spec.required_ruby_version = ">= 3.0", "< 5.0"
|
|
19
19
|
spec.license = "Apache-2.0"
|
|
20
20
|
spec.metadata = {
|
|
21
21
|
"homepage_uri" => "https://github.com/q9f/keccak.rb",
|
|
@@ -34,6 +34,7 @@ Gem::Specification.new do |spec|
|
|
|
34
34
|
"lib/**/*"
|
|
35
35
|
]
|
|
36
36
|
spec.test_files = spec.files.grep %r{^(test|spec|features)/}
|
|
37
|
-
spec.add_development_dependency "bundler", "
|
|
37
|
+
spec.add_development_dependency "bundler", ">= 2.4"
|
|
38
38
|
spec.add_development_dependency "test-unit", "~> 3.6"
|
|
39
|
+
spec.add_development_dependency "rake"
|
|
39
40
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: keccak
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Afri Schoedon
|
|
@@ -9,23 +9,22 @@ authors:
|
|
|
9
9
|
- Chris Metcalfe
|
|
10
10
|
- Hongli Lai (Phusion)
|
|
11
11
|
- Keccak authors
|
|
12
|
-
autorequire:
|
|
13
12
|
bindir: bin
|
|
14
13
|
cert_chain: []
|
|
15
|
-
date:
|
|
14
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
16
15
|
dependencies:
|
|
17
16
|
- !ruby/object:Gem::Dependency
|
|
18
17
|
name: bundler
|
|
19
18
|
requirement: !ruby/object:Gem::Requirement
|
|
20
19
|
requirements:
|
|
21
|
-
- - "
|
|
20
|
+
- - ">="
|
|
22
21
|
- !ruby/object:Gem::Version
|
|
23
22
|
version: '2.4'
|
|
24
23
|
type: :development
|
|
25
24
|
prerelease: false
|
|
26
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
27
26
|
requirements:
|
|
28
|
-
- - "
|
|
27
|
+
- - ">="
|
|
29
28
|
- !ruby/object:Gem::Version
|
|
30
29
|
version: '2.4'
|
|
31
30
|
- !ruby/object:Gem::Dependency
|
|
@@ -42,6 +41,20 @@ dependencies:
|
|
|
42
41
|
- - "~>"
|
|
43
42
|
- !ruby/object:Gem::Version
|
|
44
43
|
version: '3.6'
|
|
44
|
+
- !ruby/object:Gem::Dependency
|
|
45
|
+
name: rake
|
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
|
47
|
+
requirements:
|
|
48
|
+
- - ">="
|
|
49
|
+
- !ruby/object:Gem::Version
|
|
50
|
+
version: '0'
|
|
51
|
+
type: :development
|
|
52
|
+
prerelease: false
|
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
54
|
+
requirements:
|
|
55
|
+
- - ">="
|
|
56
|
+
- !ruby/object:Gem::Version
|
|
57
|
+
version: '0'
|
|
45
58
|
description: The Keccak (SHA3) hash used by Ethereum. This does not implement the
|
|
46
59
|
final FIPS202 standard, today known as SHA3 but rather an early version, commonly
|
|
47
60
|
referred to as Keccak.
|
|
@@ -76,7 +89,6 @@ metadata:
|
|
|
76
89
|
source_code_uri: https://github.com/q9f/keccak.rb
|
|
77
90
|
github_repo: https://github.com/q9f/keccak.rb
|
|
78
91
|
bug_tracker_uri: https://github.com/q9f/keccak.rb/issues
|
|
79
|
-
post_install_message:
|
|
80
92
|
rdoc_options: []
|
|
81
93
|
require_paths:
|
|
82
94
|
- lib
|
|
@@ -87,15 +99,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
87
99
|
version: '3.0'
|
|
88
100
|
- - "<"
|
|
89
101
|
- !ruby/object:Gem::Version
|
|
90
|
-
version: '
|
|
102
|
+
version: '5.0'
|
|
91
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
104
|
requirements:
|
|
93
105
|
- - ">="
|
|
94
106
|
- !ruby/object:Gem::Version
|
|
95
107
|
version: '0'
|
|
96
108
|
requirements: []
|
|
97
|
-
rubygems_version: 3.
|
|
98
|
-
signing_key:
|
|
109
|
+
rubygems_version: 3.6.9
|
|
99
110
|
specification_version: 4
|
|
100
111
|
summary: The Keccak (SHA3) hash used by Ethereum.
|
|
101
112
|
test_files: []
|