sha3 2.2.0 → 2.2.1

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: 0352e31c9fba5b6e692cca78be1860cccf6a008717738ecbea414d83d195b588
4
- data.tar.gz: 24f543cfcb6b2d477182912a65b54a09cce5209dcfe6c8dbeec22c3992296cec
3
+ metadata.gz: b25d248bf32a3f2971ddf97235ce8549de783fb01624c2ae70d8e82aa78754fd
4
+ data.tar.gz: fa3842d268143da115070c236d181a67bbeef4f2ac3cfe41eb0a50b7049c2721
5
5
  SHA512:
6
- metadata.gz: a947dc104fa08b9199ed307fd43b3bee24143561aaa9665b4c6dd6a0d20ddbf69194b4eb96b845fd0974dc68d2133d024157c754f5e2835ec6161958df343caa
7
- data.tar.gz: 4dd184e53262a9ec71eaf56bf80a295e8d3b691b736333834e5ae9e416df65bbea4ca10c20cc4c22e429bb6ffc97debda126b59bd50f23d732b079c3418b2653
6
+ metadata.gz: 16c197fb78685b2ed46fd7b3de1bc7ae6305a4da07afd118d3b986377cd03e414d363da8416c2951aed334ca1e35a267c9ba1f815ad7b352812a47312b5dbddb
7
+ data.tar.gz: 5f13f5dde1b91a2635c3f7db660fbbcb6e162053d5597db3e64db72ca780f095922d63e13da3475b1cb77a7c1bd7dab5d0cfafa70ed884e13237a58b1ed75809
checksums.yaml.gz.sig CHANGED
Binary file
data/ext/sha3/cshake.c CHANGED
@@ -179,15 +179,15 @@ static VALUE rb_sha3_cshake_init(int argc, VALUE *argv, VALUE self) {
179
179
  rb_intern("customization"),
180
180
  };
181
181
 
182
- VALUE values[3];
183
- rb_get_kwargs(keywords, table, 0, 3, values);
182
+ VALUE values[2];
183
+ rb_get_kwargs(keywords, table, 0, 2, values);
184
184
 
185
185
  VALUE name_str = values[0] == Qundef ? rb_str_new2("") : values[0];
186
186
  StringValue(name_str);
187
187
 
188
188
  VALUE customization = values[1] == Qundef ? rb_str_new2("") : values[1];
189
189
  StringValue(customization);
190
-
190
+
191
191
  sha3_cshake_context_t *context;
192
192
  TypedData_Get_Struct(self, sha3_cshake_context_t, &sha3_cshake_data_type, context);
193
193
 
data/ext/sha3/sp800_185.h CHANGED
@@ -77,16 +77,6 @@ VALUE sp800_185_squeeze(sp800_185_context_t *context, VALUE length);
77
77
  VALUE sp800_185_hex_squeeze(sp800_185_context_t *context, VALUE length);
78
78
  const char *sp800_185_name(sp800_185_context_t *context);
79
79
 
80
- // Macro to define common Ruby methods
81
- #define DEFINE_SP800_185_METHOD(name) static VALUE rb_sp800_185_##name(int argc, VALUE *argv, VALUE self);
82
-
83
- DEFINE_SP800_185_METHOD(update)
84
- DEFINE_SP800_185_METHOD(finish)
85
- DEFINE_SP800_185_METHOD(digest)
86
- DEFINE_SP800_185_METHOD(hexdigest)
87
- DEFINE_SP800_185_METHOD(squeeze)
88
- DEFINE_SP800_185_METHOD(hex_squeeze)
89
-
90
80
  #ifdef __cplusplus
91
81
  }
92
82
  #endif
data/lib/constants.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SHA3
4
- VERSION = '2.2.0'
4
+ VERSION = '2.2.1'
5
5
  end
