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