scrypt 3.0.7 → 3.1.0
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/README.md +149 -23
- data/Rakefile +36 -23
- data/ext/scrypt/Rakefile +1 -1
- data/ext/scrypt/warnp.c +7 -1
- data/lib/scrypt/engine.rb +95 -43
- data/lib/scrypt/password.rb +48 -18
- data/lib/scrypt/scrypt_ext.rb +5 -1
- data/lib/scrypt/version.rb +1 -1
- data/scrypt.gemspec +7 -20
- data/spec/fixtures/test_vectors.yml +67 -0
- data/spec/scrypt/engine_spec.rb +159 -30
- data/spec/scrypt/ffi_spec.rb +33 -0
- data/spec/scrypt/integration_spec.rb +129 -0
- data/spec/scrypt/password_spec.rb +104 -56
- data/spec/scrypt/utils_spec.rb +48 -7
- data/spec/spec_helper.rb +40 -0
- data/spec/support/shared_examples.rb +46 -0
- data/spec/support/test_helpers.rb +47 -0
- data.tar.gz.sig +0 -0
- metadata +39 -168
- metadata.gz.sig +0 -0
- data/autotest/discover.rb +0 -1
metadata
CHANGED
@@ -1,44 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrypt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Hogan
|
8
8
|
- Stephen von Takach
|
9
9
|
- Rene van Paassen
|
10
10
|
- Johanns Gregorian
|
11
|
-
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain:
|
14
13
|
- |
|
15
14
|
-----BEGIN CERTIFICATE-----
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-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x97tiHCl
|
29
|
+
MBwGA1UdEQQVMBOBEXBiaG9nYW5AZ21haWwuY29tMBwGA1UdEgQVMBOBEXBiaG9n
|
30
|
+
YW5AZ21haWwuY29tMA0GCSqGSIb3DQEBCwUAA4IBgQAsiXgPScyfZqqrUkaykumD
|
31
|
+
XtahlA0BcS9fchzkf21qd8w34L5I8gyz3fvAJXPAvSqZPSWEn6ud/TOxhXmG6+K/
|
32
|
+
rZ7J1iKbGpk3/yMmmkyTLsItloc4xABTRjyJ4Cy1wuJ4kdwgIW/kHTwWG0PFA1YF
|
33
|
+
ZoqZijAXbTQ4Z+wTcRiUjVpbizB4MtmaQb+Mrr+zxeEmRv/B8iZdkRCZ02C1u+T+
|
34
|
+
bwvmftjB0xuKvPmHP1KpSnFh3I4uvlykDMVSNwE0pKlGsVrzkJFf68R2YZJgDwiH
|
35
|
+
GmXe0sAsp14rX0I+JyC6a35TPrC7o1PH1zWLSJn2hBIbA/fObf8CAwNRIVHUTTUt
|
36
|
+
kr/2/0UpZZ6O3j7S8lovBRVi6Cv+P6avNYOiQpOH0kJyaSw2LMLl87D7t3JYQ0+8
|
37
|
+
rTgQJuEZY0TADK4NMJujsMEok9mO6Qfj4d+dVYdpFfuFgYf/LVnpT4sZ8bKVn0PQ
|
38
|
+
KtQ2gCSB20nUFBsuf/VRbsMWL+MxzesANGDEIrEXNS0=
|
40
39
|
-----END CERTIFICATE-----
|
41
|
-
date:
|
40
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
42
41
|
dependencies:
|
43
42
|
- !ruby/object:Gem::Dependency
|
44
43
|
name: ffi-compiler
|
@@ -60,146 +59,20 @@ dependencies:
|
|
60
59
|
- - "<"
|
61
60
|
- !ruby/object:Gem::Version
|
62
61
|
version: '2.0'
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
name: awesome_print
|
65
|
-
requirement: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '1'
|
70
|
-
- - "<"
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: '2'
|
73
|
-
type: :development
|
74
|
-
prerelease: false
|
75
|
-
version_requirements: !ruby/object:Gem::Requirement
|
76
|
-
requirements:
|
77
|
-
- - ">="
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: '1'
|
80
|
-
- - "<"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '2'
|
83
62
|
- !ruby/object:Gem::Dependency
|
84
63
|
name: rake
|
85
64
|
requirement: !ruby/object:Gem::Requirement
|
86
65
|
requirements:
|
87
|
-
- - "
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '9'
|
90
|
-
- - "<"
|
66
|
+
- - "~>"
|
91
67
|
- !ruby/object:Gem::Version
|
92
68
|
version: '13'
|
93
|
-
type: :
|
69
|
+
type: :runtime
|
94
70
|
prerelease: false
|
95
71
|
version_requirements: !ruby/object:Gem::Requirement
|
96
72
|
requirements:
|
97
|
-
- - "
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version: '9'
|
100
|
-
- - "<"
|
73
|
+
- - "~>"
|
101
74
|
- !ruby/object:Gem::Version
|
102
75
|
version: '13'
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: rdoc
|
105
|
-
requirement: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - ">="
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '4'
|
110
|
-
- - "<"
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: '5'
|
113
|
-
type: :development
|
114
|
-
prerelease: false
|
115
|
-
version_requirements: !ruby/object:Gem::Requirement
|
116
|
-
requirements:
|
117
|
-
- - ">="
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: '4'
|
120
|
-
- - "<"
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version: '5'
|
123
|
-
- !ruby/object:Gem::Dependency
|
124
|
-
name: rspec
|
125
|
-
requirement: !ruby/object:Gem::Requirement
|
126
|
-
requirements:
|
127
|
-
- - ">="
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: '3'
|
130
|
-
- - "<"
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: '4'
|
133
|
-
type: :development
|
134
|
-
prerelease: false
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
136
|
-
requirements:
|
137
|
-
- - ">="
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: '3'
|
140
|
-
- - "<"
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version: '4'
|
143
|
-
- !ruby/object:Gem::Dependency
|
144
|
-
name: rubocop
|
145
|
-
requirement: !ruby/object:Gem::Requirement
|
146
|
-
requirements:
|
147
|
-
- - ">="
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: 0.76.0
|
150
|
-
- - "<"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 1.0.0
|
153
|
-
type: :development
|
154
|
-
prerelease: false
|
155
|
-
version_requirements: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - ">="
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: 0.76.0
|
160
|
-
- - "<"
|
161
|
-
- !ruby/object:Gem::Version
|
162
|
-
version: 1.0.0
|
163
|
-
- !ruby/object:Gem::Dependency
|
164
|
-
name: rubocop-gitlab-security
|
165
|
-
requirement: !ruby/object:Gem::Requirement
|
166
|
-
requirements:
|
167
|
-
- - ">="
|
168
|
-
- !ruby/object:Gem::Version
|
169
|
-
version: 0.1.1
|
170
|
-
- - "<"
|
171
|
-
- !ruby/object:Gem::Version
|
172
|
-
version: '0.2'
|
173
|
-
type: :development
|
174
|
-
prerelease: false
|
175
|
-
version_requirements: !ruby/object:Gem::Requirement
|
176
|
-
requirements:
|
177
|
-
- - ">="
|
178
|
-
- !ruby/object:Gem::Version
|
179
|
-
version: 0.1.1
|
180
|
-
- - "<"
|
181
|
-
- !ruby/object:Gem::Version
|
182
|
-
version: '0.2'
|
183
|
-
- !ruby/object:Gem::Dependency
|
184
|
-
name: rubocop-performance
|
185
|
-
requirement: !ruby/object:Gem::Requirement
|
186
|
-
requirements:
|
187
|
-
- - ">="
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version: 1.5.0
|
190
|
-
- - "<"
|
191
|
-
- !ruby/object:Gem::Version
|
192
|
-
version: 1.6.0
|
193
|
-
type: :development
|
194
|
-
prerelease: false
|
195
|
-
version_requirements: !ruby/object:Gem::Requirement
|
196
|
-
requirements:
|
197
|
-
- - ">="
|
198
|
-
- !ruby/object:Gem::Version
|
199
|
-
version: 1.5.0
|
200
|
-
- - "<"
|
201
|
-
- !ruby/object:Gem::Version
|
202
|
-
version: 1.6.0
|
203
76
|
description: |2
|
204
77
|
The scrypt key derivation function is designed to be far
|
205
78
|
more secure against hardware brute-force attacks than
|
@@ -217,7 +90,6 @@ files:
|
|
217
90
|
- COPYING
|
218
91
|
- README.md
|
219
92
|
- Rakefile
|
220
|
-
- autotest/discover.rb
|
221
93
|
- ext/scrypt/Rakefile
|
222
94
|
- ext/scrypt/cpusupport.h
|
223
95
|
- ext/scrypt/crypto_scrypt.c
|
@@ -251,15 +123,20 @@ files:
|
|
251
123
|
- lib/scrypt/security_utils.rb
|
252
124
|
- lib/scrypt/version.rb
|
253
125
|
- scrypt.gemspec
|
126
|
+
- spec/fixtures/test_vectors.yml
|
254
127
|
- spec/scrypt/engine_spec.rb
|
128
|
+
- spec/scrypt/ffi_spec.rb
|
129
|
+
- spec/scrypt/integration_spec.rb
|
255
130
|
- spec/scrypt/password_spec.rb
|
256
131
|
- spec/scrypt/utils_spec.rb
|
257
132
|
- spec/spec_helper.rb
|
133
|
+
- spec/support/shared_examples.rb
|
134
|
+
- spec/support/test_helpers.rb
|
258
135
|
homepage: https://github.com/pbhogan/scrypt
|
259
136
|
licenses:
|
260
137
|
- BSD-3-Clause
|
261
|
-
metadata:
|
262
|
-
|
138
|
+
metadata:
|
139
|
+
rubygems_mfa_required: 'true'
|
263
140
|
rdoc_options: []
|
264
141
|
require_paths:
|
265
142
|
- lib
|
@@ -267,20 +144,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
267
144
|
requirements:
|
268
145
|
- - ">="
|
269
146
|
- !ruby/object:Gem::Version
|
270
|
-
version:
|
147
|
+
version: 2.3.0
|
271
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
272
149
|
requirements:
|
273
150
|
- - ">="
|
274
151
|
- !ruby/object:Gem::Version
|
275
152
|
version: '0'
|
276
153
|
requirements: []
|
277
|
-
|
278
|
-
rubygems_version: 2.7.7
|
279
|
-
signing_key:
|
154
|
+
rubygems_version: 3.7.1
|
280
155
|
specification_version: 4
|
281
156
|
summary: scrypt password hashing algorithm.
|
282
|
-
test_files:
|
283
|
-
- spec/spec_helper.rb
|
284
|
-
- spec/scrypt/password_spec.rb
|
285
|
-
- spec/scrypt/engine_spec.rb
|
286
|
-
- spec/scrypt/utils_spec.rb
|
157
|
+
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|
data/autotest/discover.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Autotest.add_discovery { "rspec2" }
|