24 references to CryptographicException
Microsoft.AspNetCore.DataProtection (2)
Cng\DpapiSecretSerializerHelper.cs (2)
99
throw new
CryptographicException
(errorCode);
242
throw new
CryptographicException
(errorCode);
Microsoft.Build.Tasks.Core (12)
ManifestUtil\mansign2.cs (12)
406
throw new
CryptographicException
(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
426
throw new
CryptographicException
(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
441
throw new
CryptographicException
(hr);
517
throw new
CryptographicException
(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
522
throw new
CryptographicException
(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
533
throw new
CryptographicException
(Win32.NTE_BAD_KEY);
557
throw new
CryptographicException
(hr);
604
throw new
CryptographicException
(Win32.TRUST_E_BAD_DIGEST);
624
throw new
CryptographicException
(Win32.TRUST_E_BAD_DIGEST);
832
throw new
CryptographicException
(Marshal.GetLastWin32Error());
904
throw new
CryptographicException
(hr);
946
throw new
CryptographicException
(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
System.Net.Http.WinHttpHandler (1)
src\runtime\src\libraries\Common\src\System\Net\Security\CertificateValidation.Windows.cs (1)
32
throw new
CryptographicException
(Marshal.GetLastPInvokeError());
System.Security.Cryptography (4)
System\Security\Cryptography\X509Certificates\X509Certificate.cs (4)
328
throw new
CryptographicException
(ErrorCode.E_POINTER); // Not the greatest error, but needed for backward compat.
342
throw new
CryptographicException
(ErrorCode.E_POINTER); // Not the greatest error, but needed for backward compat.
373
throw new
CryptographicException
(ErrorCode.E_POINTER); // Consistent with existing Export method.
415
throw new
CryptographicException
(ErrorCode.E_POINTER); // Consistent with existing Export method.
System.Windows.Extensions (5)
System\Security\Cryptography\X509Certificates\X509Certificate2UI.cs (3)
86
throw new
CryptographicException
(dwErrorCode);
117
Exception e = new
CryptographicException
(Marshal.GetLastPInvokeError());
169
throw new
CryptographicException
(dwErrorCode);
System\Security\Cryptography\X509Certificates\X509Utils.cs (2)
36
Exception e = new
CryptographicException
(Marshal.GetLastPInvokeError());
53
throw new
CryptographicException
(Marshal.GetLastPInvokeError());