303 references to CryptographicException
System.IO.Compression (1)
System\IO\Compression\WinZipAesStream.cs (1)
352throw new CryptographicException();
System.Net.Quic (3)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs (1)
95throw new CryptographicException();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
120return new CryptographicException();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
73return new CryptographicException();
System.Net.Security (3)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs (1)
95throw new CryptographicException();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
120return new CryptographicException();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
73return new CryptographicException();
System.Private.CoreLib (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetRandomBytes.cs (1)
26throw new CryptographicException();
System.Security.Cryptography (205)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptExportKey.cs (1)
73throw new CryptographicException();
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptGetProperty.cs (1)
42throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (8)
64throw new CryptographicException(); 73throw new CryptographicException(); 82throw new CryptographicException(); 89throw new CryptographicException(); 107throw new CryptographicException(); 116throw new CryptographicException(); 124throw new CryptographicException(); 187throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (4)
69throw new CryptographicException(); 78throw new CryptographicException(); 93throw new CryptographicException(); 143throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (12)
72throw new CryptographicException(); 81throw new CryptographicException(); 90throw new CryptographicException(); 99throw new CryptographicException(); 106throw new CryptographicException(); 124throw new CryptographicException(); 142throw new CryptographicException(); 151throw new CryptographicException(); 160throw new CryptographicException(); 169throw new CryptographicException(); 184throw new CryptographicException(); 282throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLDsaPrivateKeyAsn.xml.cs (5)
93throw new CryptographicException(); 102throw new CryptographicException(); 111throw new CryptographicException(); 119throw new CryptographicException(); 194throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyAsn.xml.cs (5)
93throw new CryptographicException(); 102throw new CryptographicException(); 111throw new CryptographicException(); 119throw new CryptographicException(); 194throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (4)
80throw new CryptographicException(); 89throw new CryptographicException(); 97throw new CryptographicException(); 158throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
83throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (11)
64throw new CryptographicException(); 71throw new CryptographicException(); 89throw new CryptographicException(); 96throw new CryptographicException(); 114throw new CryptographicException(); 121throw new CryptographicException(); 139throw new CryptographicException(); 146throw new CryptographicException(); 164throw new CryptographicException(); 172throw new CryptographicException(); 241throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\IssuerAndSerialNumberAsn.xml.cs (2)
31throw new CryptographicException(); 95throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (4)
58throw new CryptographicException(); 67throw new CryptographicException(); 75throw new CryptographicException(); 137throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (1)
43throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
95throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngPkcs8.cs (1)
146throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (9)
153throw new CryptographicException(); 168throw new CryptographicException(); 229throw new CryptographicException(); 1518throw new CryptographicException(); 1600throw new CryptographicException(); 1640throw new CryptographicException(); 1730throw new CryptographicException(); 1909throw new CryptographicException(); 1952throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaAlgorithm.cs (1)
523throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaCng.Windows.cs (5)
57throw new CryptographicException(); 96throw new CryptographicException(); 145throw new CryptographicException(); 213throw new CryptographicException(); 225throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaImplementation.Windows.cs (5)
60throw new CryptographicException(); 86throw new CryptographicException(); 108throw new CryptographicException(); 171throw new CryptographicException(); 183throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKem.cs (6)
1821throw new CryptographicException(); 1903throw new CryptographicException(); 1959throw new CryptographicException(); 2053throw new CryptographicException(); 2211throw new CryptographicException(); 2259throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKemAlgorithm.cs (3)
351throw new CryptographicException(); 465throw new CryptographicException(); 558throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKemCng.Windows.cs (6)
55return new CryptographicException(); 80throw new CryptographicException(); 106throw new CryptographicException(); 137throw new CryptographicException(); 208throw new CryptographicException(); 220throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKemImplementation.Windows.cs (6)
44throw new CryptographicException(); 97throw new CryptographicException(); 117throw new CryptographicException(); 172throw new CryptographicException(); 199throw new CryptographicException(); 211throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (1)
2163throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.Windows.cs (2)
89throw new CryptographicException(); 467throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.Windows.cs (2)
52throw new CryptographicException(); 250throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (1)
1817throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.Windows.cs (1)
26throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemCng.Windows.cs (1)
81return new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (6)
416throw new CryptographicException(); 445throw new CryptographicException(); 628throw new CryptographicException(); 918throw new CryptographicException(); 1038throw new CryptographicException(); 1051throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
215throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
560throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (3)
186throw new CryptographicException(); 284throw new CryptographicException(); 301throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PqcBlobHelpers.CompositeMLKem.cs (5)
90return new CryptographicException(); 103throw new CryptographicException(); 117throw new CryptographicException(); 135throw new CryptographicException(); 144return new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PqcBlobHelpers.cs (5)
102throw new CryptographicException(); 126throw new CryptographicException(); 152throw new CryptographicException(); 175throw new CryptographicException(); 290return new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (1)
113throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (7)
103throw new CryptographicException(); 333throw new CryptographicException(); 371throw new CryptographicException(); 442throw new CryptographicException(); 570throw new CryptographicException(); 606throw new CryptographicException(); 620throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (1)
1972throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdfImplementationCng.cs (2)
83throw new CryptographicException(); 212throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellman.cs (3)
350throw new CryptographicException(); 377throw new CryptographicException(); 1492throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (2)
116throw new CryptographicException(); 123throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanImplementation.Windows.cs (2)
88throw new CryptographicException(); 98throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519WindowsHelpers.cs (1)
35throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (1)
69throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (3)
1128throw new CryptographicException(); 1156throw new CryptographicException(); 1264throw new CryptographicException();
System\Security\Cryptography\Aes.cs (3)
192throw new CryptographicException(); 288throw new CryptographicException(); 619throw new CryptographicException();
System\Security\Cryptography\CryptographicOperations.cs (2)
848throw new CryptographicException(); 940throw new CryptographicException();
System\Security\Cryptography\ECDsa.cs (2)
159throw new CryptographicException(); 441throw new CryptographicException();
System\Security\Cryptography\HashProviderDispenser.Windows.cs (4)
137throw new CryptographicException(); 173throw new CryptographicException(); 266throw new CryptographicException(); 272throw new CryptographicException();
System\Security\Cryptography\Helpers.cs (2)
336throw new CryptographicException(); 435_ => throw new CryptographicException(),
System\Security\Cryptography\HKDF.Windows.cs (1)
266throw new CryptographicException();
System\Security\Cryptography\LiteHash.Windows.cs (4)
91return new CryptographicException(); 106throw new CryptographicException(); 211return new CryptographicException(); 226throw new CryptographicException();
System\Security\Cryptography\MD5CryptoServiceProvider.cs (1)
31throw new CryptographicException();
System\Security\Cryptography\Pbkdf2Implementation.Windows.cs (3)
78throw new CryptographicException(); 194throw new CryptographicException(); 219throw new CryptographicException();
System\Security\Cryptography\PemEncoding.cs (1)
755throw new CryptographicException();
System\Security\Cryptography\RSABCrypt.cs (1)
426throw new CryptographicException();
System\Security\Cryptography\SHA1CryptoServiceProvider.cs (1)
34throw new CryptographicException();
System\Security\Cryptography\SHA256CryptoServiceProvider.cs (1)
34throw new CryptographicException();
System\Security\Cryptography\SHA384CryptoServiceProvider.cs (1)
34throw new CryptographicException();
System\Security\Cryptography\SHA512CryptoServiceProvider.cs (1)
34throw new CryptographicException();
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (4)
35throw new CryptographicException(); 109throw new CryptographicException(); 160throw new CryptographicException(); 231throw new CryptographicException();
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.manual.cs (1)
35throw new CryptographicException();
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (4)
79throw new CryptographicException(); 97throw new CryptographicException(); 217throw new CryptographicException(); 225throw new CryptographicException();
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (4)
58throw new CryptographicException(); 67throw new CryptographicException(); 75throw new CryptographicException(); 128throw new CryptographicException();
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
710throw new CryptographicException();
System\Security\Cryptography\X509Certificates\StorePal.Windows.Export.cs (2)
178throw new CryptographicException(); 199throw new CryptographicException();
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (2)
2170throw new CryptographicException(); 2187throw new CryptographicException();
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (3)
571throw new CryptographicException(); 626throw new CryptographicException(); 745throw new CryptographicException();
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Windows.cs (1)
214throw new CryptographicException();
System\Security\Cryptography\XmlKeyHelper.cs (1)
149throw new CryptographicException();
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\CoseKey.cs (2)
220throw new CryptographicException(); 231throw new CryptographicException();
System.Security.Cryptography.Pkcs (88)
Internal\Cryptography\Pal\AnyOS\AsnHelpers.cs (1)
120throw new CryptographicException();
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (1)
74throw new CryptographicException();
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (1)
204exception = new CryptographicException();
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (2)
385throw new CryptographicException(); 399throw new CryptographicException();
Internal\Cryptography\PkcsHelpers.cs (2)
210throw new CryptographicException(); 311throw new CryptographicException(); // This just keeps the compiler happy. We don't expect to reach this.
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (8)
64throw new CryptographicException(); 73throw new CryptographicException(); 82throw new CryptographicException(); 89throw new CryptographicException(); 107throw new CryptographicException(); 116throw new CryptographicException(); 124throw new CryptographicException(); 187throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (12)
72throw new CryptographicException(); 81throw new CryptographicException(); 90throw new CryptographicException(); 99throw new CryptographicException(); 106throw new CryptographicException(); 124throw new CryptographicException(); 142throw new CryptographicException(); 151throw new CryptographicException(); 160throw new CryptographicException(); 169throw new CryptographicException(); 184throw new CryptographicException(); 282throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (4)
80throw new CryptographicException(); 89throw new CryptographicException(); 97throw new CryptographicException(); 158throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
83throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (11)
64throw new CryptographicException(); 71throw new CryptographicException(); 89throw new CryptographicException(); 96throw new CryptographicException(); 114throw new CryptographicException(); 121throw new CryptographicException(); 139throw new CryptographicException(); 146throw new CryptographicException(); 164throw new CryptographicException(); 172throw new CryptographicException(); 241throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\IssuerAndSerialNumberAsn.xml.cs (2)
31throw new CryptographicException(); 95throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (4)
58throw new CryptographicException(); 67throw new CryptographicException(); 75throw new CryptographicException(); 137throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (1)
43throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (6)
416throw new CryptographicException(); 445throw new CryptographicException(); 628throw new CryptographicException(); 918throw new CryptographicException(); 1038throw new CryptographicException(); 1051throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
215throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
560throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (3)
186throw new CryptographicException(); 284throw new CryptographicException(); 301throw new CryptographicException();
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (4)
58throw new CryptographicException(); 67throw new CryptographicException(); 75throw new CryptographicException(); 128throw new CryptographicException();
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (5)
60throw new CryptographicException(); 69throw new CryptographicException(); 78throw new CryptographicException(); 86throw new CryptographicException(); 155throw new CryptographicException();
System\Security\Cryptography\Pkcs\Asn1\PkiStatusInfo.xml.cs (1)
36throw new CryptographicException();
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (4)
58throw new CryptographicException(); 67throw new CryptographicException(); 75throw new CryptographicException(); 137throw new CryptographicException();
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (4)
58throw new CryptographicException(); 67throw new CryptographicException(); 75throw new CryptographicException(); 128throw new CryptographicException();
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (3)
57throw new CryptographicException(); 72throw new CryptographicException(); 131throw new CryptographicException();
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
379throw new CryptographicException();
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (1)
70throw new CryptographicException();
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
259throw new CryptographicException();
System\Security\Cryptography\Pkcs\SubjectIdentifier.cs (3)
94throw new CryptographicException(); 132throw new CryptographicException(); 167throw new CryptographicException();