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