public void Dispose()
 {
     if (RC4 != null)
     {
         RC4.Dispose();
         RC4 = null;
     }
 }
예제 #2
0
 internal void CloseContext()
 {
     // Dispose of the state
     _negotiateMessage = null;
     _clientSigningKey = null;
     _serverSigningKey = null;
     _clientSeal?.Dispose();
     _serverSeal?.Dispose();
     _clientSeal           = null;
     _serverSeal           = null;
     _clientSequenceNumber = 0;
     _serverSequenceNumber = 0;
     IsCompleted           = true;
 }