internal void DestroyKey(CryptKey key) { ThrowIfDisposedOrNotOpen(); if (!Win32Native.CryptDestroyKey(key.Handle)) { Win32ErrorHelper.ThrowExceptionIfGetLastErrorIsNotZero(); } }
internal void DestroyKey(CryptKey key) { ThrowIfDisposedOrNotOpen(); if (!Win32Native.CryptDestroyKey(key.Handle)) Win32ErrorHelper.ThrowExceptionIfGetLastErrorIsNotZero(); }