aead 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cfc1b66c68031b76b69b71d7677104d5f54e52ff
4
+ data.tar.gz: 9bbcbc4f6bc390436c8add30290f85055380eb46
5
+ SHA512:
6
+ metadata.gz: 1d83f021b6e828cb597b47657cf849871f3e205b7d997a9e65b0188700c734cf3881b33058fdb9d73079d2700b999ba90c03a6ae9e1fd27178452920c90b5510
7
+ data.tar.gz: d3eb2f5265517865b333c9e7f879add90b7bd6d4018a3be25178d96465b48357b7ed0e7df8da2f48c7836f2f06b0f9662a2486551b1c7749c564764138131363
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.1
1
+ 1.6.2
@@ -1,5 +1,6 @@
1
1
  require 'mkmf'
2
2
 
3
+ dir_config('openssl')
3
4
  have_header("openssl/ssl.h")
4
5
  have_library("ssl", "SSLv23_method")
5
6
 
@@ -51,7 +51,7 @@ class AEAD::Nonce
51
51
  #
52
52
  def self.stub_for_testing!(file = Tempfile.new('ruby-aead'))
53
53
  define_method :state_file_with_stub_for_testing do
54
- path = file.path rescue file.to_s
54
+ path = file.respond_to?(:path) ? file.path : file.to_s
55
55
  path = Pathname.new(path)
56
56
 
57
57
  @state_file_stubbed_for_testing ||= Pathname.new(path)
@@ -207,7 +207,7 @@ class AEAD::Nonce
207
207
  private
208
208
 
209
209
  def open_state_file
210
- self.state_file.open(File::RDWR) do |io|
210
+ self.state_file.open('r+b') do |io|
211
211
  begin
212
212
  io.flock File::LOCK_EX
213
213
  yield io
@@ -66,7 +66,7 @@ describe AEAD::Nonce do
66
66
  end
67
67
 
68
68
  it 'must not allow the counter to roll over' do
