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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/ext/sha3/cshake.c +3 -3
- data/ext/sha3/sp800_185.h +0 -10
- data/lib/constants.rb +1 -1
- data/sha3.gemspec +44 -0
- data.tar.gz.sig +2 -2
- metadata +3 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b25d248bf32a3f2971ddf97235ce8549de783fb01624c2ae70d8e82aa78754fd
|
4
|
+
data.tar.gz: fa3842d268143da115070c236d181a67bbeef4f2ac3cfe41eb0a50b7049c2721
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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[
|
183
|
-
rb_get_kwargs(keywords, table, 0,
|
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
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
|
-
|
2
|
-
��
|
1
|
+
��TD�X�W�.W\��b�ǩ4`���P�ձy;F�]"ӡ+=��]�.F��ld(5;����0 �I��k���["�-N-�M"�*J,QV(u�p5T����-��P� F'�NǺ�ƴ��>�W�R��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.
|
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-
|
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
|