argon2 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +70 -0
  3. data/.rubocop.yml +178 -5
  4. data/Changelog.md +10 -0
  5. data/Gemfile +2 -0
  6. data/README.md +29 -17
  7. data/Rakefile +2 -0
  8. data/Steepfile +16 -0
  9. data/argon2.gemspec +13 -7
  10. data/bin/console +5 -4
  11. data/bin/setup +6 -2
  12. data/bin/test +10 -0
  13. data/ext/argon2_wrap/argon_wrap.c +6 -0
  14. data/ext/argon2_wrap/extconf.rb +1 -0
  15. data/ext/argon2_wrap/libargon2_wrap.so +0 -0
  16. data/ext/argon2_wrap/test.c +0 -1
  17. data/ext/phc-winner-argon2/.gitignore +1 -0
  18. data/ext/phc-winner-argon2/Argon2.sln +2 -4
  19. data/ext/phc-winner-argon2/LICENSE +2 -2
  20. data/ext/phc-winner-argon2/Makefile +86 -18
  21. data/ext/phc-winner-argon2/README.md +3 -1
  22. data/ext/phc-winner-argon2/include/argon2.h +3 -3
  23. data/ext/phc-winner-argon2/libargon2.pc.in +18 -0
  24. data/ext/phc-winner-argon2/src/argon2.c +2 -2
  25. data/ext/phc-winner-argon2/src/bench.c +4 -4
  26. data/ext/phc-winner-argon2/src/blake2/blake2-impl.h +3 -3
  27. data/ext/phc-winner-argon2/src/blake2/blake2.h +2 -2
  28. data/ext/phc-winner-argon2/src/blake2/blake2b.c +2 -2
  29. data/ext/phc-winner-argon2/src/blake2/blamka-round-opt.h +2 -2
  30. data/ext/phc-winner-argon2/src/blake2/blamka-round-ref.h +2 -2
  31. data/ext/phc-winner-argon2/src/core.c +20 -6
  32. data/ext/phc-winner-argon2/src/core.h +2 -2
  33. data/ext/phc-winner-argon2/src/encoding.c +2 -2
  34. data/ext/phc-winner-argon2/src/encoding.h +2 -2
  35. data/ext/phc-winner-argon2/src/genkat.c +9 -3
  36. data/ext/phc-winner-argon2/src/genkat.h +2 -2
  37. data/ext/phc-winner-argon2/src/opt.c +2 -2
  38. data/ext/phc-winner-argon2/src/ref.c +2 -2
  39. data/ext/phc-winner-argon2/src/run.c +2 -2
  40. data/ext/phc-winner-argon2/src/test.c +2 -2
  41. data/ext/phc-winner-argon2/src/thread.c +2 -2
  42. data/ext/phc-winner-argon2/src/thread.h +2 -2
  43. data/ext/phc-winner-argon2/vs2015/Argon2Opt/Argon2Opt.vcxproj +11 -6
  44. data/ext/phc-winner-argon2/vs2015/Argon2OptBench/Argon2OptBench.vcxproj +11 -6
  45. data/ext/phc-winner-argon2/vs2015/Argon2OptDll/Argon2OptDll.vcxproj +11 -6
  46. data/ext/phc-winner-argon2/vs2015/Argon2OptGenKAT/Argon2OptGenKAT.vcxproj +11 -6
  47. data/ext/phc-winner-argon2/vs2015/Argon2OptTestCI/Argon2OptTestCI.vcxproj +16 -8
  48. data/ext/phc-winner-argon2/vs2015/Argon2Ref/Argon2Ref.vcxproj +25 -8
  49. data/ext/phc-winner-argon2/vs2015/Argon2RefBench/Argon2RefBench.vcxproj +11 -6
  50. data/ext/phc-winner-argon2/vs2015/Argon2RefDll/Argon2RefDll.vcxproj +11 -6
  51. data/ext/phc-winner-argon2/vs2015/Argon2RefGenKAT/Argon2RefGenKAT.vcxproj +11 -6
  52. data/ext/phc-winner-argon2/vs2015/Argon2RefTestCI/Argon2RefTestCI.vcxproj +11 -6
  53. data/lib/argon2/ffi_engine.rb +49 -17
  54. data/lib/argon2/hash_format.rb +49 -0
  55. data/lib/argon2/version.rb +1 -1
  56. data/lib/argon2.rb +19 -8
  57. data/sig/argon2.rbs +16 -0
  58. data/sig/constants.rbs +8 -0
  59. data/sig/version.rbs +4 -0
  60. metadata +59 -39
  61. data/.travis.yml +0 -14
  62. data/ext/argon2_wrap/tests +0 -0
  63. data/ext/phc-winner-argon2/libargon2.pc +0 -16
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: argon2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Technion
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-06 00:00:00.000000000 Z
11
+ date: 2021-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -16,110 +16,126 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.9'
19
+ version: '1.14'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.9'
26
+ version: '1.14'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ffi-compiler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.1'
33
+ version: '1.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.1'
40
+ version: '1.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.10'
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- version: 1.10.5
47
+ version: '2.0'
51
48
  type: :development
52
49
  prerelease: false
53
50
  version_requirements: !ruby/object:Gem::Requirement
54
51
  requirements:
55
52
  - - "~>"
56
53
  - !ruby/object:Gem::Version
57
- version: '1.10'
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: 1.10.5
54
+ version: '2.0'
61
55
  - !ruby/object:Gem::Dependency
62
- name: coveralls
56
+ name: minitest
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
59
  - - "~>"
66
60
  - !ruby/object:Gem::Version
67
- version: '0.8'
61
+ version: '5.8'
68
62
  type: :development
69
63
  prerelease: false
70
64
  version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
66
  - - "~>"
73
67
  - !ruby/object:Gem::Version
74
- version: '0.8'
68
+ version: '5.8'
75
69
  - !ruby/object:Gem::Dependency
76
- name: minitest
70
+ name: rake
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
73
  - - "~>"
80
74
  - !ruby/object:Gem::Version
81
- version: '5.8'
75
+ version: 13.0.1
82
76
  type: :development
83
77
  prerelease: false
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
80
  - - "~>"
87
81
  - !ruby/object:Gem::Version
88
- version: '5.8'
82
+ version: 13.0.1
89
83
  - !ruby/object:Gem::Dependency
90
- name: rake
84
+ name: rubocop
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
87
  - - "~>"
94
88
  - !ruby/object:Gem::Version
95
- version: '10.4'
96
- - - ">="
89
+ version: '1.7'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
97
95
  - !ruby/object:Gem::Version
98
- version: 10.4.2
96
+ version: '1.7'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.20'
99
104
  type: :development
100
105
  prerelease: false
101
106
  version_requirements: !ruby/object:Gem::Requirement
102
107
  requirements:
103
108
  - - "~>"
104
109
  - !ruby/object:Gem::Version
105
- version: '10.4'
106
- - - ">="
110
+ version: '0.20'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov-lcov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.8'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
107
123
  - !ruby/object:Gem::Version
108
- version: 10.4.2
124
+ version: '0.8'
109
125
  - !ruby/object:Gem::Dependency
110
- name: rubocop
126
+ name: steep
111
127
  requirement: !ruby/object:Gem::Requirement
112
128
  requirements:
113
129
  - - "~>"
114
130
  - !ruby/object:Gem::Version
115
- version: '0.49'
131
+ version: 0.43.1
116
132
  type: :development
117
133
  prerelease: false
118
134
  version_requirements: !ruby/object:Gem::Requirement
119
135
  requirements:
120
136
  - - "~>"
121
137
  - !ruby/object:Gem::Version
122
- version: '0.49'
138
+ version: 0.43.1
123
139
  description: Argon2 FFI binding
124
140
  email:
125
141
  - technion@lolware.net
@@ -128,25 +144,26 @@ extensions:
128
144
  - ext/argon2_wrap/extconf.rb
129
145
  extra_rdoc_files: []
130
146
  files:
147
+ - ".github/workflows/ruby.yml"
131
148
  - ".gitignore"
132
149
  - ".gitmodules"
133
150
  - ".rubocop.yml"
134
- - ".travis.yml"
135
151
  - CONTRIBUTING.md
