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