system\security\cryptography\capinative.cs (12)
167internal static extern bool CryptAcquireContext([Out] out SafeCspHandle phProv,
178internal static extern bool CryptCreateHash(SafeCspHandle hProv,
189internal static extern bool CryptGenKey(SafeCspHandle hProv,
199internal static extern bool CryptGenRandom(SafeCspHandle hProv,
208internal static extern unsafe bool CryptGenRandom(SafeCspHandle hProv,
239internal static extern bool CryptImportKey(SafeCspHandle hProv,
273internal static SafeCspHandle AcquireCsp(string keyContainer,
288SafeCspHandle cspHandle = null;
304internal static SafeCspHashHandle CreateHashAlgorithm(SafeCspHandle cspHandle, AlgorithmID algorithm) {
320internal static void GenerateRandomBytes(SafeCspHandle cspHandle, byte[] buffer) {
333internal static unsafe void GenerateRandomBytes(SafeCspHandle cspHandle, byte[] buffer, int offset, int count)
442internal static bool VerifySignature(SafeCspHandle cspHandle,