protected override void Dispose(bool disposing) { if (disposing) { SafeKeyHandleBCrypt hKey = _hKey; _hKey = null; if (hKey != null) { hKey.Dispose(); } byte[] currentIv = _currentIv; _currentIv = null; if (currentIv != null) { Array.Clear(currentIv, 0, currentIv.Length); } } base.Dispose(disposing); }
public void Dispose() { _keyHandle.Dispose(); }