data/sha3.gemspec ADDED
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/constants'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'sha3'
7
+ spec.version = SHA3::VERSION
8
+
9
+ spec.authors = ['Johanns Gregorian']
10
+ spec.email = ['io+sha3@jsg.io']
11
+
12
+ spec.description = <<~EOF
13
+ A high-performance native binding to the SHA3 (FIPS 202) cryptographic hashing algorithms, based on the XKCP - eXtended Keccak Code Package.
14
+ This gem provides support for the standard SHA-3 fixed-length functions (224, 256, 384, and 512 bits),
15
+ as well as the SHAKE128/SHAKE256 extendable-output functions (XOFs), cSHAKE128/256, and KMAC as specified in NIST SP 800-185.'
16
+ EOF
17
+ spec.summary = 'SHA-3 (FIPS 202), SHAKE128/SHAKE256, cSHAKE128/cSHAKE256, and KMAC (NIST SP 800-185), powered by XKCP.'
18
+
19
+ spec.homepage = 'https://github.com/johanns/sha3'
20
+ spec.license = 'MIT'
21
+ spec.required_ruby_version = '>= 2.7.0'
22
+
23
+ spec.metadata['changelog_uri'] = "#{spec.homepage}/CHANGELOG.md"
24
+ spec.metadata['homepage_uri'] = spec.homepage
25
+ spec.metadata['documentation_uri'] = 'https://docs.jsg.io/sha3/index.html'
26
+
27
+ spec.post_install_message = <<-EOF
28
+ [NOTICE] SHA3 version 2.0 introduces breaking changes to the API.
29
+ Please review the changelog and ensure compatibility with your application.
30
+ If you need the previous behavior, lock your Gemfile to version '~> 1.0'."
31
+ EOF
32
+
33
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
34
+ `git ls-files -z`.split("\x0").reject do |f|
35
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git))})
36
+ end
37
+ end
38
+
39
+ spec.extensions = ['ext/sha3/extconf.rb']
40
+ spec.metadata['rubygems_mfa_required'] = 'true'
41
+
42
+ spec.cert_chain = ['certs/io+sha3@jsg.io.pem']
43
+ spec.signing_key = File.expand_path('~/.ssh/gem-private_key.pem') if $PROGRAM_NAME =~ /gem\z/
44
+ end
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- wJ7Zn't���+k��'���&��T�*X5$�D�a�� �~�4�z-�L���:8�b^]��!�RY����6Ӯw Kы���?Fm��lz��ڽ�xsp�i>Q���� N͔.��Y��!lD���z���_����YY
2
- ��c��4]�eeCW,e�������LnutOc��D��η|� G<M�,�D�%5VcN�,<*�`"�ca��}�?�Kr��;>8w�~}G��К��N��9t�I��Dz<O��ً����U3�5ĵ�1�R�ɕC�����˗�ևUs*�^ S��Q����ȳ 1X�Y��꫔F.L�nnf�\b �㫳�3���j�۸xtho�OSR�x�~��`R����CN}
1
+ ��TDX�W�.W\��b�ǩ4`���P�ձy;F�]"ӡ+=��]�.F��ld(5;����0 I��k���["�-N-�M"�*J,QV(u�p5T����-��P� F '�NǺ�ƴ ��>�WR��s��2��B� g\D��1��k�#��^�B!\����&H9|f�ËBmp����ѕr}�
2
+ �:0�rj��Tf�#�x*�2��A�Υ�F(XJ��g�����D���+Ӳ$*�K��ܗ蛅~�T��v�:W~g���YF�=�?���[kL?� M����<�e�e��'��.�1��q�.8��M�UB �G��N�mү5QV?�
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sha3
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johanns Gregorian
@@ -34,7 +34,7 @@ cert_chain:
34
34
  UjZtrp/rHLfHln46RvB+a1NlMRWxtJ7mQc/CMEbT+cpHlzuYa9qGakA4TmMpK10h
35
35
  uYUv/V6CD4iTEMby0dopwHt5NqE=
36
36
  -----END CERTIFICATE-----
37
- date: 2025-03-20 00:00:00.000000000 Z
37
+ date: 2025-03-27 00:00:00.000000000 Z
38
38
  dependencies: []
39
39
  description: |
40
40
  A high-performance native binding to the SHA3 (FIPS 202) cryptographic hashing algorithms, based on the XKCP - eXtended Keccak Code Package.
@@ -103,6 +103,7 @@ files:
103
103
  - ext/sha3/sp800_185.h
104
104
  - lib/constants.rb
105
105
  - lib/sha3.rb
106
+ - sha3.gemspec
106
107
  homepage: https://github.com/johanns/sha3
107
108
  licenses:
108
109
  - MIT
metadata.gz.sig CHANGED
Binary file