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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5c574f148f558f9bc6f01b3a0ea3c38e4213b19b69346b0e49571c89c1ccc36
4
- data.tar.gz: c47c1b7a7f663eb8960b2acda4ab82bc785df5f06d96f5517e34441359784021
3
+ metadata.gz: 69e7849ce0f856d5fd77f67ffa47690a15b232c4267cb120cc02973121cfb593
4
+ data.tar.gz: 9e885526b41b9831460b10159ee2905bbb69669b805d94dfb098a90b6dbfd752
5
5
  SHA512:
6
- metadata.gz: efe9aaf1f04ffbbfa4447398ba5a07959c15aeb02db32fbde8aefabd65a54fc0262cc6bf8582395247a161d26f303fa3f84568f376f8c63acc8f1aa0509724af
7
- data.tar.gz: 13c0f0531aa58233b42daeb5afeb9e37039c1ac0b16abb4e58a952f9f0550474c183258d070050951bfba26d2fcb110b94596a609b2d34e756b36650b7dc67d5
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
  [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/q9f/keccak.rb/build.yml?branch=main)](https://github.com/q9f/keccak.rb/actions)
4
4
  [![GitHub top language](https://img.shields.io/github/languages/top/q9f/keccak.rb?color=black)](https://github.com/q9f/keccak.rb/pulse)
@@ -8,9 +8,7 @@
8
8
  [![Visitors](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fq9f%2Fkeccak.rb&count_bg=%2379C83D&title_bg=%23555555&icon=rubygems.svg&icon_color=%23FF0000&title=visitors&edge_flat=false)](https://hits.seeyoufarm.com)
9
9
  [![License](https://img.shields.io/github/license/q9f/keccak.rb.svg?color=black)](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
@@ -1,4 +1,5 @@
1
1
  #include "ruby.h"
2
+ #include <stdbool.h>
2
3
  #ifdef HAVE_RUBY_DIGEST_H
3
4
  #include "ruby/digest.h"
4
5
  #else
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", "< 4.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", "~> 2.4"
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Digest
4
4
  class Keccak
5
- VERSION = "1.3.2"
5
+ VERSION = "1.3.3"
6
6
  end
7
7
  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.2
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: 2024-12-29 00:00:00.000000000 Z
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: '4.0'
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.5.16
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: []