lib/noise/state/handshake_state.rb in noise-ruby-0.1.0 vs lib/noise/state/handshake_state.rb in noise-ruby-0.2.0
- old
+ new
@@ -107,10 +107,9 @@
when 's'
offset = @protocol.cipher_state_handshake.key? ? 16 : 0
temp = message[0...len + offset]
message = message[(len + offset)..-1]
@rs = @protocol.dh_fn.class.from_public(@symmetric_state.decrypt_and_hash(temp))
- # @protocol.keypair.load(@symmetric_state.decrypt_and_hash(temp))
next
when 'ee'
@symmetric_state.mix_key(dh_fn.dh(@e[0], @re[1]))
next
when 'es'