本文整理汇总了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;
}
示例2: CryptVerifySignature
public static extern bool CryptVerifySignature(SafeHashHandle hHash, byte[] pbSignature, int dwSigLen, SafeKeyHandle hPubKey, String sDescription, CryptSignAndVerifyHashFlags dwFlags);
示例3: CryptSignHash
public static extern bool CryptSignHash(SafeHashHandle hHash, KeySpec dwKeySpec, String sDescription, CryptSignAndVerifyHashFlags dwFlags, [Out] byte[] pbSignature, [In, Out] ref int pdwSigLen);
示例4: CryptSetHashParam
public static extern bool CryptSetHashParam(SafeHashHandle hHash, CryptHashProperty dwParam, byte[] buffer, int dwFlags);
示例5: CryptGetHashParam
public static extern bool CryptGetHashParam(SafeHashHandle hHash, CryptHashProperty dwParam, out int pbData, [In, Out] ref int pdwDataLen, int dwFlags);
示例6: _CryptCreateHash
private static extern bool _CryptCreateHash(SafeProvHandle hProv, int algId, SafeKeyHandle hKey, CryptCreateHashFlags dwFlags, out SafeHashHandle phHash);
示例7: BCryptHashData
public static extern NTSTATUS BCryptHashData(
SafeHashHandle hHash,
byte[] pbInput,
int cbInput,
BCryptHashDataFlags dwFlags = BCryptHashDataFlags.None);
示例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;
}
示例9: CryptHashData
public static extern bool CryptHashData(SafeHashHandle hHash, byte[] pbData, int dwDataLen, int dwFlags);
示例10: _CryptDeriveKey
private static extern bool _CryptDeriveKey(SafeProvHandle safeProvHandle, int algId, SafeHashHandle phHash, int dwFlags, out SafeKeyHandle phKey);
示例11: BCryptFinishHash
public static extern NTSTATUS BCryptFinishHash(SafeHashHandle hHash, [Out] byte[] pbOutput, int cbOutput, int dwFlags);
示例12: BCryptHashData
public static extern unsafe NTSTATUS BCryptHashData(SafeHashHandle hHash, byte* pbInput, int cbInput, int dwFlags);
示例13: BCryptCreateHash
public static extern NTSTATUS BCryptCreateHash(SafeAlgorithmHandle hAlgorithm, out SafeHashHandle phHash, IntPtr pbHashObject, int cbHashObject, [In, Out] byte[] pbSecret, int cbSecret, int dwFlags);
示例14: BCryptFinishHash
public static extern NTSTATUS BCryptFinishHash(
SafeHashHandle hHash,
[MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] byte[] pbOutput,
int cbOutput,
BCryptFinishHashFlags dwFlags = BCryptFinishHashFlags.None);
示例15: CryptEncrypt
public static extern bool CryptEncrypt(SafeKeyHandle safeKeyHandle, SafeHashHandle safeHashHandle,
bool Final, int dwFlags, byte[] pbData, ref int pdwDataLen,
int dwBufLen);