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

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

            Debug.Assert(successfullyFreed);

            SafeProvHandle parent = _parent;

            _parent = null;
            parent?.DangerousRelease();

            return(successfullyFreed);
        }