27 references to UnsafeNativeMethods
System.Core (27)
Microsoft\Win32\SafeHandles\CapiSafeHandles.cs (1)
299if (!CapiNative.UnsafeNativeMethods.CryptDuplicateKey(this, IntPtr.Zero, 0, out duplicate)) {
System\Security\Cryptography\AesCryptoServiceProvider.cs (2)
376if (!CapiNative.UnsafeNativeMethods.CryptGenKey(m_cspHandle, 407if (!CapiNative.UnsafeNativeMethods.CryptGenRandom(m_cspHandle, iv.Length, iv)) {
System\Security\Cryptography\CapiHashAlgorithm.cs (2)
74if (!CapiNative.UnsafeNativeMethods.CryptCreateHash(m_cspHandle, 127if (!CapiNative.UnsafeNativeMethods.CryptHashData(m_hashHandle, dataPtr + ibStart, cbSize, 0)) {
System\Security\Cryptography\CapiNative.cs (16)
516if (!UnsafeNativeMethods.CryptAcquireContext(out cspHandle, 550if (!UnsafeNativeMethods.CryptExportKey(key, 564if (!UnsafeNativeMethods.CryptExportKey(key, 617if (!CapiNative.UnsafeNativeMethods.CryptGetHashParam(hashHandle, parameter, null, ref parameterSize, 0)) { 623if (!CapiNative.UnsafeNativeMethods.CryptGetHashParam(hashHandle, parameter, parameterValue, ref parameterSize, 0)) { 653if (!UnsafeNativeMethods.CryptGetProvParam(provider, parameter, buffer, ref bufferSize, flags)) { 681if (!UnsafeNativeMethods.CryptGetProvParam(provider, parameter, buffer, ref bufferSize, flags)) { 755if (!UnsafeNativeMethods.CryptImportKey(provider, 792if (!UnsafeNativeMethods.CryptSetKeyParam(key, parameter, value, 0)) { 807SafeLocalAllocHandle safeLocalAllocHandle = UnsafeNativeMethods.LocalAlloc(uFlags, sizetdwBytes); 837if (!UnsafeNativeMethods.CryptDecodeObject(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, 848if (!UnsafeNativeMethods.CryptDecodeObject(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, 886if (!UnsafeNativeMethods.CryptDecodeObject(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, 896if (!UnsafeNativeMethods.CryptDecodeObject(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, 929IntPtr pv = UnsafeNativeMethods.CryptFindOIDInfo(dwKeyType, 959IntPtr pv = UnsafeNativeMethods.CryptFindOIDInfo(dwKeyType,
System\Security\Cryptography\CapiSymmetricAlgorithm.cs (5)
258if (!CapiNative.UnsafeNativeMethods.CryptEncrypt(m_key, 305CapiNative.UnsafeNativeMethods.CryptGenRandom(m_provider, result.Length - 1, result); 408if (!CapiNative.UnsafeNativeMethods.CryptDecrypt(m_key, 441CapiNative.UnsafeNativeMethods.CryptEncrypt(m_key, 453CapiNative.UnsafeNativeMethods.CryptDecrypt(m_key,
System\Security\Cryptography\Xml\ManifestSignedXml.cs (1)
160int hrToken = CapiNative.UnsafeNativeMethods._AxlPublicKeyBlobToPublicKeyToken(ref keyBlob,