lib/noise/state/handshake_state.rb in noise-ruby-0.5.0 vs lib/noise/state/handshake_state.rb in noise-ruby-0.5.1
- old
+ new
@@ -141,8 +141,13 @@
end
end
payload_buffer << @symmetric_state.decrypt_and_hash(message)
@symmetric_state.split if @message_patterns.empty?
end
+
+ # no need for ephemeral keys after handshake has completed.
+ def keypairs
+ { s: @s, rs: @rs }
+ end
end
end
end