argon2 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/argon2.gemspec +2 -2
- data/ext/argon2_wrap/argon_wrap.c +4 -0
- data/lib/argon2.rb +1 -1
- data/lib/argon2/version.rb +1 -1
- metadata +7 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f448652ac1fb4a0d6d72144ea0aafb92081581f13c13b0c0b65912b1dfc79e1c
|
4
|
+
data.tar.gz: a773a85b25a5048d39ee31b7abef28a84f1f74045609b28cc78c137d8a722cce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdc0083265c308602bc2a7f9d4948bc210e90fa20e617963736bc3d61163105acfaddb17438e52b9d81db5c0623f7b5a44d8fe059d13ccd08724e1a22a9471de
|
7
|
+
data.tar.gz: 20bb002c7ba1828fed88e01cd3744873bb3a8b5c1a014bb2a99254653d8bafb44f3b4903509a859acff5a7668512f6cc350b0dda261d2b793628b27d27deb825
|
data/.travis.yml
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
language: ruby
|
2
2
|
sudo: required
|
3
3
|
rvm:
|
4
|
-
- 2.
|
4
|
+
- 2.6.0
|
5
5
|
- 2.4.0
|
6
6
|
- 2.3.3
|
7
7
|
- jruby-9000
|
8
8
|
before_install:
|
9
|
-
- gem install bundler
|
9
|
+
- gem install bundler
|
10
10
|
install: bin/setup
|
11
11
|
script:
|
12
12
|
- cd ext/argon2_wrap/ && make test && cd ../..
|
data/argon2.gemspec
CHANGED
@@ -21,9 +21,9 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
spec.add_dependency 'ffi', '~> 1.9'
|
24
|
-
spec.add_dependency 'ffi-compiler', '
|
24
|
+
spec.add_dependency 'ffi-compiler', '>= 0.1'
|
25
25
|
|
26
|
-
spec.add_development_dependency "bundler", '~>
|
26
|
+
spec.add_development_dependency "bundler", '~> 2.0'
|
27
27
|
spec.add_development_dependency "coveralls", '~> 0.8'
|
28
28
|
spec.add_development_dependency "minitest", '~> 5.8'
|
29
29
|
spec.add_development_dependency "rake", '~> 10.4', '>= 10.4.2'
|
@@ -73,6 +73,8 @@ int argon2_wrap_version(char *out, const char *pwd, size_t pwd_length,
|
|
73
73
|
result = argon2i_ctx(&context);
|
74
74
|
} else if (type == Argon2_id) {
|
75
75
|
result = argon2id_ctx(&context);
|
76
|
+
} else if (type == Argon2_d) {
|
77
|
+
result = argon2d_ctx(&context);
|
76
78
|
} else {
|
77
79
|
// Unsupported type
|
78
80
|
return ARGON2_ENCODING_FAIL;
|
@@ -124,6 +126,8 @@ int wrap_argon2_verify(const char *encoded, const char *pwd,
|
|
124
126
|
type = Argon2_id;
|
125
127
|
} else if (memcmp(encoded, "$argon2i", strlen("$argon2i")) == 0) {
|
126
128
|
type = Argon2_i;
|
129
|
+
} else if (memcmp(encoded, "$argon2d", strlen("$argon2d")) == 0) {
|
130
|
+
type = Argon2_d;
|
127
131
|
} else {
|
128
132
|
// Other types not yet supported
|
129
133
|
return ARGON2_DECODING_FAIL;
|
data/lib/argon2.rb
CHANGED
data/lib/argon2/version.rb
CHANGED
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.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Technion
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: ffi-compiler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0.1'
|
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
40
|
version: '0.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -44,20 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
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: '
|
58
|
-
- - ">="
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 1.10.5
|
54
|
+
version: '2.0'
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
56
|
name: coveralls
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,7 +140,6 @@ files:
|
|
146
140
|
- ext/argon2_wrap/extconf.rb
|
147
141
|
- ext/argon2_wrap/libargon2_wrap.so
|
148
142
|
- ext/argon2_wrap/test.c
|
149
|
-
- ext/argon2_wrap/tests
|
150
143
|
- ext/phc-winner-argon2/.git
|
151
144
|
- ext/phc-winner-argon2/.gitattributes
|
152
145
|
- ext/phc-winner-argon2/.gitignore
|
@@ -251,8 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
244
|
- !ruby/object:Gem::Version
|
252
245
|
version: '0'
|
253
246
|
requirements: []
|
254
|
-
|
255
|
-
rubygems_version: 2.7.7
|
247
|
+
rubygems_version: 3.0.2
|
256
248
|
signing_key:
|
257
249
|
specification_version: 4
|
258
250
|
summary: Argon2 Password hashing binding
|