noise-ruby 0.14.0 → 0.15.0
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 +4 -4
- data/.dockerignore +1 -0
- data/.github/workflows/ruby.yml +39 -0
- data/README.md +150 -2
- data/Rakefile +12 -0
- data/lib/noise/connection/base.rb +188 -24
- data/lib/noise/connection/initiator.rb +6 -3
- data/lib/noise/connection/responder.rb +6 -3
- data/lib/noise/exceptions/handshake_already_finished_error.rb +9 -0
- data/lib/noise/exceptions/handshake_not_finished_error.rb +9 -0
- data/lib/noise/exceptions/handshake_not_started_error.rb +9 -0
- data/lib/noise/exceptions/handshake_turn_error.rb +11 -0
- data/lib/noise/exceptions/read_timeout_error.rb +9 -0
- data/lib/noise/exceptions/truncated_message_error.rb +9 -0
- data/lib/noise/exceptions.rb +6 -0
- data/lib/noise/pattern.rb +10 -8
- data/lib/noise/protocol.rb +43 -19
- data/lib/noise/protocol_name.rb +78 -0
- data/lib/noise/transport/bolt8.rb +183 -0
- data/lib/noise/transport/framed.rb +98 -0
- data/lib/noise/transport/stream.rb +130 -0
- data/lib/noise/transport.rb +14 -0
- data/lib/noise/version.rb +1 -1
- data/lib/noise.rb +5 -0
- data/noise.gemspec +3 -1
- metadata +12 -1
data/noise.gemspec
CHANGED
|
@@ -15,8 +15,10 @@ Gem::Specification.new do |spec|
|
|
|
15
15
|
spec.description = 'A Ruby implementation of the Noise Protocol framework(http://noiseprotocol.org/).'
|
|
16
16
|
spec.homepage = 'https://github.com/Yamaguchi/noise'
|
|
17
17
|
|
|
18
|
+
# interop/ holds the Rust harness the interoperability suite runs against, which is test
|
|
19
|
+
# material like spec/ and has no business in the packaged gem.
|
|
18
20
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
19
|
-
f.match(%r{^(test|spec|features)/})
|
|
21
|
+
f.match(%r{^(test|spec|features|interop)/})
|
|
20
22
|
end
|
|
21
23
|
spec.bindir = 'exe'
|
|
22
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: noise-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.15.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hajime Yamaguchi
|
|
@@ -177,6 +177,10 @@ files:
|
|
|
177
177
|
- lib/noise/exceptions.rb
|
|
178
178
|
- lib/noise/exceptions/decrypt_error.rb
|
|
179
179
|
- lib/noise/exceptions/encrypt_error.rb
|
|
180
|
+
- lib/noise/exceptions/handshake_already_finished_error.rb
|
|
181
|
+
- lib/noise/exceptions/handshake_not_finished_error.rb
|
|
182
|
+
- lib/noise/exceptions/handshake_not_started_error.rb
|
|
183
|
+
- lib/noise/exceptions/handshake_turn_error.rb
|
|
180
184
|
- lib/noise/exceptions/invalid_nonce_error.rb
|
|
181
185
|
- lib/noise/exceptions/invalid_public_key_error.rb
|
|
182
186
|
- lib/noise/exceptions/max_nonce_error.rb
|
|
@@ -187,6 +191,8 @@ files:
|
|
|
187
191
|
- lib/noise/exceptions/noise_validation_error.rb
|
|
188
192
|
- lib/noise/exceptions/protocol_name_error.rb
|
|
189
193
|
- lib/noise/exceptions/psk_value_error.rb
|
|
194
|
+
- lib/noise/exceptions/read_timeout_error.rb
|
|
195
|
+
- lib/noise/exceptions/truncated_message_error.rb
|
|
190
196
|
- lib/noise/exceptions/unsupported_modifier_error.rb
|
|
191
197
|
- lib/noise/functions.rb
|
|
192
198
|
- lib/noise/functions/cipher.rb
|
|
@@ -206,10 +212,15 @@ files:
|
|
|
206
212
|
- lib/noise/key_pair.rb
|
|
207
213
|
- lib/noise/pattern.rb
|
|
208
214
|
- lib/noise/protocol.rb
|
|
215
|
+
- lib/noise/protocol_name.rb
|
|
209
216
|
- lib/noise/state.rb
|
|
210
217
|
- lib/noise/state/cipher_state.rb
|
|
211
218
|
- lib/noise/state/handshake_state.rb
|
|
212
219
|
- lib/noise/state/symmetric_state.rb
|
|
220
|
+
- lib/noise/transport.rb
|
|
221
|
+
- lib/noise/transport/bolt8.rb
|
|
222
|
+
- lib/noise/transport/framed.rb
|
|
223
|
+
- lib/noise/transport/stream.rb
|
|
213
224
|
- lib/noise/utils/string.rb
|
|
214
225
|
- lib/noise/version.rb
|
|
215
226
|
- noise.gemspec
|