136
152
  - Changelog.md
137
153
  - Gemfile
138
154
  - LICENSE.txt
139
155
  - README.md
140
156
  - Rakefile
157
+ - Steepfile
141
158
  - argon2.gemspec
142
159
  - bin/console
143
160
  - bin/setup
161
+ - bin/test
144
162
  - ext/argon2_wrap/Makefile
145
163
  - ext/argon2_wrap/argon_wrap.c
146
164
  - ext/argon2_wrap/extconf.rb
147
165
  - ext/argon2_wrap/libargon2_wrap.so
148
166
  - ext/argon2_wrap/test.c
149
- - ext/argon2_wrap/tests
150
167
  - ext/phc-winner-argon2/.git
151
168
  - ext/phc-winner-argon2/.gitattributes
152
169
  - ext/phc-winner-argon2/.gitignore
@@ -184,7 +201,7 @@ files:
184
201
  - ext/phc-winner-argon2/latex/pics/generic.pdf
185
202
  - ext/phc-winner-argon2/latex/pics/power-distribution.jpg
186
203
  - ext/phc-winner-argon2/latex/tradeoff.bib
187
- - ext/phc-winner-argon2/libargon2.pc
204
+ - ext/phc-winner-argon2/libargon2.pc.in
188
205
  - ext/phc-winner-argon2/man/argon2.1
189
206
  - ext/phc-winner-argon2/opt.o
190
207
  - ext/phc-winner-argon2/src/argon2.c
@@ -231,12 +248,16 @@ files:
231
248
  - lib/argon2/engine.rb
232
249
  - lib/argon2/errors.rb
233
250
  - lib/argon2/ffi_engine.rb
251
+ - lib/argon2/hash_format.rb
234
252
  - lib/argon2/version.rb
253
+ - sig/argon2.rbs
254
+ - sig/constants.rbs
255
+ - sig/version.rbs
235
256
  homepage: https://github.com/technion/ruby-argon2
236
257
  licenses:
237
258
  - MIT
238
259
  metadata: {}
239
- post_install_message:
260
+ post_install_message:
240
261
  rdoc_options: []
241
262
  require_paths:
242
263
  - lib
@@ -244,16 +265,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
244
265
  requirements:
245
266
  - - ">="
246
267
  - !ruby/object:Gem::Version
247
- version: '0'
268
+ version: 2.6.0
248
269
  required_rubygems_version: !ruby/object:Gem::Requirement
249
270
  requirements:
250
271
  - - ">="
251
272
  - !ruby/object:Gem::Version
252
273
  version: '0'
253
274
  requirements: []
254
- rubyforge_project:
255
- rubygems_version: 2.7.7
256
- signing_key:
275
+ rubygems_version: 3.2.21
276
+ signing_key:
257
277
  specification_version: 4
258
278
  summary: Argon2 Password hashing binding
259
279
  test_files: []
data/.travis.yml DELETED
@@ -1,14 +0,0 @@
1
- language: ruby
2
- sudo: required
3
- rvm:
4
- - 2.5.0
5
- - 2.4.0
6
- - 2.3.3
7
- - jruby-9000
8
- before_install:
9
- - gem install bundler
10
- - gem update --system
11
- install: bin/setup
12
- script:
13
- - cd ext/argon2_wrap/ && make test && cd ../..
14
- - bundle exec rake test
Binary file
@@ -1,16 +0,0 @@
1
- # libargon2 info for pkg-config
2
- ## Template for downstream installers:
3
- ## - replace @HOST_MULTIARCH@ with target arch, eg 'x86_64-linux-gnu'
4
- ## - replace @UPSTREAM_VER@ with current version, eg '20160406'
5
-
6
- prefix=/usr
7
- exec_prefix=${prefix}
8
- libdir=${prefix}/lib/@HOST_MULTIARCH@
9
- includedir=${prefix}/include
10
-
11
- Name: libargon2
12
- Description: Development libraries for libargon2
13
- Version: @UPSTREAM_VER@
14
- Libs: -L${libdir} -largon2 -lrt -ldl
15
- Cflags:
16
- URL: https://github.com/P-H-C/phc-winner-argon2