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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e60d499987fb2252b9b82636c745797f8277855e443927bb196476d513b5ad3
4
- data.tar.gz: 041a7dbdaf46f4c0c9ba32622ac17b59be7058e09f27cbe8033bfbb2705f690a
3
+ metadata.gz: f448652ac1fb4a0d6d72144ea0aafb92081581f13c13b0c0b65912b1dfc79e1c
4
+ data.tar.gz: a773a85b25a5048d39ee31b7abef28a84f1f74045609b28cc78c137d8a722cce
5
5
  SHA512:
6
- metadata.gz: 8feed89a1cadb4581f6aadfd842e8f1d2d58e47c0ffe4049cc6ffa3dd0e6c0a4a3fb3df631d39673e2de46e2009165bfdd52dfc4e3b3b319f9b959d70ffc7a83
7
- data.tar.gz: b2ef55f29b6a5da0143cf220eb3bf0fe03b4381defd68befa9d759fce8f03c91b6d77071667095576541b62dbf8535f55026a9c4442f65316510a3fd97cf63f6
6
+ metadata.gz: fdc0083265c308602bc2a7f9d4948bc210e90fa20e617963736bc3d61163105acfaddb17438e52b9d81db5c0623f7b5a44d8fe059d13ccd08724e1a22a9471de
7
+ data.tar.gz: 20bb002c7ba1828fed88e01cd3744873bb3a8b5c1a014bb2a99254653d8bafb44f3b4903509a859acff5a7668512f6cc350b0dda261d2b793628b27d27deb825
@@ -1,12 +1,12 @@
1
1
  language: ruby
2
2
  sudo: required
3
3
  rvm:
4
- - 2.5.0
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 -v "~>1.0"
9
+ - gem install bundler
10
10
  install: bin/setup
11
11
  script:
12
12
  - cd ext/argon2_wrap/ && make test && cd ../..
@@ -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', '~> 0.1'
24
+ spec.add_dependency 'ffi-compiler', '>= 0.1'
25
25
 
26
- spec.add_development_dependency "bundler", '~> 1.10', '>= 1.10.5'
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;
@@ -34,7 +34,7 @@ module Argon2
34
34
 
35
35
  # Supports 1 and argon2id formats.
36
36
  def self.valid_hash?(hash)
37
- /^\$argon2i.{,113}/ =~ hash
37
+ /^\$argon2(id?|d).{,113}/ =~ hash
38
38
  end
39
39
 
40
40
  def self.verify_password(pass, hash, secret = nil)
@@ -3,5 +3,5 @@
3
3
  # Standard Gem version constant.
4
4
 
5
5
  module Argon2
6
- VERSION = "2.0.1".freeze
6
+ VERSION = "2.0.2".freeze
7
7
  end
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.1
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-01-18 00:00:00.000000000 Z
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: '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
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
- rubyforge_project:
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