当前位置: 首页>>代码示例>>C#>>正文


C# SafeHashHandle类代码示例

本文整理汇总了C#中SafeHashHandle的典型用法代码示例。如果您正苦于以下问题:C# SafeHashHandle类的具体用法?C# SafeHashHandle怎么用?C# SafeHashHandle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SafeHashHandle类属于命名空间,在下文中一共展示了SafeHashHandle类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CryptCreateHash

            public static bool CryptCreateHash(
                SafeProvHandle hProv,
                int algId,
                SafeKeyHandle hKey,
                CryptCreateHashFlags dwFlags,
                out SafeHashHandle phHash)
            {
                bool response = _CryptCreateHash(hProv, algId, hKey, dwFlags, out phHash);

                phHash.SetParent(hProv);

                return response;
            }
开发者ID:SGuyGe,项目名称:corefx,代码行数:13,代码来源:CapiHelper.cs

示例2: CryptVerifySignature

 public static extern bool CryptVerifySignature(SafeHashHandle hHash, byte[] pbSignature, int dwSigLen, SafeKeyHandle hPubKey, String sDescription, CryptSignAndVerifyHashFlags dwFlags);
开发者ID:SGuyGe,项目名称:corefx,代码行数:1,代码来源:CapiHelper.cs

示例3: CryptSignHash

 public static extern bool CryptSignHash(SafeHashHandle hHash, KeySpec dwKeySpec, String sDescription, CryptSignAndVerifyHashFlags dwFlags, [Out] byte[] pbSignature, [In, Out] ref int pdwSigLen);
开发者ID:SGuyGe,项目名称:corefx,代码行数:1,代码来源:CapiHelper.cs

示例4: CryptSetHashParam

 public static extern bool CryptSetHashParam(SafeHashHandle hHash, CryptHashProperty dwParam, byte[] buffer, int dwFlags);
开发者ID:SGuyGe,项目名称:corefx,代码行数:1,代码来源:CapiHelper.cs

示例5: CryptGetHashParam

 public static extern bool CryptGetHashParam(SafeHashHandle hHash, CryptHashProperty dwParam, out int pbData, [In, Out] ref int pdwDataLen, int dwFlags);
开发者ID:SGuyGe,项目名称:corefx,代码行数:1,代码来源:CapiHelper.cs

示例6: _CryptCreateHash

 private static extern bool _CryptCreateHash(SafeProvHandle hProv, int algId, SafeKeyHandle hKey, CryptCreateHashFlags dwFlags, out SafeHashHandle phHash);
开发者ID:SGuyGe,项目名称:corefx,代码行数:1,代码来源:CapiHelper.cs

示例7: BCryptHashData

 public static extern NTSTATUS BCryptHashData(
     SafeHashHandle hHash,
     byte[] pbInput,
     int cbInput,
     BCryptHashDataFlags dwFlags = BCryptHashDataFlags.None);
开发者ID:jmelosegui,项目名称:pinvoke,代码行数:5,代码来源:BCrypt.cs

示例8: CryptDeriveKey

            public static bool CryptDeriveKey(
                SafeProvHandle hProv,
                int algId,
                SafeHashHandle phHash,
                int dwFlags,
                out SafeKeyHandle phKey)
            {
                bool response = _CryptDeriveKey(hProv, algId, phHash, dwFlags, out phKey);

                phKey.SetParent(hProv);

                return response;
            }
开发者ID:chcosta,项目名称:corefx,代码行数:13,代码来源:CapiHelper.cs

示例9: CryptHashData

 public static extern bool CryptHashData(SafeHashHandle hHash, byte[] pbData, int dwDataLen, int dwFlags);
开发者ID:chcosta,项目名称:corefx,代码行数:1,代码来源:CapiHelper.cs

示例10: _CryptDeriveKey

 private static extern bool _CryptDeriveKey(SafeProvHandle safeProvHandle, int algId, SafeHashHandle phHash, int dwFlags, out SafeKeyHandle phKey);
开发者ID:chcosta,项目名称:corefx,代码行数:1,代码来源:CapiHelper.cs

示例11: BCryptFinishHash

 public static extern NTSTATUS BCryptFinishHash(SafeHashHandle hHash, [Out] byte[] pbOutput, int cbOutput, int dwFlags);
开发者ID:nuskarthik,项目名称:corefx,代码行数:1,代码来源:Cng.cs

示例12: BCryptHashData

 public static extern unsafe NTSTATUS BCryptHashData(SafeHashHandle hHash, byte* pbInput, int cbInput, int dwFlags);
开发者ID:nuskarthik,项目名称:corefx,代码行数:1,代码来源:Cng.cs

示例13: BCryptCreateHash

 public static extern NTSTATUS BCryptCreateHash(SafeAlgorithmHandle hAlgorithm, out SafeHashHandle phHash, IntPtr pbHashObject, int cbHashObject, [In, Out] byte[] pbSecret, int cbSecret, int dwFlags);
开发者ID:nuskarthik,项目名称:corefx,代码行数:1,代码来源:Cng.cs

示例14: BCryptFinishHash

 public static extern NTSTATUS BCryptFinishHash(
     SafeHashHandle hHash,
     [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] byte[] pbOutput,
     int cbOutput,
     BCryptFinishHashFlags dwFlags = BCryptFinishHashFlags.None);
开发者ID:jmelosegui,项目名称:pinvoke,代码行数:5,代码来源:BCrypt.cs

示例15: CryptEncrypt

 public static extern bool CryptEncrypt(SafeKeyHandle safeKeyHandle, SafeHashHandle safeHashHandle,
                                         bool Final, int dwFlags, byte[] pbData, ref int pdwDataLen,
                                         int dwBufLen);
开发者ID:SGuyGe,项目名称:corefx,代码行数:3,代码来源:CapiHelper.cs


注:本文中的SafeHashHandle类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。