Exemple #1
0
        protected override bool ReleaseHandle()
        {
            if (DeleteOnClose)
            {
                CryptoApi.CryptSetProvParam2(handle, Constants.PP_DELETE_KEYSET, null, 0);
            }
            else
            {
                CryptoApi.CryptReleaseContext(handle, 0);
            }

            return(true);
        }