Exemple #1
0
 public void Dispose()
 {
     DhPrime.Dispose();
     DhGenerator.Dispose();
     DhPublic.Dispose();
     DhPrivate.Dispose();
 }
Exemple #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (!IsDisposed)
     {
         if (disposing)
         {
             Rsa?.Dispose();
             DhPrime?.Dispose();
             DhGenerator?.Dispose();
             DhPublic?.Dispose();
             DhPrivate?.Dispose();
         }
         IsDisposed = true;
     }
 }