protected override bool ReleaseHandle()
        {
            bool successfullyFreed = CapiHelper.CryptDestroyHash(handle);

            Debug.Assert(successfullyFreed);
            return(successfullyFreed);
        }
Beispiel #2
0
        protected override bool ReleaseHandle()
        {
            bool successfullyFreed = CapiHelper.CryptDestroyHash(handle);

            Debug.Assert(successfullyFreed);

            SafeProvHandle parent = _parent;

            _parent = null;
            parent?.DangerousRelease();

            return(successfullyFreed);
        }