anchor.diff:  					       Algo, ClientRandom, 
   					       ServerRandom,
   					       PrivateKey}),
  -    {BinMsg, ConnectionStates, Hashes1} =
  +    {BinMsg, ConnectionStates, Hashes} =
           encode_handshake(Msg, Version, ConnectionStates0, Hashes0),
       Transport:send(Socket, BinMsg),
       State#state{connection_states = ConnectionStates,
   		diffie_hellman_keys = Keys,
  -                tls_handshake_hashes = Hashes1};
  +                tls_handshake_hashes = Hashes};
   
   key_exchange(#state{role = client, 
   		    connection_states = ConnectionStates0,
  
positive.code:     ServerHello = 
          ssl_handshake:server_hello(SessId, Version, 
                                     ConnectionStates0, Renegotiation),
      State1 = server_hello(ServerHello, State0),
      
      case Type of	
  	new ->
  	    new_server_hello(ServerHello, State1);
  	resumed ->
  	    ConnectionStates1 = State1#state.connection_states,
  	    case ssl_handshake:master_secret(Version, Session,
  					     ConnectionStates1, server) of
  		{_, ConnectionStates2} ->
  		    State2 = State1#state{connection_states=ConnectionStates2, 
  					  session = Session},		    
  		    {ConnectionStates, Hashes} = 
  			finalize_handshake(State2, abbreviated),
  		    State3 = State2#state{connection_states = 
  					  ConnectionStates,
  					  tls_handshake_hashes = Hashes},
  		    {Record, State} = next_record(State3),
  		    next_state(hello, abbreviated, Record, State);
  		#alert{} = Alert ->
  		    handle_own_alert(Alert, Version, hello, State1), 
  		    {stop, normal, State1}
  	    end
      end.
  
  new_server_hello(#server_hello{cipher_suite = CipherSuite,
  
negative.code: 	       role = client} = State0) ->
      case ssl_handshake:master_secret(Version, Session, 
  				     ConnectionStates0, client) of
  	{MasterSecret, ConnectionStates} ->
  	    State = State0#state{connection_states = ConnectionStates},
  	    client_certify_and_key_exchange(State);
  	#alert{} = Alert ->
  	    handle_own_alert(Alert, Version, certify, State0),
  