noise-ruby 0.5.0 → 0.5.1

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
  SHA1:
3
- metadata.gz: 61342d193c1bb42324605f5be2643542fac0bc2b
4
- data.tar.gz: 44dec9620e075573cf4af4b44367506c45e71b8b
3
+ metadata.gz: a3af440ccbf17d1f1473ce067d4fda18ba52b49f
4
+ data.tar.gz: 923021236e6f85f11fd1464379df4ac955aa08f8
5
5
  SHA512:
6
- metadata.gz: 4e613f8379f2309a540b1e5a9a9b2f884220fcb39387720a1b5ee978fbb0e698f013ba09435e6a2834c45c5534d413b8d8fd76159bc90a748b219417d49b3fa7
7
- data.tar.gz: 72b2c24e768d729b67d6a54d26efb71b0acbed829a66725113ce0a953092a6e6543801bf0f936c3ac80dfa11dd3870d02b74ba556d11eff6c7efe4bfb8cca579
6
+ metadata.gz: 9904c5f4ae81300c198ae9617a08b480be783084aacc33b2c60c77859b4254c278a19a68f4e13ab61688c3f8070ad1e43eb2387b538ddac421407c019ffbd3f1
7
+ data.tar.gz: cd7fb07ded8b862c4bd67431e74a8a0c893c877a6690c050096fb4d40e2ce4e65b06540c9f6e91f224bb40f19a04113aa8c2a9c4c474029e93ef28d79292e39b
@@ -63,6 +63,8 @@ module Noise
63
63
  end
64
64
  end
65
65
  @handshake_hash = @symmetric_state.handshake_hash
66
+ @keypairs = @handshake_state.keypairs
67
+
66
68
  @handshake_state = nil
67
69
  @symmetric_state = nil
68
70
  @cipher_state_handshake = nil
@@ -143,6 +143,11 @@ module Noise
143
143
  payload_buffer << @symmetric_state.decrypt_and_hash(message)
144
144
  @symmetric_state.split if @message_patterns.empty?
145
145
  end
146
+
147
+ # no need for ephemeral keys after handshake has completed.
148
+ def keypairs
149
+ { s: @s, rs: @rs }
150
+ end
146
151
  end
147
152
  end
148
153
  end
data/lib/noise/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Noise
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noise-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hajime Yamaguchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-22 00:00:00.000000000 Z
11
+ date: 2017-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler