argon2 1.1.4 → 1.1.5
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 +5 -5
- data/.rubocop.yml +6 -10
- data/.travis.yml +2 -1
- data/Changelog.md +4 -0
- data/README.md +2 -1
- data/argon2.gemspec +4 -4
- data/ext/phc-winner-argon2/CHANGELOG.md +7 -0
- data/ext/phc-winner-argon2/Makefile +2 -2
- data/ext/phc-winner-argon2/README.md +4 -0
- data/ext/phc-winner-argon2/include/argon2.h +5 -3
- data/ext/phc-winner-argon2/src/argon2.c +1 -1
- data/ext/phc-winner-argon2/src/bench.c +2 -2
- data/ext/phc-winner-argon2/src/blake2/blake2-impl.h +1 -1
- data/ext/phc-winner-argon2/src/blake2/blake2.h +10 -12
- data/ext/phc-winner-argon2/src/blake2/blake2b.c +1 -1
- data/ext/phc-winner-argon2/src/blake2/blamka-round-opt.h +293 -2
- data/ext/phc-winner-argon2/src/blake2/blamka-round-ref.h +2 -2
- data/ext/phc-winner-argon2/src/core.c +1 -2
- data/ext/phc-winner-argon2/src/core.h +3 -9
- data/ext/phc-winner-argon2/src/encoding.c +1 -1
- data/ext/phc-winner-argon2/src/encoding.h +1 -1
- data/ext/phc-winner-argon2/src/genkat.c +3 -4
- data/ext/phc-winner-argon2/src/genkat.h +1 -1
- data/ext/phc-winner-argon2/src/opt.c +90 -2
- data/ext/phc-winner-argon2/src/ref.c +1 -1
- data/ext/phc-winner-argon2/src/run.c +43 -23
- data/ext/phc-winner-argon2/src/test.c +5 -6
- data/ext/phc-winner-argon2/src/thread.c +1 -1
- data/ext/phc-winner-argon2/src/thread.h +2 -2
- data/lib/argon2.rb +1 -0
- data/lib/argon2/constants.rb +2 -0
- data/lib/argon2/engine.rb +1 -0
- data/lib/argon2/errors.rb +4 -2
- data/lib/argon2/version.rb +3 -1
- metadata +19 -18
@@ -4,7 +4,7 @@
|
|
4
4
|
* Copyright 2015
|
5
5
|
* Daniel Dinu, Dmitry Khovratovich, Jean-Philippe Aumasson, and Samuel Neves
|
6
6
|
*
|
7
|
-
* You may use this work under the terms of a Creative Commons CC0 1.0
|
7
|
+
* You may use this work under the terms of a Creative Commons CC0 1.0
|
8
8
|
* License/Waiver or the Apache Public License 2.0, at your option. The terms of
|
9
9
|
* these licenses can be found at:
|
10
10
|
*
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* Copyright 2015
|
5
5
|
* Daniel Dinu, Dmitry Khovratovich, Jean-Philippe Aumasson, and Samuel Neves
|
6
6
|
*
|
7
|
-
* You may use this work under the terms of a Creative Commons CC0 1.0
|
7
|
+
* You may use this work under the terms of a Creative Commons CC0 1.0
|
8
8
|
* License/Waiver or the Apache Public License 2.0, at your option. The terms of
|
9
9
|
* these licenses can be found at:
|
10
10
|
*
|
@@ -46,7 +46,7 @@ typedef pthread_t argon2_thread_handle_t;
|
|
46
46
|
* @param func A function pointer for the thread's entry point. Must not be
|
47
47
|
* NULL.
|
48
48
|
* @param args Pointer that is passed as an argument to @func. May be NULL.
|
49
|
-
* @return 0 if @handle and @func are valid pointers and a thread is
|
49
|
+
* @return 0 if @handle and @func are valid pointers and a thread is successfully
|
50
50
|
* created.
|
51
51
|
*/
|
52
52
|
int argon2_thread_create(argon2_thread_handle_t *handle,
|
data/lib/argon2.rb
CHANGED
data/lib/argon2/constants.rb
CHANGED
data/lib/argon2/engine.rb
CHANGED
data/lib/argon2/errors.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
# Defines an array of errors that matches the enum list of errors from
|
3
4
|
# argon2.h. This allows return values to propagate errors through the FFI.
|
5
|
+
|
4
6
|
module Argon2
|
5
7
|
class ArgonHashFail < StandardError; end
|
6
|
-
ERRORS = %w
|
8
|
+
ERRORS = %w[
|
7
9
|
ARGON2_OK
|
8
10
|
ARGON2_OUTPUT_PTR_NULL
|
9
11
|
ARGON2_OUTPUT_TOO_SHORT
|
@@ -38,5 +40,5 @@ module Argon2
|
|
38
40
|
ARGON2_ENCODING_FAIL
|
39
41
|
ARGON2_DECODING_FAIL
|
40
42
|
ARGON2_THREAD_FAIL
|
41
|
-
|
43
|
+
].freeze
|
42
44
|
end
|
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: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Technion
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -59,25 +59,19 @@ dependencies:
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: 1.10.5
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: coveralls
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
68
|
-
- - ">="
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: 10.4.2
|
67
|
+
version: '0.8'
|
71
68
|
type: :development
|
72
69
|
prerelease: false
|
73
70
|
version_requirements: !ruby/object:Gem::Requirement
|
74
71
|
requirements:
|
75
72
|
- - "~>"
|
76
73
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
78
|
-
- - ">="
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: 10.4.2
|
74
|
+
version: '0.8'
|
81
75
|
- !ruby/object:Gem::Dependency
|
82
76
|
name: minitest
|
83
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,33 +87,39 @@ dependencies:
|
|
93
87
|
- !ruby/object:Gem::Version
|
94
88
|
version: '5.8'
|
95
89
|
- !ruby/object:Gem::Dependency
|
96
|
-
name:
|
90
|
+
name: rake
|
97
91
|
requirement: !ruby/object:Gem::Requirement
|
98
92
|
requirements:
|
99
93
|
- - "~>"
|
100
94
|
- !ruby/object:Gem::Version
|
101
|
-
version: '
|
95
|
+
version: '10.4'
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 10.4.2
|
102
99
|
type: :development
|
103
100
|
prerelease: false
|
104
101
|
version_requirements: !ruby/object:Gem::Requirement
|
105
102
|
requirements:
|
106
103
|
- - "~>"
|
107
104
|
- !ruby/object:Gem::Version
|
108
|
-
version: '
|
105
|
+
version: '10.4'
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 10.4.2
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
|
-
name:
|
110
|
+
name: rubocop
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
113
|
- - "~>"
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version: '
|
115
|
+
version: '0.49'
|
116
116
|
type: :development
|
117
117
|
prerelease: false
|
118
118
|
version_requirements: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
120
|
- - "~>"
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: '
|
122
|
+
version: '0.49'
|
123
123
|
description: Argon2 FFI binding
|
124
124
|
email:
|
125
125
|
- technion@lolware.net
|
@@ -144,6 +144,7 @@ files:
|
|
144
144
|
- ext/argon2_wrap/Makefile
|
145
145
|
- ext/argon2_wrap/argon_wrap.c
|
146
146
|
- ext/argon2_wrap/extconf.rb
|
147
|
+
- ext/argon2_wrap/libargon2_wrap.so
|
147
148
|
- ext/argon2_wrap/test.c
|
148
149
|
- ext/argon2_wrap/tests
|
149
150
|
- ext/phc-winner-argon2/.git
|
@@ -251,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
252
|
version: '0'
|
252
253
|
requirements: []
|
253
254
|
rubyforge_project:
|
254
|
-
rubygems_version: 2.6
|
255
|
+
rubygems_version: 2.7.6
|
255
256
|
signing_key:
|
256
257
|
specification_version: 4
|
257
258
|
summary: Argon2 Password hashing binding
|