69
- self.state_file.open('w') do |io|
69
+ self.state_file.open('wb') do |io|
70
70
  io.write [
71
71
  '1' * 12,
72
72
  '0' * 4,
@@ -94,7 +94,7 @@ describe AEAD::Nonce do
94
94
 
95
95
  it 'must abort when the nonce state file can be determined to be corrupt' do
96
96
  [1, 11, 13, 500].each do |count|
97
- self.state_file.open('w') do |io|
97
+ self.state_file.open('wb') do |io|
98
98
  io.write SecureRandom.random_bytes(count)
99
99
  end
100
100
 
@@ -103,7 +103,7 @@ describe AEAD::Nonce do
103
103
  end
104
104
 
105
105
  it 'must abort when the nonce contains the MAC for a different machine' do
106
- self.state_file.open('w') do |io|
106
+ self.state_file.open('wb') do |io|
107
107
  io.write [
108
108
  # FIXME: use ~MAC_MULTICAST_MASK, but figure out how to do so
109
109
  # reliably given Ruby's inability to do binary math correctly :(
metadata CHANGED
@@ -1,217 +1,207 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: aead
3
- version: !ruby/object:Gem::Version
4
- hash: 13
5
- prerelease:
6
- segments:
7
- - 1
8
- - 6
9
- - 1
10
- version: 1.6.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.6.2
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Stephen Touset
14
8
  autorequire:
15
9
  bindir: script
16
10
  cert_chain: []
17
-
18
- date: 2012-12-11 00:00:00 -08:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
11
+ date: 2013-10-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
22
14
  name: macaddr
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 1
30
- segments:
31
- - 1
32
- version: "1"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1'
33
20
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: bundler
37
21
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
41
31
  - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
47
34
  type: :development
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: cane
51
35
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: cane
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
55
45
  - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
- version: "0"
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
61
48
  type: :development
62
- version_requirements: *id003
63
- - !ruby/object:Gem::Dependency
64
- name: guard
65
49
  prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
67
- none: false
68
- requirements:
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
69
52
  - - ">="
70
- - !ruby/object:Gem::Version
71
- hash: 3
72
- segments:
73
- - 0
74
- version: "0"
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
75
62
  type: :development
76
- version_requirements: *id004
77
- - !ruby/object:Gem::Dependency
78
- name: guard-minitest
79
63
  prerelease: false
80
- requirement: &id005 !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
83
66
  - - ">="
84
- - !ruby/object:Gem::Version
85
- hash: 3
86
- segments:
87
- - 0
88
- version: "0"
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard-minitest
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
89
76
  type: :development
90
- version_requirements: *id005
91
- - !ruby/object:Gem::Dependency
92
- name: guard-yard
93
77
  prerelease: false
94
- requirement: &id006 !ruby/object:Gem::Requirement
95
- none: false
96
- requirements:
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard-yard
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
97
87
  - - ">="
98
- - !ruby/object:Gem::Version
99
- hash: 3
100
- segments:
101
- - 0
102
- version: "0"
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
103
90
  type: :development
104
- version_requirements: *id006
105
- - !ruby/object:Gem::Dependency
106
- name: markdown
107
91
  prerelease: false
108
- requirement: &id007 !ruby/object:Gem::Requirement
109
- none: false
110
- requirements:
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: markdown
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
111
101
  - - ">="
112
- - !ruby/object:Gem::Version
113
- hash: 3
114
- segments:
115
- - 0
116
- version: "0"
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
117
104
  type: :development
118
- version_requirements: *id007
119
- - !ruby/object:Gem::Dependency
120
- name: minitest
121
105
  prerelease: false
122
- requirement: &id008 !ruby/object:Gem::Requirement
123
- none: false
124
- requirements:
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
125
108
  - - ">="
126
- - !ruby/object:Gem::Version
127
- hash: 3
128
- segments:
129
- - 0
130
- version: "0"
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: minitest
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
131
118
  type: :development
132
- version_requirements: *id008
133
- - !ruby/object:Gem::Dependency
134
- name: rake
135
119
  prerelease: false
136
- requirement: &id009 !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rake
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
139
129
  - - ">="
140
- - !ruby/object:Gem::Version
141
- hash: 3
142
- segments:
143
- - 0
144
- version: "0"
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
145
132
  type: :development
146
- version_requirements: *id009
147
- - !ruby/object:Gem::Dependency
148
- name: redcarpet
149
133
  prerelease: false
150
- requirement: &id010 !ruby/object:Gem::Requirement
151
- none: false
152
- requirements:
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: redcarpet
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
153
143
  - - ">="
154
- - !ruby/object:Gem::Version
155
- hash: 3
156
- segments:
157
- - 0
158
- version: "0"
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
159
146
  type: :development
160
- version_requirements: *id010
161
- - !ruby/object:Gem::Dependency
162
- name: simplecov
163
147
  prerelease: false
164
- requirement: &id011 !ruby/object:Gem::Requirement
165
- none: false
166
- requirements:
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
167
150
  - - ">="
168
- - !ruby/object:Gem::Version
169
- hash: 3
170
- segments:
171
- - 0
172
- version: "0"
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: simplecov
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
173
160
  type: :development
174
- version_requirements: *id011
175
- - !ruby/object:Gem::Dependency
176
- name: yard
177
161
  prerelease: false
178
- requirement: &id012 !ruby/object:Gem::Requirement
179
- none: false
180
- requirements:
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
181
164
  - - ">="
182
- - !ruby/object:Gem::Version
183
- hash: 3
184
- segments:
185
- - 0
186
- version: "0"
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: yard
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
187
174
  type: :development
188
- version_requirements: *id012
189
- - !ruby/object:Gem::Dependency
190
- name: version
191
175
  prerelease: false
192
- requirement: &id013 !ruby/object:Gem::Requirement
193
- none: false
194
- requirements:
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
195
178
  - - ">="
196
- - !ruby/object:Gem::Version
197
- hash: 3
198
- segments:
199
- - 0
200
- version: "0"
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: version
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
201
188
  type: :development
202
- version_requirements: *id013
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
203
195
  description: Ruby library to generate AEADs
204
196
  email: stephen@touset.org
205
197
  executables: []
206
-
207
- extensions:
198
+ extensions:
208
199
  - ext/openssl/cipher/aead/extconf.rb
209
200
  extra_rdoc_files: []
210
-
211
- files:
212
- - .gitignore
213
- - .travis.yml
214
- - .yardopts
201
+ files:
202
+ - ".gitignore"
203
+ - ".travis.yml"
204
+ - ".yardopts"
215
205
  - Gemfile
216
206
  - Guardfile
217
207
  - LICENSE.md
@@ -236,44 +226,34 @@ files:
236
226
  - spec/aead/cipher_spec.rb
237
227
  - spec/aead/nonce_spec.rb
238
228
  - spec/spec_helper.rb
239
- has_rdoc: true
240
229
  homepage: https://github.com/onelogin/aead
241
230
  licenses: []
242
-
231
+ metadata: {}
243
232
  post_install_message:
244
233
  rdoc_options: []
245
-
246
- require_paths:
234
+ require_paths:
247
235
  - lib
248
- required_ruby_version: !ruby/object:Gem::Requirement
249
- none: false
250
- requirements:
236
+ required_ruby_version: !ruby/object:Gem::Requirement
237
+ requirements:
251
238
  - - ">="
252
- - !ruby/object:Gem::Version
253
- hash: 3
254
- segments:
255
- - 0
256
- version: "0"
257
- required_rubygems_version: !ruby/object:Gem::Requirement
258
- none: false
259
- requirements:
239
+ - !ruby/object:Gem::Version
240
+ version: '0'
241
+ required_rubygems_version: !ruby/object:Gem::Requirement
242
+ requirements:
260
243
  - - ">="
261
- - !ruby/object:Gem::Version
262
- hash: 3
263
- segments:
264
- - 0
265
- version: "0"
244
+ - !ruby/object:Gem::Version
245
+ version: '0'
266
246
  requirements: []
267
-
268
247
  rubyforge_project:
269
- rubygems_version: 1.6.2
248
+ rubygems_version: 2.2.0.preview.1
270
249
  signing_key:
271
- specification_version: 3
250
+ specification_version: 4
272
251
  summary: Ruby library to generate AEADs
273
- test_files:
252
+ test_files:
274
253
  - spec/aead/cipher/aes_256_cbc_hmac_sha_256_spec.rb
275
254
  - spec/aead/cipher/aes_256_ctr_hmac_sha_256_spec.rb
276
255
  - spec/aead/cipher/aes_256_gcm_spec.rb
277
256
  - spec/aead/cipher_spec.rb
278
257
  - spec/aead/nonce_spec.rb
279
258
  - spec/spec_helper.rb
259
+ has_rdoc: