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.
@@ -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 successfuly
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,
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'argon2/constants'
3
4
  require 'argon2/ffi_engine'
4
5
  require 'argon2/version'
@@ -1,7 +1,9 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Argon2
3
4
  # Constants utilised in several parts of the Argon2 module
4
5
  # SALT_LEN is a standard recommendation from the Argon2 spec.
6
+
5
7
  module Constants
6
8
  SALT_LEN = 16
7
9
  OUT_LEN = 32 # Binary, unencoded output
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'securerandom'
3
4
 
4
5
  module Argon2
@@ -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
- ).freeze
43
+ ].freeze
42
44
  end
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  # Standard Gem version constant.
4
+
3
5
  module Argon2
4
- VERSION = "1.1.4".freeze
6
+ VERSION = "1.1.5".freeze
5
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: 1.1.4
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: 2017-10-24 00:00:00.000000000 Z
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: rake
62
+ name: coveralls
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '10.4'
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: '10.4'
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: rubocop
90
+ name: rake
97
91
  requirement: !ruby/object:Gem::Requirement
98
92
  requirements:
99
93
  - - "~>"
100
94
  - !ruby/object:Gem::Version
101
- version: '0.35'
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: '0.35'
105
+ version: '10.4'
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: 10.4.2
109
109
  - !ruby/object:Gem::Dependency
110
- name: codeclimate-test-reporter
110
+ name: rubocop
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: '1.0'
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: '1.0'
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.13
255
+ rubygems_version: 2.7.6
255
256
  signing_key:
256
257
  specification_version: 4
257
258
  summary: Argon2 Password hashing binding