6 types derived from CryptographicException
System.Net.Quic (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
108private sealed class OpenSslCryptographicException : CryptographicException
System.Net.Security (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
108private sealed class OpenSslCryptographicException : CryptographicException
System.Security.Cryptography (4)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
108private sealed class OpenSslCryptographicException : CryptographicException
src\libraries\Common\src\System\Security\Cryptography\AuthenticationTagMismatchException.cs (1)
10public sealed class AuthenticationTagMismatchException : CryptographicException
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\Pkcs12LoadLimitExceededException.cs (1)
10public sealed class Pkcs12LoadLimitExceededException : CryptographicException
System\Security\Cryptography\CryptographicUnexpectedOperationException.cs (1)
12public class CryptographicUnexpectedOperationException : CryptographicException
1408 instantiations of CryptographicException
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
356throw new CryptographicException("ASN1 corrupted data");
Microsoft.AspNetCore.Cryptography.Internal (5)
CryptoUtil.cs (1)
62throw new CryptographicException("Assertion failed: " + message);
SafeHandles\BCryptAlgorithmHandle.cs (1)
145throw new CryptographicException(message);
UnsafeNativeMethods.cs (3)
473throw new CryptographicException(message); 482throw new CryptographicException(message); 499throw new CryptographicException(message);
Microsoft.AspNetCore.DataProtection (10)
Cng\DpapiSecretSerializerHelper.cs (2)
99throw new CryptographicException(errorCode); 242throw new CryptographicException(errorCode);
Error.cs (8)
31return new CryptographicException(Resources.CryptCommon_GenericError, inner); 37return new CryptographicException(message); 54return new CryptographicException(Resources.Common_EncryptionFailed, inner); 60return new CryptographicException(message); 66return new CryptographicException(message); 76return new CryptographicException(Resources.Common_DecryptionFailed, inner); 81return new CryptographicException(Resources.ProtectionProvider_BadMagicHeader); 86return new CryptographicException(Resources.ProtectionProvider_BadVersion);
Microsoft.AspNetCore.DataProtection.Abstractions (3)
CryptoUtil.cs (1)
22throw new CryptographicException("Assertion failed: " + message);
Error.cs (2)
14return new CryptographicException(Resources.CryptCommon_GenericError, inner); 20return new CryptographicException(message);
Microsoft.AspNetCore.DataProtection.Extensions (3)
TimeLimitedDataProtector.cs (3)
77throw new CryptographicException(Resources.TimeLimitedDataProtector_PayloadInvalid); 87throw new CryptographicException(Resources.FormatTimeLimitedDataProtector_PayloadExpired(embeddedExpiration)); 99throw new CryptographicException(Resources.CryptCommon_GenericError, ex);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
356throw new CryptographicException("ASN1 corrupted data");
Microsoft.Build.Tasks.Core (12)
ManifestUtil\mansign2.cs (12)
391throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN); 411throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN); 426throw new CryptographicException(hr); 502throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN); 507throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN); 518throw new CryptographicException(Win32.NTE_BAD_KEY); 542throw new CryptographicException(hr); 589throw new CryptographicException(Win32.TRUST_E_BAD_DIGEST); 609throw new CryptographicException(Win32.TRUST_E_BAD_DIGEST); 812throw new CryptographicException(Marshal.GetLastWin32Error()); 884throw new CryptographicException(hr); 924throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
Microsoft.DotNet.SignCheckLibrary (3)
Verification\AuthentiCode.cs (2)
139throw new CryptographicException($"Invalid content type: {signedCms.ContentInfo.ContentType.Value}"); 179throw new CryptographicException($"Invalid number of signers: {signerCount}. Expected 1.");
Verification\AuthentiCodeVerifier.cs (1)
114throw new CryptographicException($"File '{path}' is too small to contain a valid security entry.");
System.Net.Quic (3)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs (1)
93throw new CryptographicException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
125return new CryptographicException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
72return new CryptographicException();
System.Net.Security (5)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs (1)
93throw new CryptographicException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
125return new CryptographicException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
72return new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (2)
233throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 247throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System.Private.CoreLib (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetRandomBytes.cs (1)
26throw new CryptographicException();
System.Security.Cryptography (756)
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (11)
70throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 98throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 120throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 127throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 135throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 235throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, algName.Name); 310throw new CryptographicException(ex.Message, ex); 326throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 333throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 392throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs (1)
93throw new CryptographicException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.GetIntegerBytes.cs (1)
47throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.Nid.cs (1)
33throw new CryptographicException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
125return new CryptographicException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Dsa.cs (2)
98throw new CryptographicException(); 116throw new CryptographicException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs (4)
168throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey); 215throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey); 336throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey); 406throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
72return new CryptographicException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.DigestAlgs.cs (2)
153throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmId)); 178throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmId));
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.Kem.cs (4)
106throw new CryptographicException(); 145throw new CryptographicException(); 166throw new CryptographicException(); 198throw new CryptographicException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.KemAlgs.cs (1)
50return new CryptographicException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs (5)
33throw new CryptographicException(); 129throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey); 132throw new CryptographicException(); 241throw new CryptographicException(SR.Cryptography_EnginesNotSupported); 271throw new CryptographicException(SR.Cryptography_EnginesNotSupported);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.ExportKeyContents.cs (2)
29throw new CryptographicException(SR.Cryptography_NotRetrievable); 36throw new CryptographicException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.MLDsa.cs (1)
45return new CryptographicException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.SlhDsa.cs (1)
72return new CryptographicException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.Chain.cs (2)
28throw new CryptographicException(); 70throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\AesAEAD.cs (1)
12throw new CryptographicException(SR.Cryptography_InvalidKeySize);
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 43throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 67throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 84throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (4)
33throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 45throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 70throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 87throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\CurveAsn.xml.cs (2)
55throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 72throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (11)
49throw new CryptographicException(); 58throw new CryptographicException(); 67throw new CryptographicException(); 74throw new CryptographicException(); 84throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 92throw new CryptographicException(); 101throw new CryptographicException(); 109throw new CryptographicException(); 125throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 137throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 172throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\DssParms.xml.cs (2)
50throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 67throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (7)
43throw new CryptographicException(); 52throw new CryptographicException(); 60throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 67throw new CryptographicException(); 83throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 95throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 117throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECPrivateKey.xml.cs (2)
66throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 83throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (2)
57throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 74throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\FieldID.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 40throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 62throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (17)
57throw new CryptographicException(); 66throw new CryptographicException(); 75throw new CryptographicException(); 84throw new CryptographicException(); 91throw new CryptographicException(); 101throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 109throw new CryptographicException(); 118throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 127throw new CryptographicException(); 136throw new CryptographicException(); 145throw new CryptographicException(); 154throw new CryptographicException(); 162throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 169throw new CryptographicException(); 185throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 197throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 267throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyAsn.xml.cs (7)
45throw new CryptographicException(); 54throw new CryptographicException(); 63throw new CryptographicException(); 71throw new CryptographicException(); 87throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 99throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 146throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyBothAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (2)
83throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 100throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (6)
43throw new CryptographicException(); 52throw new CryptographicException(); 60throw new CryptographicException(); 76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 122throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (2)
81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 98throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (3)
49throw new CryptographicException( 55throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 83throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (2)
55throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 72throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (4)
34throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 43throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 96throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (17)
49throw new CryptographicException(); 56throw new CryptographicException(); 66throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 74throw new CryptographicException(); 81throw new CryptographicException(); 91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 99throw new CryptographicException(); 106throw new CryptographicException(); 116throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 124throw new CryptographicException(); 131throw new CryptographicException(); 141throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 149throw new CryptographicException(); 157throw new CryptographicException(); 173throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 185throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 226throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncapsulatedContentInfoAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 44throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 69throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 86throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (3)
33throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 62throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (2)
63throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 80throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\IssuerAndSerialNumberAsn.xml.cs (5)
31throw new CryptographicException(); 41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 95throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\OtherCertificateFormat.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 40throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 62throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignedDataAsn.xml.cs (3)
67throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 102throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 119throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (6)
43throw new CryptographicException(); 52throw new CryptographicException(); 60throw new CryptographicException(); 76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 122throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (4)
43throw new CryptographicException(); 53throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 92throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 109throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (2)
65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 82throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (5)
16throw new CryptographicException(SR.Cryptography_Pkcs_InvalidSignatureParameters); 21throw new CryptographicException( 28throw new CryptographicException(SR.Cryptography_Pkcs_InvalidSignatureParameters); 37throw new CryptographicException( 53throw new CryptographicException(
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (2)
149throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 166throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml.cs (2)
62throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml.cs (3)
51throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 75throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 92throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (3)
47throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 83throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 100throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (2)
233throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 247throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
63throw new CryptographicException(SR.Cryptography_Pkcs9_MultipleSigningTimeNotAllowed);
src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (8)
25throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 39throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 47throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 67throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 105throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 110throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 130throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (4)
94throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey); 178throw new CryptographicException(SR.Cryptography_OpenInvalidHandle); 275throw new CryptographicException( 340throw new CryptographicException(
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (28)
102throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 124throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 136throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 143throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 149throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 190throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 197throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 204throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 210throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 237throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 253throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 267throw new CryptographicException(SR.Cryptography_ECC_NamedCurvesOnly); 288throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 301throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 306throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 327throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 347throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 360throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 381throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 388throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 409throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 440throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 499throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey); 551throw new CryptographicException( 662throw new CryptographicException(SR.Cryptography_InvalidECCharacteristic2Curve); 713throw new CryptographicException(SR.Cryptography_InvalidECCharacteristic2Curve); 726throw new CryptographicException(SR.Cryptography_InvalidECCharacteristic2Curve); 735throw new CryptographicException(SR.Cryptography_InvalidECCharacteristic2Curve);
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanDerivation.cs (4)
113throw new CryptographicException(SR.Cryptography_TlsRequires64ByteSeed); 208throw new CryptographicException(); 220throw new CryptographicException(); 238throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs (1)
167throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey);
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (2)
204throw new CryptographicException( 281throw new CryptographicException(SR.Cryptography_OpenInvalidHandle);
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.ImportExport.cs (6)
82throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey); 101throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey); 168throw new CryptographicException(SR.Cryptography_OpenInvalidHandle); 176throw new CryptographicException(SR.Cryptography_OpenInvalidHandle); 239throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey); 255throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey);
src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (2)
112_ => throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashOid)), 156throw new CryptographicException(
src\libraries\Common\src\System\Security\Cryptography\KeyBlobHelpers.cs (2)
31throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 66throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (8)
49throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 54throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 80throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 85throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 121throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 129throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 148throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 157throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (11)
113throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 142throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 149throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 298throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 329throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 356throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 379throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 398throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 411throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 434throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 447throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (3)
131throw new CryptographicException(SR.Cryptography_OverlappingBuffers); 1189throw new CryptographicException(SR.Argument_KemInvalidEncapsulationKeyLength); 1673throw new CryptographicException(
src\libraries\Common\src\System\Security\Cryptography\MLKemPkcs8.cs (1)
50throw new CryptographicException(SR.Cryptography_NotValidPrivateKey);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (38)
20return new CryptographicException(SR.Cryptography_AlgKdfRequiresChars, algId); 46throw new CryptographicException( 61throw new CryptographicException( 79throw new CryptographicException( 142throw new CryptographicException( 242throw new CryptographicException( 274throw new CryptographicException( 301throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, prf.Name); 388throw new CryptographicException(); 417throw new CryptographicException(); 517throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 524throw new CryptographicException( 573throw new CryptographicException( 597throw new CryptographicException(); 602throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 622throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 637throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 644throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 654throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 673throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 682throw new CryptographicException(SR.Cryptography_UnknownAlgorithmIdentifier, algId); 692throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 708throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 715throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 727throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 736throw new CryptographicException( 745throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 754_ => throw new CryptographicException( 765throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 793throw new CryptographicException(SR.Argument_InvalidValue, e); 816throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 823throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 828throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 867throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 877throw new CryptographicException(); 996throw new CryptographicException(); 1009throw new CryptographicException(); 1095throw new CryptographicException(SR.Argument_InvalidValue);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
215throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (2)
95throw new CryptographicException(SR.Argument_InvalidOidValue); 112throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (4)
66throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 98throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 104throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 150throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (6)
59throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 220throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 228throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 233throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 303throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 499throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (3)
91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 192throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 223throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (4)
101throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 186throw new CryptographicException(); 284throw new CryptographicException(); 301throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (7)
27throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 34throw new CryptographicException( 86throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 196throw new CryptographicException(); 262throw new CryptographicException(SR.Cryptography_InvalidRsaParameters); 278throw new CryptographicException(SR.Cryptography_InvalidRsaParameters); 288throw new CryptographicException(SR.Cryptography_NotValidPrivateKey);
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (11)
180throw new CryptographicException(SR.Cryptography_RSA_DecryptWrongSize); 186throw new CryptographicException(); 225throw new CryptographicException(); 500throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 616throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 668throw new CryptographicException(SR.Argument_InvalidValue); 671throw new CryptographicException(SR.Argument_InvalidValue); 716throw new CryptographicException(SR.Cryptography_OpenInvalidHandle); 743throw new CryptographicException(); 818throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey); 880new CryptographicException(SR.Cryptography_InvalidPaddingMode);
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (13)
103throw new CryptographicException(); 130throw new CryptographicException(SR.Cryptography_KeyTooSmall); 265throw new CryptographicException(SR.Cryptography_SignHash_WrongSize); 273throw new CryptographicException(SR.Cryptography_KeyTooSmall); 310throw new CryptographicException( 333throw new CryptographicException(); 371throw new CryptographicException(); 393throw new CryptographicException(SR.Cryptography_SignHash_WrongSize); 405throw new CryptographicException(SR.Cryptography_KeyTooSmall); 442throw new CryptographicException(); 570throw new CryptographicException(); 606throw new CryptographicException(); 620throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (4)
1012throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 1077throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 1707throw new CryptographicException(); 1723throw new CryptographicException(
src\libraries\Common\src\System\Security\Cryptography\SlhDsaAlgorithm.cs (1)
207throw new CryptographicException(
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (1)
566throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmName));
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (4)
662throw new CryptographicException(SR.Arg_CryptographyException, e); 666throw new CryptographicException(SR.Arg_CryptographyException, e); 674throw new CryptographicException(message) 695throw new CryptographicException(message, innerException)
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (15)
81throw new CryptographicException(SR.Cryptography_Pfx_NoCertificates); 147throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 255throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 466throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 474throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 479throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 512throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 521throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 546throw new CryptographicException( 554throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 563throw new CryptographicException( 813throw new CryptographicException(); 841throw new CryptographicException(); 871throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 953throw new CryptographicException();
System\Security\Cryptography\AesCcm.OpenSsl.cs (2)
80throw new CryptographicException(); 137throw new CryptographicException();
System\Security\Cryptography\AesGcm.OpenSsl.cs (2)
72throw new CryptographicException(); 120throw new CryptographicException();
System\Security\Cryptography\AesImplementation.cs (1)
290throw new CryptographicException(SR.Format(SR.Cryptography_CipherModeFeedbackNotSupported, feedback, CipherMode.CFB));
System\Security\Cryptography\AesImplementation.OpenSsl.cs (1)
60new CryptographicException(SR.Cryptography_InvalidKeySize)),
System\Security\Cryptography\AsymmetricAlgorithm.cs (1)
35throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (4)
85throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 157throw new CryptographicException( 178throw new CryptographicException( 200throw new CryptographicException();
System\Security\Cryptography\CapiHelper.Unix.cs (3)
62_ => throw new CryptographicException(SR.Cryptography_InvalidOID), 86return new CryptographicException(NTE_BAD_DATA); 91return new CryptographicException(E_FAIL);
System\Security\Cryptography\ChaCha20Poly1305.cs (1)
46throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\ChaCha20Poly1305.OpenSsl.cs (2)
69throw new CryptographicException(); 117throw new CryptographicException();
System\Security\Cryptography\ConcurrencyBlock.cs (1)
19throw new CryptographicException(SR.Cryptography_ConcurrentUseNotSupported);
System\Security\Cryptography\CryptographicOperations.cs (1)
809throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name));
System\Security\Cryptography\DES.cs (4)
57throw new CryptographicException(SR.Cryptography_InvalidKey_Weak, "DES"); 60throw new CryptographicException(SR.Cryptography_InvalidKey_SemiWeak, "DES"); 69throw new CryptographicException(SR.Cryptography_InvalidKeySize); 87throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\DesImplementation.cs (3)
69throw new CryptographicException(SR.Cryptography_InvalidKey_Weak, "DES"); 71throw new CryptographicException(SR.Cryptography_InvalidKey_SemiWeak, "DES"); 237throw new CryptographicException(SR.Format(SR.Cryptography_CipherModeFeedbackNotSupported, feedback, CipherMode.CFB));
System\Security\Cryptography\DSA.Xml.cs (2)
22throw new CryptographicException( 67throw new CryptographicException(
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (15)
104throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 112throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 120throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 135throw new CryptographicException(SR.Argument_InvalidValue); 167throw new CryptographicException(SR.Cryptography_InvalidKeySize); 206throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 214throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 222throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 233throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey); 235throw new CryptographicException(SR.Format(SR.Cryptography_InvalidHashSize, "SHA1", SHA1_HASHSIZE)); 239throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, str); 256throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, str); 264throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 272throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 280throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
System\Security\Cryptography\ECCurve.cs (5)
189throw new CryptographicException(SR.Cryptography_InvalidECNamedCurve); 195throw new CryptographicException(SR.Format(SR.Cryptography_InvalidCurveOid, Oid?.Value)); 223throw new CryptographicException(SR.Cryptography_InvalidECPrimeCurve); 236throw new CryptographicException(SR.Cryptography_InvalidECCharacteristic2Curve); 245throw new CryptographicException(SR.Format(SR.Cryptography_CurveNotSupported, CurveType.ToString()));
System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (1)
36throw new CryptographicException(SR.Cryptography_OpenInvalidHandle);
System\Security\Cryptography\ECDsa.cs (2)
159throw new CryptographicException(); 441throw new CryptographicException();
System\Security\Cryptography\ECDsaOpenSsl.cs (1)
36throw new CryptographicException(SR.Cryptography_OpenInvalidHandle);
System\Security\Cryptography\ECParameters.cs (1)
58throw new CryptographicException(SR.Cryptography_InvalidCurveKeyParameters);
System\Security\Cryptography\HashAlgorithmName.cs (1)
195throw new CryptographicException(SR.Format(SR.Cryptography_InvalidHashAlgorithmOid, oidValue));
System\Security\Cryptography\HashProviderDispenser.OpenSsl.cs (1)
38_ => throw new CryptographicException(),
System\Security\Cryptography\HashProviderDispenser.Unix.cs (2)
48throw new CryptographicException(); 64throw new CryptographicException();
System\Security\Cryptography\Helpers.cs (13)
44throw new CryptographicException(SR.Cryptography_MissingIV); 174throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 189throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 196throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 301throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 308throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 326throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 404_ => throw new CryptographicException(), 429throw new CryptographicException(SR.Cryptography_HashAlgorithmNameNullOrEmpty); 432throw new CryptographicException(SR.Format(SR.Cryptography_UnknownAlgorithmIdentifier, exportParameters.HashAlgorithm.Name)); 442throw new CryptographicException(SR.Cryptography_HashAlgorithmNameNullOrEmpty); 444throw new CryptographicException(SR.Format(SR.Cryptography_UnknownAlgorithmIdentifier, exportParameters.HashAlgorithm.Name)); 448throw new CryptographicException(SR.Format(SR.Cryptography_UnknownAlgorithmIdentifier, exportParameters.EncryptionAlgorithm));
System\Security\Cryptography\HMACCommon.cs (1)
101throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, _hashAlgorithmId));
System\Security\Cryptography\LiteHash.OpenSsl.cs (1)
19_ => throw new CryptographicException(),
System\Security\Cryptography\LiteHash.Unix.cs (2)
133throw new CryptographicException(); 220throw new CryptographicException();
System\Security\Cryptography\MD5CryptoServiceProvider.cs (1)
31throw new CryptographicException();
System\Security\Cryptography\MLDsaOpenSsl.OpenSsl.cs (1)
43throw new CryptographicException(SR.Cryptography_MLDsaInvalidAlgorithmHandle);
System\Security\Cryptography\MLKemImplementation.OpenSsl.cs (1)
132throw new CryptographicException();
System\Security\Cryptography\MLKemOpenSsl.OpenSsl.cs (1)
49throw new CryptographicException(SR.Cryptography_KemInvalidAlgorithmHandle);
System\Security\Cryptography\Oid.cs (2)
46throw new CryptographicException(SR.Cryptography_Oid_InvalidName); 57throw new CryptographicException(SR.Cryptography_Oid_InvalidValue);
System\Security\Cryptography\OpenSslCipherLite.cs (2)
56throw new CryptographicException(); 99throw new CryptographicException();
System\Security\Cryptography\PasswordDeriveBytes.cs (4)
77throw new CryptographicException(SR.Cryptography_PasswordDerivedBytes_ValuesFixed, nameof(HashName)); 91throw new CryptographicException(SR.Cryptography_PasswordDerivedBytes_ValuesFixed, nameof(IterationCount)); 106throw new CryptographicException(SR.Cryptography_PasswordDerivedBytes_ValuesFixed, nameof(Salt)); 263throw new CryptographicException(SR.Cryptography_PasswordDerivedBytes_TooManyBytes);
System\Security\Cryptography\PemEncoding.cs (1)
722throw new CryptographicException();
System\Security\Cryptography\PKCS1MaskGenerationMethod.cs (1)
33throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, _hashNameValue));
System\Security\Cryptography\RC2.cs (4)
45throw new CryptographicException(SR.Cryptography_RC2_EKSKS); 63throw new CryptographicException(SR.Cryptography_RC2_EKSKS); 67throw new CryptographicException(SR.Cryptography_RC2_EKS40); 73throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\RC2CryptoServiceProvider.Unix.cs (1)
87throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\RC2Implementation.cs (3)
188throw new CryptographicException(SR.Format(SR.Cryptography_CipherModeNotSupported, CipherMode.CFB)); 199throw new CryptographicException(SR.Format(SR.Cryptography_CipherModeNotSupported, CipherMode.CFB)); 205throw new CryptographicException(SR.Format(SR.Cryptography_CipherModeFeedbackNotSupported, feedback, CipherMode.CFB));
System\Security\Cryptography\Rfc2898DeriveBytes.cs (3)
251throw new CryptographicException(SR.Cryptography_HashAlgorithmNameNullOrEmpty); 263throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name)); 287throw new CryptographicException(SR.Cryptography_ExceedKdfExtractLimit);
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (1)
348throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmName));
System\Security\Cryptography\RijndaelImplementation.cs (1)
43throw new CryptographicException(SR.Cryptography_Rijndael_BlockSize);
System\Security\Cryptography\RijndaelManaged.cs (1)
39throw new CryptographicException(SR.Cryptography_Rijndael_BlockSize);
System\Security\Cryptography\RSA.cs (5)
80throw new CryptographicException(SR.Cryptography_InvalidKeySize); 917throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 965throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 1439throw new CryptographicException(SR.Argument_DestinationTooShort); 1458throw new CryptographicException(SR.Argument_DestinationTooShort);
System\Security\Cryptography\RSA.Xml.cs (1)
19throw new CryptographicException(
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (6)
48throw new CryptographicException(SR.Cryptography_RSA_DecryptWrongSize); 69throw new CryptographicException(SR.Cryptography_RSA_DecryptWrongSize); 134throw new CryptographicException(SR.Argument_InvalidValue); 261throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey); 337return new CryptographicException(SR.Cryptography_InvalidPaddingMode); 372throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name));
System\Security\Cryptography\RSAOpenSsl.cs (1)
79throw new CryptographicException(SR.Cryptography_OpenInvalidHandle);
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\SlhDsaOpenSsl.OpenSsl.cs (1)
61throw new CryptographicException(SR.Cryptography_SlhDsaInvalidAlgorithmHandle);
System\Security\Cryptography\SymmetricAlgorithm.cs (14)
36throw new CryptographicException(SR.Cryptography_InvalidFeedbackSize); 52throw new CryptographicException(SR.Cryptography_InvalidBlockSize); 76throw new CryptographicException(SR.Cryptography_InvalidIVSize); 97throw new CryptographicException(SR.Cryptography_InvalidKeySize); 115throw new CryptographicException(SR.Cryptography_InvalidKeySize); 150throw new CryptographicException(SR.Cryptography_InvalidCipherMode); 166throw new CryptographicException(SR.Cryptography_InvalidPaddingMode); 232throw new CryptographicException(SR.Cryptography_InvalidKeySize); 531throw new CryptographicException(SR.Argument_DestinationTooShort); 651throw new CryptographicException(SR.Format(SR.Cryptography_EncryptedIncorrectLength, nameof(TryEncryptEcbCore))); 781throw new CryptographicException(SR.Argument_DestinationTooShort); 938throw new CryptographicException(SR.Format(SR.Cryptography_EncryptedIncorrectLength, nameof(TryEncryptCbcCore))); 1132throw new CryptographicException(SR.Argument_DestinationTooShort); 1374throw new CryptographicException(SR.Format(SR.Cryptography_EncryptedIncorrectLength, nameof(TryEncryptCfbCore)));
System\Security\Cryptography\SymmetricPadding.cs (11)
21throw new CryptographicException(SR.Cryptography_PartialBlock); 32throw new CryptographicException(SR.Cryptography_UnknownPaddingMode); 45throw new CryptographicException(SR.Cryptography_PartialBlock); 128throw new CryptographicException(SR.Cryptography_UnknownPaddingMode); 146throw new CryptographicException(SR.Cryptography_UnknownPaddingMode); 163throw new CryptographicException(SR.Cryptography_InvalidPadding); 169throw new CryptographicException(SR.Cryptography_InvalidPadding); 180throw new CryptographicException(SR.Cryptography_InvalidPadding); 191throw new CryptographicException(SR.Cryptography_InvalidPadding); 197throw new CryptographicException(SR.Cryptography_InvalidPadding); 210throw new CryptographicException(SR.Cryptography_UnknownPaddingMode);
System\Security\Cryptography\TripleDES.cs (3)
57throw new CryptographicException(SR.Format(SR.Cryptography_InvalidKey_Weak, "TripleDES")); 66throw new CryptographicException(SR.Cryptography_InvalidKeySize); // .NET Framework compat: Strange exception for a null value, but this is what we threw in classic CLR. 69throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\TripleDesImplementation.cs (1)
234throw new CryptographicException(SR.Format(SR.Cryptography_CipherModeFeedbackNotSupported, feedback, CipherMode.CFB));
System\Security\Cryptography\UniversalCryptoDecryptor.cs (1)
72throw new CryptographicException(SR.Cryptography_PartialBlock);
System\Security\Cryptography\UniversalCryptoOneShot.cs (2)
21throw new CryptographicException(SR.Cryptography_PartialBlock); 29throw new CryptographicException(SR.Cryptography_InvalidPadding);
System\Security\Cryptography\X509Certificates\Asn1\AccessDescriptionAsn.xml.cs (3)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 55throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 72throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\BasicConstraintsAsn.xml.cs (2)
79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 96throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\CertificateAsn.xml.cs (2)
50throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 67throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\CertificatePolicyMappingAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 40throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 62throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\CertificateTemplateAsn.xml.cs (3)
33throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 62throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestAsn.xml.cs (2)
50throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 67throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (5)
35throw new CryptographicException(); 45throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 93throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 109throw new CryptographicException();
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointAsn.xml.cs (2)
75throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 92throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs (8)
44throw new CryptographicException(); 60throw new CryptographicException(); 67throw new CryptographicException(); 77throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 84throw new CryptographicException(); 100throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 112throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 151throw new CryptographicException();
System\Security\Cryptography\X509Certificates\Asn1\PolicyConstraintsAsn.xml.cs (2)
58throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 75throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 43throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 67throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 84throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.manual.cs (3)
35throw new CryptographicException(); 41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (8)
76throw new CryptographicException(); 86throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 94throw new CryptographicException(); 104throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 154throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 171throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 214throw new CryptographicException(); 222throw new CryptographicException();
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (7)
43throw new CryptographicException(); 52throw new CryptographicException(); 60throw new CryptographicException(); 76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 107throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 113throw new CryptographicException();
System\Security\Cryptography\X509Certificates\Asn1\ValidityAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\CertificatePolicy.cs (4)
300throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 332throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 363throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 386throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
662throw new CryptographicException();
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (9)
79throw new CryptographicException( 168throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 175throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 183throw new CryptographicException( 199throw new CryptographicException(SR.Cryptography_CertReq_SignatureVerificationFailed); 221throw new CryptographicException( 229throw new CryptographicException( 271throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 290throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.CdpExtension.cs (1)
96throw new CryptographicException(SR.Cryptography_Invalid_IA5String, e);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (1)
317throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (6)
54throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 103throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 119throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 163throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 192throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 291throw new CryptographicException(SR.Cryptography_NoPemOfLabel, PemLabels.X509CertificateRevocationList);
System\Security\Cryptography\X509Certificates\FindPal.cs (3)
155throw new CryptographicException(SR.Cryptography_X509_InvalidFindType); 167throw new CryptographicException(SR.Cryptography_X509_InvalidFindValue); 205throw new CryptographicException(SR.Cryptography_X509_InvalidFindValue);
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (2)
56throw new CryptographicException(); 169throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs (1)
287throw new CryptographicException();
System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs (13)
48throw new CryptographicException(SR.Arg_EmptyOrNullString); 59throw new CryptographicException(SR.Cryptography_X509_StoreNotFound); 116throw new CryptographicException(SR.Cryptography_X509_StoreReadOnly); 130throw new CryptographicException(SR.Cryptography_X509_StoreAddFailure, e); 216throw new CryptographicException(SR.Format(SR.Cryptography_InvalidFilePermissions, stream.Name)); 246throw new CryptographicException(SR.Cryptography_X509_StoreReadOnly); 316throw new CryptographicException(SR.Cryptography_X509_StoreNoFileAvailable); 343throw new CryptographicException(SR.Format(SR.Security_InvalidValue, nameof(storeName))); 348throw new CryptographicException(e.Message, e); 369throw new CryptographicException( 376throw new CryptographicException(SR.Format(SR.Cryptography_OwnerNotCurrentUser, path)); 383throw new CryptographicException(SR.Format(SR.Cryptography_InvalidDirectoryPermissions, path)); 398throw new CryptographicException(msg, new PlatformNotSupportedException(msg));
System\Security\Cryptography\X509Certificates\OpenSslExportProvider.cs (2)
30throw new CryptographicException(SR.Cryptography_OpenInvalidHandle); 67throw new CryptographicException(SR.Cryptography_InvalidHandle);
System\Security\Cryptography\X509Certificates\OpenSslPkcsFormatReader.cs (1)
218throw new CryptographicException(SR.Cryptography_X509_PKCS7_NoSigner);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (4)
67throw new CryptographicException( 97throw new CryptographicException( 395throw new CryptographicException(); 910throw new CryptographicException();
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (5)
1153throw new CryptographicException(); 1171throw new CryptographicException(); 1183throw new CryptographicException(); 1195throw new CryptographicException(); 1524throw new CryptographicException();
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (2)
91throw new CryptographicException(); 153throw new CryptographicException();
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
418throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs (1)
32throw new CryptographicException(SR.Cryptography_InvalidPaddingMode);
System\Security\Cryptography\X509Certificates\StorePal.OpenSsl.cs (4)
56throw new CryptographicException( 125throw new CryptographicException( 157throw new CryptographicException( 176throw new CryptographicException(
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (1)
97throw new CryptographicException(SR.Cryptography_Invalid_IA5String);
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (1)
60throw new CryptographicException(SR.Cryptography_X509_InvalidContentType);
System\Security\Cryptography\X509Certificates\UnsupportedDisallowedStore.cs (2)
42throw new CryptographicException(SR.Cryptography_X509_StoreReadOnly); 45throw new CryptographicException(
System\Security\Cryptography\X509Certificates\X500DirectoryStringHelper.cs (4)
16throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 33throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 43throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 60throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (1)
155throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (5)
412throw new CryptographicException(SR.Cryptography_Invalid_X500Name); 471throw new CryptographicException(SR.Cryptography_Invalid_X500Name); 522throw new CryptographicException(SR.Cryptography_Invalid_X500Name, e); 655throw new CryptographicException(SR.Cryptography_Invalid_IA5String); 659throw new CryptographicException(SR.Cryptography_Invalid_X500Name);
System\Security\Cryptography\X509Certificates\X500NameEncoder.ManagedDecode.cs (2)
145throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 179throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
System\Security\Cryptography\X509Certificates\X500RelativeDistinguishedName.cs (1)
149throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (2)
270throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 300throw new CryptographicException(SR.Cryptography_Invalid_IA5String, e);
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (2)
474throw new CryptographicException(SR.Cryptography_X509_AKID_NoSKID); 584throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\X509Certificate.cs (6)
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. 727throw new CryptographicException(SR.Format(SR.Cryptography_InvalidHandle, "m_safeCertContext")); // Keeping "m_safeCertContext" string for backward compat sake. 767throw new CryptographicException(SR.Cryptography_X509_InvalidContentType);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (10)
1291_ => throw new CryptographicException(SR.Format(SR.Cryptography_UnknownKeyAlgorithm, keyAlgorithm)), 1384_ => throw new CryptographicException(SR.Format(SR.Cryptography_UnknownKeyAlgorithm, keyAlgorithm)), 1441throw new CryptographicException(SR.Cryptography_X509_NoPemCertificate); 1455throw new CryptographicException(SR.Cryptography_X509_NoPemCertificate); 1465throw new CryptographicException(SR.Cryptography_X509_NoPemCertificate); 1639throw new CryptographicException(SR.Cryptography_X509_TooManySANs); 1814throw new CryptographicException(SR.Cryptography_X509_NoOrMismatchedPemKey, ae); 1821throw new CryptographicException(SR.Cryptography_X509_NoOrMismatchedPemKey); 1844throw new CryptographicException(SR.Cryptography_X509_NoOrMismatchedPemKey, ae); 1850throw new CryptographicException(SR.Cryptography_X509_NoOrMismatchedPemKey);
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (7)
456throw new CryptographicException(SR.Cryptography_X509_NoPemCertificate); 468throw new CryptographicException(SR.Cryptography_X509_NoPemCertificate); 503throw new CryptographicException(SR.Cryptography_X509_ExportFailed); 530throw new CryptographicException(SR.Cryptography_X509_ExportFailed); 571throw new CryptographicException(); 626throw new CryptographicException(); 745throw new CryptographicException();
System\Security\Cryptography\X509Certificates\X509CertificateLoader.OpenSsl.cs (3)
22throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 42throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 119throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (8)
365throw new CryptographicException(SR.Cryptography_Pfx_BadKeyReference); 368throw new CryptographicException(SR.Cryptography_Pfx_BadPassword) 383throw new CryptographicException( 392throw new CryptographicException(SR.Cryptography_Pfx_BadKeyReference); 580throw new CryptographicException(SR.Cryptography_NotValidPrivateKey, nse); 644throw new CryptographicException(SR.Cryptography_NotValidPrivateKey, nse); 667throw new CryptographicException(SR.Cryptography_NotValidPrivateKey, nse); 698throw new CryptographicException(SR.Cryptography_NotValidPrivateKey, nse);
System\Security\Cryptography\X509Certificates\X509Chain.cs (3)
106throw new CryptographicException(SR.Cryptography_CustomTrustCertsInSystemMode); 112throw new CryptographicException(SR.Cryptography_InvalidTrustCertificate); 187throw new CryptographicException(SR.Cryptography_X509_ChainBuildingFailed);
System\Security\Cryptography\X509Certificates\X509EnhancedKeyUsageExtension.cs (1)
102throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\X509KeyUsageExtension.cs (1)
76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\X509Store.cs (4)
90throw new CryptographicException(SR.Cryptography_X509_StoreNotOpen); 131throw new CryptographicException(SR.Cryptography_X509_StoreNotOpen); 134throw new CryptographicException(SR.Cryptography_InvalidHandle, "pCertContext"); 169throw new CryptographicException(SR.Cryptography_X509_StoreNotOpen);
System\Security\Cryptography\X509Certificates\X509SubjectAlternativeNameExtension.cs (2)
104throw new CryptographicException( 116throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (2)
114throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 119throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\XmlKeyHelper.cs (2)
25throw new CryptographicException(SR.Cryptography_FromXmlParseError, e); 149throw new CryptographicException();
System.Security.Cryptography.Cose (31)
System\Security\Cryptography\Cose\CoseHelpers.cs (5)
138throw new CryptographicException(); 159throw new CryptographicException(); 269_ => throw new CryptographicException(SR.Format(SR.Sign1AlgDoesNotMatchWithTheOnesSupportedByTypeOfKey, algorithm, typeof(ECDsa))) 280_ => throw new CryptographicException(SR.Format(SR.Sign1AlgDoesNotMatchWithTheOnesSupportedByTypeOfKey, algorithm, typeof(RSA))) 315throw new CryptographicException(SR.Sign1VerifyAlgIsRequired);
System\Security\Cryptography\Cose\CoseMessage.cs (18)
127throw new CryptographicException(SR.Format(SR.DecodeSign1IncorrectTag, tag)); 134throw new CryptographicException(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeMessageContainedTrailingData)); 143throw new CryptographicException(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeSign1ArrayLengthMustBeFour)); 154throw new CryptographicException(SR.Sign1SignHeaderDuplicateLabels); 167throw new CryptographicException(SR.DecodeErrorWhileDecodingSeeInnerEx, ex); 212throw new CryptographicException(SR.Format(SR.DecodeMultiSignIncorrectTag, tag)); 219throw new CryptographicException(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeMessageContainedTrailingData)); 228throw new CryptographicException(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeMultiSignArrayLengthMustBeFour)); 239throw new CryptographicException(SR.Sign1SignHeaderDuplicateLabels); 252throw new CryptographicException(SR.DecodeErrorWhileDecodingSeeInnerEx, ex); 278throw new CryptographicException(SR.Format(SR.CriticalHeaderMissing, labelName)); 285throw new CryptographicException(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeSign1EncodedProtectedMapIncorrect)); 303_ => throw new CryptographicException(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeSign1MapLabelWasIncorrect)) 325throw new CryptographicException(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeSign1PayloadWasIncorrect)); 348throw new CryptographicException(SR.Format(SR.DecodeErrorWhileDecoding, SR.MultiSignMessageMustCarryAtLeastOneSignature)); 362throw new CryptographicException(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeCoseSignatureMustBeArrayOfThree)); 373throw new CryptographicException(SR.Sign1SignHeaderDuplicateLabels); 574_ => throw new CryptographicException(SR.CriticalHeadersLabelWasIncorrect)
System\Security\Cryptography\Cose\CoseSign1Message.cs (2)
581throw new CryptographicException(SR.Sign1VerifyAlgHeaderWasIncorrect); 675throw new CryptographicException(SR.Sign1VerifyAlgHeaderWasIncorrect);
System\Security\Cryptography\Cose\CoseSignature.cs (2)
365throw new CryptographicException(SR.Sign1VerifyAlgHeaderWasIncorrect); 398throw new CryptographicException(SR.Sign1VerifyAlgHeaderWasIncorrect);
System\Security\Cryptography\Cose\KnownCoseAlgorithms.cs (4)
30throw new CryptographicException(SR.Format(SR.Sign1UnknownCoseAlgorithm, alg)); 35=> throw new CryptographicException(SR.Format(SR.Sign1UnknownCoseAlgorithm, alg)); 38=> throw new CryptographicException(SR.Format(SR.Sign1UnknownCoseAlgorithm, BigInteger.MinusOne - new BigInteger(alg))); 53_ => throw new CryptographicException(SR.Format(SR.Sign1UnknownCoseAlgorithm, algString))
System.Security.Cryptography.Pkcs (421)
Internal\Cryptography\Pal\AnyOS\AsnHelpers.cs (2)
120throw new CryptographicException(); 127throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Asn.cs (1)
35throw new CryptographicException(SR.Cryptography_Cms_InvalidMessageType);
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (7)
59throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 63throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 101throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 116throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 126throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 131throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 197throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, algorithmIdentifier);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (2)
74throw new CryptographicException(); 98throw new CryptographicException(SR.Cryptography_Cms_InvalidMessageType);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (3)
51exception = new CryptographicException(SR.Cryptography_Cms_Ktri_RSARequired); 84exception = new CryptographicException( 168throw new CryptographicException(SR.Cryptography_Cms_InvalidSymmetricKey, ce);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (2)
114_ => throw new CryptographicException( 195throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Exceptions.cs (2)
13return new CryptographicException(SR.Cryptography_Cms_RecipientNotFound); 34return new CryptographicException(SR.Cryptography_Cms_InvalidMessageType);
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (7)
47exception = new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 54exception = new CryptographicException( 86exception = new CryptographicException( 135throw new CryptographicException( 169throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm); 189exception = new CryptographicException(SR.Cryptography_Cms_Signing_RequiresPrivateKey); 204exception = new CryptographicException();
Internal\Cryptography\PkcsHelpers.cs (8)
67throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, oidValue); 210throw new CryptographicException(); 311throw new CryptographicException(); // This just keeps the compiler happy. We don't expect to reach this. 347exception = new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 360exception = new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 368exception = new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 377exception = new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 396exception = new CryptographicException(
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (14)
70throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 98throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 120throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 127throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 135throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 185throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 200throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 207throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 235throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, algName.Name); 310throw new CryptographicException(ex.Message, ex); 326throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 333throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 392throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 43throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 67throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 84throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (4)
33throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 45throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 70throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 87throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (11)
49throw new CryptographicException(); 58throw new CryptographicException(); 67throw new CryptographicException(); 74throw new CryptographicException(); 84throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 92throw new CryptographicException(); 101throw new CryptographicException(); 109throw new CryptographicException(); 125throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 137throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 172throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (2)
57throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 74throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (17)
57throw new CryptographicException(); 66throw new CryptographicException(); 75throw new CryptographicException(); 84throw new CryptographicException(); 91throw new CryptographicException(); 101throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 109throw new CryptographicException(); 118throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 127throw new CryptographicException(); 136throw new CryptographicException(); 145throw new CryptographicException(); 154throw new CryptographicException(); 162throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 169throw new CryptographicException(); 185throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 197throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 267throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\OaepParamsAsn.xml.cs (2)
116throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 133throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (2)
83throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 100throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (6)
43throw new CryptographicException(); 52throw new CryptographicException(); 60throw new CryptographicException(); 76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 122throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (2)
81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 98throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (3)
49throw new CryptographicException( 55throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 83throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (2)
55throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 72throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (4)
34throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 43throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 96throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (17)
49throw new CryptographicException(); 56throw new CryptographicException(); 66throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 74throw new CryptographicException(); 81throw new CryptographicException(); 91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 99throw new CryptographicException(); 106throw new CryptographicException(); 116throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 124throw new CryptographicException(); 131throw new CryptographicException(); 141throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 149throw new CryptographicException(); 157throw new CryptographicException(); 173throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 185throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 226throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncapsulatedContentInfoAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 44throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 69throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 86throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (3)
33throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 62throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (2)
63throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 80throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\IssuerAndSerialNumberAsn.xml.cs (5)
31throw new CryptographicException(); 41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 95throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\OtherCertificateFormat.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 40throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 62throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignedDataAsn.xml.cs (3)
67throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 102throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 119throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (6)
43throw new CryptographicException(); 52throw new CryptographicException(); 60throw new CryptographicException(); 76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 122throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (4)
43throw new CryptographicException(); 53throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 92throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 109throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (2)
65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 82throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (5)
16throw new CryptographicException(SR.Cryptography_Pkcs_InvalidSignatureParameters); 21throw new CryptographicException( 28throw new CryptographicException(SR.Cryptography_Pkcs_InvalidSignatureParameters); 37throw new CryptographicException( 53throw new CryptographicException(
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (2)
149throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 166throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (3)
47throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 83throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 100throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (2)
233throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 247throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
63throw new CryptographicException(SR.Cryptography_Pkcs9_MultipleSigningTimeNotAllowed);
src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (2)
112_ => throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashOid)), 156throw new CryptographicException(
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (8)
49throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 54throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 80throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 85throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 121throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 129throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 148throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 157throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (11)
113throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 142throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 149throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 298throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 329throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 356throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 379throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 398throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 411throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 434throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 447throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (38)
20return new CryptographicException(SR.Cryptography_AlgKdfRequiresChars, algId); 46throw new CryptographicException( 61throw new CryptographicException( 79throw new CryptographicException( 142throw new CryptographicException( 242throw new CryptographicException( 274throw new CryptographicException( 301throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, prf.Name); 388throw new CryptographicException(); 417throw new CryptographicException(); 517throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 524throw new CryptographicException( 573throw new CryptographicException( 597throw new CryptographicException(); 602throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 622throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 637throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 644throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 654throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 673throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 682throw new CryptographicException(SR.Cryptography_UnknownAlgorithmIdentifier, algId); 692throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 708throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 715throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 727throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 736throw new CryptographicException( 745throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 754_ => throw new CryptographicException( 765throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 793throw new CryptographicException(SR.Argument_InvalidValue, e); 816throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 823throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 828throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 867throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 877throw new CryptographicException(); 996throw new CryptographicException(); 1009throw new CryptographicException(); 1095throw new CryptographicException(SR.Argument_InvalidValue);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
215throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (2)
95throw new CryptographicException(SR.Argument_InvalidOidValue); 112throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (4)
66throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 98throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 104throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 150throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (6)
59throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 220throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 228throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 233throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 303throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 499throw new CryptographicException();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (3)
91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 192throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 223throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (4)
101throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 186throw new CryptographicException(); 284throw new CryptographicException(); 301throw new CryptographicException();
System\Security\Cryptography\Pkcs\Asn1\CadesIssuerSerial.xml.cs (2)
56throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 73throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\EnvelopedDataAsn.xml.cs (2)
79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 96throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\EssCertId.xml.cs (2)
53throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 70throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\EssCertIdV2.xml.cs (2)
81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 98throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (6)
43throw new CryptographicException(); 52throw new CryptographicException(); 60throw new CryptographicException(); 76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 113throw new CryptographicException();
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (2)
71throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\KeyTransRecipientInfoAsn.xml.cs (2)
52throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 69throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\MessageImprint.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (7)
45throw new CryptographicException(); 54throw new CryptographicException(); 63throw new CryptographicException(); 71throw new CryptographicException(); 87throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 99throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 140throw new CryptographicException();
System\Security\Cryptography\Pkcs\Asn1\OriginatorInfoAsn.xml.cs (3)
53throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 80throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 97throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\OriginatorPublicKeyAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\OtherKeyAttributeAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 43throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 67throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 84throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\PkiStatusInfo.xml.cs (4)
36throw new CryptographicException(); 46throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 93throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\PolicyInformation.xml.cs (3)
33throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 68throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 85throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\PolicyQualifierInfo.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 40throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 62throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\RecipientEncryptedKeyAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (6)
43throw new CryptographicException(); 52throw new CryptographicException(); 60throw new CryptographicException(); 76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 122throw new CryptographicException();
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (6)
43throw new CryptographicException(); 52throw new CryptographicException(); 60throw new CryptographicException(); 76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 113throw new CryptographicException();
System\Security\Cryptography\Pkcs\Asn1\RecipientKeyIdentifier.xml.cs (2)
60throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 77throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161Accuracy.xml.cs (2)
65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 82throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (3)
56throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 112throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 129throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampResp.xml.cs (3)
36throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 60throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 77throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (3)
56throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 127throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 144throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (5)
42throw new CryptographicException(); 57throw new CryptographicException(); 73throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 85throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 116throw new CryptographicException();
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateAsn.xml.cs (2)
68throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 85throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateV2Asn.xml.cs (2)
68throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 85throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\CmsRecipient.cs (2)
59throw new CryptographicException(SR.Format(SR.Cryptography_Cms_Invalid_Subject_Identifier_Type, recipientIdentifierType)); 83throw new CryptographicException(SR.Cryptography_Cms_Recipient_RSARequired_RSAPaddingModeSupplied);
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (1)
60throw new CryptographicException(
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (1)
61throw new CryptographicException(
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (4)
62throw new CryptographicException( 196throw new CryptographicException(SR.Cryptography_Pkcs_InvalidSignatureParameters); 301throw new CryptographicException(SR.Cryptography_Pkcs_PssParametersMissing); 308throw new CryptographicException(
System\Security\Cryptography\Pkcs\CmsSigner.cs (5)
193throw new CryptographicException(SR.Cryptography_Cms_Signing_RequiresPrivateKey); 216throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmName), ex); 299throw new CryptographicException(); 336throw new CryptographicException(SR.Cryptography_Cms_CannotDetermineSignatureAlgorithm); 379throw new CryptographicException(SR.Cryptography_Cms_IncompleteCertChain);
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (9)
70throw new CryptographicException(); 107throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 119throw new CryptographicException( 134throw new CryptographicException(SR.Cryptography_TimestampReq_BadResponse); 396throw new CryptographicException(SR.Cryptography_BadHashValue); 409throw new CryptographicException(SR.Cryptography_TimestampReq_BadResponse); 432throw new CryptographicException(SR.Cryptography_TimestampReq_BadNonce); 453throw new CryptographicException(SR.Cryptography_TimestampReq_NoCertFound); 468throw new CryptographicException(SR.Cryptography_TimestampReq_UnexpectedCertFound);
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (2)
67throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 291throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
System\Security\Cryptography\Pkcs\SignedCms.cs (11)
230throw new CryptographicException(SR.Cryptography_Cms_InvalidMessageType); 271throw new CryptographicException(); 281throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 310throw new CryptographicException(SR.Cryptography_Cms_Sign_Empty_Content); 319throw new CryptographicException(SR.Cryptography_Cms_Sign_No_Signature_First_Signer); 415throw new CryptographicException(SR.Cryptography_Cms_SignerNotFound); 447throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 623throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 649throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 683throw new CryptographicException(SR.Cryptography_Cms_CertificateAlreadyInCollection); 732throw new CryptographicException(SR.Cryptography_Cms_NoCertificateFound);
System\Security\Cryptography\Pkcs\SignerInfo.cs (23)
112throw new CryptographicException(SR.Cryptography_Cms_SignerNotFound); 130throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 138throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 174throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 243throw new CryptographicException(SR.Cryptography_Cms_NoAttributeFound); 295throw new CryptographicException(SR.Cryptography_Cms_NoCounterCounterSigner); 305throw new CryptographicException(SR.Cryptography_Cms_SignerNotFound); 363throw new CryptographicException(SR.Cryptography_Cms_SignerNotFound); 371throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 404throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 435throw new CryptographicException(SR.Cryptography_Cms_SignerNotFound); 443throw new CryptographicException(SR.Cryptography_Cms_SignerNotFound); 464throw new CryptographicException(SR.Cryptography_Cms_SignerNotFound); 475throw new CryptographicException(SR.Cryptography_Pkcs_InvalidSignatureParameters); 480throw new CryptographicException(SR.Cryptography_BadSignature); 574throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmName), ex); 642throw new CryptographicException(SR.Cryptography_BadHashValue); 649throw new CryptographicException(SR.Cryptography_BadHashValue); 684throw new CryptographicException(SR.Cryptography_Cms_MissingAuthenticatedAttribute); 703throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, SignatureAlgorithm.Value); 712throw new CryptographicException(SR.Cryptography_BadSignature); 727throw new CryptographicException(SR.Cryptography_Cms_TrustFailure, status.StatusInformation); 757throw new CryptographicException(SR.Cryptography_Cms_WrongKeyUsage);
System\Security\Cryptography\Pkcs\SubjectIdentifier.cs (3)
94throw new CryptographicException(); 132throw new CryptographicException(); 167throw new CryptographicException();
System.Security.Cryptography.ProtectedData (2)
src\libraries\Common\src\System\Security\Cryptography\CryptoThrowHelper.Windows.cs (1)
29return new CryptographicException(message)
System\Security\Cryptography\ProtectedData.cs (1)
368throw new CryptographicException(SR.Cryptography_DpApi_ProfileMayNotBeLoaded);
System.Security.Cryptography.Xml (151)
System\Security\Cryptography\Xml\CipherData.cs (5)
45throw new CryptographicException(SR.Cryptography_Xml_CipherValueElementRequired); 61throw new CryptographicException(SR.Cryptography_Xml_CipherValueElementRequired); 91throw new CryptographicException(SR.Cryptography_Xml_CipherValueElementRequired); 111throw new CryptographicException(SR.Cryptography_Xml_CipherValueElementRequired); 121throw new CryptographicException(SR.Cryptography_Xml_CipherValueElementRequired);
System\Security\Cryptography\Xml\CipherReference.cs (2)
55throw new CryptographicException(SR.Cryptography_Xml_ReferenceTypeRequired); 77Uri = uri ?? throw new CryptographicException(SR.Cryptography_Xml_UriRequired);
System\Security\Cryptography\Xml\DSAKeyValue.cs (6)
155throw new CryptographicException(SR.Format(SR.WrongRootElement, KeyValueElementName, SignedXml.XmlDsigNamespaceUrl)); 165throw new CryptographicException(SR.Format(SR.MustContainChildElement, KeyValueElementName, DSAKeyValueElementName)); 170throw new CryptographicException(SR.Format(SR.ElementMissing, YElementName)); 176throw new CryptographicException(SR.Format(SR.ElementCombinationMissing, PElementName, QElementName)); 185throw new CryptographicException(SR.Format(SR.ElementCombinationMissing, SeedElementName, PgenCounterElementName)); 202throw new CryptographicException($"An error occurred parsing the key components", ex);
System\Security\Cryptography\Xml\EncryptedData.cs (2)
42throw new CryptographicException(SR.Cryptography_Xml_MissingCipherData); 102throw new CryptographicException(SR.Cryptography_Xml_MissingCipherData);
System\Security\Cryptography\Xml\EncryptedKey.cs (2)
82throw new CryptographicException(SR.Cryptography_Xml_MissingCipherData); 179throw new CryptographicException(SR.Cryptography_Xml_MissingCipherData);
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
91throw new CryptographicException(SR.Cryptography_Xml_ReferenceTypeRequired);
System\Security\Cryptography\Xml\EncryptedXml.cs (21)
200throw new CryptographicException(SR.Cryptography_Xml_UriNotSupported); 210throw new CryptographicException(SR.Cryptography_Xml_UriNotSupported); 221throw new CryptographicException(SR.Cryptography_Xml_UriNotSupported); 228throw new CryptographicException(SR.Cryptography_Xml_UriNotSupported); 234throw new CryptographicException(SR.Cryptography_Xml_UriNotResolved, cipherData.CipherReference.Uri); 253throw new CryptographicException(SR.Cryptography_Xml_MissingCipherData); 276throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 292throw new CryptographicException(SR.Cryptography_Xml_UriNotSupported); 369throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 374throw new CryptographicException(SR.Cryptography_Xml_MissingDecryptionKey); 379throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 417throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 441throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 488throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 493throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 515throw new CryptographicException(SR.Cryptography_Xml_NotSupportedCryptographicTransform); 578throw new CryptographicException(SR.Cryptography_Xml_MissingEncryptionKey); 621throw new CryptographicException(SR.Cryptography_Xml_NotSupportedCryptographicTransform); 661throw new CryptographicException(SR.Cryptography_Xml_MissingDecryptionKey); 875throw new CryptographicException(SR.Cryptography_Xml_NotSupportedCryptographicTransform); 917throw new CryptographicException(SR.Cryptography_Xml_NotSupportedCryptographicTransform);
System\Security\Cryptography\Xml\EncryptionProperty.cs (3)
24throw new CryptographicException(SR.Cryptography_Xml_InvalidEncryptionProperty); 49throw new CryptographicException(SR.Cryptography_Xml_InvalidEncryptionProperty); 84throw new CryptographicException(SR.Cryptography_Xml_InvalidEncryptionProperty);
System\Security\Cryptography\Xml\KeyInfo.cs (2)
70throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfo"); 85throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfo/KeyValue");
System\Security\Cryptography\Xml\KeyInfoEncryptedKey.cs (2)
31throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfoEncryptedKey"); 38throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfoEncryptedKey");
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (4)
68throw new CryptographicException(SR.Cryptography_Partial_Chain); 89throw new CryptographicException(SR.Cryptography_Partial_Chain); 289throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "X509Data"); 302throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "IssuerSerial");
System\Security\Cryptography\Xml\Reference.cs (20)
187throw new CryptographicException(SR.Cryptography_Xml_DigestMethodRequired); 196throw new CryptographicException(SR.Cryptography_Xml_DigestValueRequired); 217throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference"); 230throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms"); 236throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms"); 243throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms"); 247throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms"); 255throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 260throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 314throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/DigestMethod"); 318throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/DigestMethod"); 324throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/DigestValue"); 328throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/DigestValue"); 332throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference"); 361throw new CryptographicException(SR.Cryptography_Xml_CreateHashAlgorithmFailed); 397throw new CryptographicException(SR.Format(SR.Cryptography_Xml_SelfReferenceRequiresContext, _uri)); 413throw new CryptographicException(SR.Format(SR.Cryptography_Xml_SelfReferenceRequiresContext, _uri)); 446throw new CryptographicException(SR.Cryptography_Xml_InvalidReference); 467throw new CryptographicException(SR.Cryptography_Xml_UriNotResolved, _uri); 476throw new CryptographicException(SR.Cryptography_Xml_UriNotResolved, _uri);
System\Security\Cryptography\Xml\RSAKeyValue.cs (3)
110throw new CryptographicException(SR.Format(SR.WrongRootElement, KeyValueElementName, SignedXml.XmlDsigNamespaceUrl)); 120throw new CryptographicException(SR.Format(SR.MustContainChildElement, KeyValueElementName, RSAKeyValueElementName)); 133throw new CryptographicException($"An error occurred parsing the {ModulusElementName} and {ExponentElementName} elements", ex);
System\Security\Cryptography\Xml\Signature.cs (9)
101throw new CryptographicException(SR.Cryptography_Xml_SignedInfoRequired); 107throw new CryptographicException(SR.Cryptography_Xml_SignatureValueRequired); 141throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Signature"); 146throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Signature"); 155throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo"); 165throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignatureValue"); 171throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignatureValue"); 180throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfo"); 221throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Signature");
System\Security\Cryptography\Xml\SignedInfo.cs (11)
103throw new CryptographicException(SR.Format(SR.Cryptography_Xml_CreateTransformFailed, CanonicalizationMethod)); 177throw new CryptographicException(SR.Cryptography_Xml_SignatureMethodRequired); 194throw new CryptographicException(SR.Cryptography_Xml_ReferenceElementRequired); 212throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo"); 221throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo"); 226throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo/CanonicalizationMethod"); 231throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo/CanonicalizationMethod"); 239throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo/SignatureMethod"); 244throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo/SignatureMethod"); 260throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo/Reference"); 273throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo");
System\Security\Cryptography\Xml\SignedXml.cs (18)
391throw new CryptographicException(SR.Cryptography_Xml_LoadKeyFailed); 407throw new CryptographicException(SR.Cryptography_Xml_CreatedKeyFailed); 414throw new CryptographicException(SR.Cryptography_Xml_SignatureDescriptionNotCreated); 417throw new CryptographicException(SR.Cryptography_Xml_CreateHashAlgorithmFailed); 435throw new CryptographicException(SR.Cryptography_Xml_SignatureMethodKeyMismatch); 444throw new CryptographicException(SR.Cryptography_Xml_InvalidSignatureLength); 446throw new CryptographicException(SR.Cryptography_Xml_InvalidSignatureLength2); 457_ => throw new CryptographicException(SR.Cryptography_Xml_SignatureMethodKeyMismatch), 473throw new CryptographicException(SR.Cryptography_Xml_KeyInfoRequired); 587throw new CryptographicException( 843throw new CryptographicException(SR.Cryptography_Xml_InvalidReference); 1016throw new CryptographicException(SR.Cryptography_Xml_SignatureDescriptionNotCreated); 1025throw new CryptographicException(SR.Cryptography_Xml_CreateHashAlgorithmFailed); 1053throw new CryptographicException(SR.Cryptography_Xml_InvalidSignatureLength); 1055throw new CryptographicException(SR.Cryptography_Xml_InvalidSignatureLength2); 1057throw new CryptographicException(SR.Cryptography_Xml_SignatureValueRequired); 1059throw new CryptographicException(SR.Cryptography_Xml_InvalidSignatureLength); 1095throw new CryptographicException(SR.Cryptography_Xml_InvalidReference);
System\Security\Cryptography\Xml\SymmetricKeyWrap.cs (6)
76throw new CryptographicException(SR.Cryptography_Xml_KW_BadKeySize); 108throw new CryptographicException(SR.Cryptography_Xml_BadWrappedKeySize); 126throw new CryptographicException(SR.Cryptography_Xml_KW_BadKeySize); 188throw new CryptographicException(SR.Cryptography_Xml_KW_BadKeySize); 210throw new CryptographicException(SR.Cryptography_Xml_BadWrappedKeySize); 241throw new CryptographicException(SR.Cryptography_Xml_BadWrappedKeySize);
System\Security\Cryptography\Xml\TransformChain.cs (7)
95throw new CryptographicException(SR.Cryptography_Xml_TransformIncorrectInputType); 111throw new CryptographicException(SR.Cryptography_Xml_TransformIncorrectInputType); 127throw new CryptographicException(SR.Cryptography_Xml_TransformIncorrectInputType); 130throw new CryptographicException(SR.Cryptography_Xml_TransformIncorrectInputType); 151throw new CryptographicException(SR.Cryptography_Xml_TransformIncorrectInputType); 181throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Transforms"); 190throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform);
System\Security\Cryptography\Xml\Utils.cs (2)
321throw new CryptographicException(SR.Cryptography_Xml_InvalidReference); 340throw new CryptographicException(SR.Cryptography_Xml_InvalidReference);
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (5)
89throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 101throw new CryptographicException(SR.Cryptography_Xml_UriRequired); 104throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 111throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 207throw new CryptographicException(SR.Cryptography_Xml_MissingDecryptionKey);
System\Security\Cryptography\Xml\XmlDsigC14NTransform.cs (1)
40throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform);
System\Security\Cryptography\Xml\XmlDsigEnvelopedSignatureTransform.cs (4)
50throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 87throw new CryptographicException(SR.Cryptography_Xml_EnvelopedSignatureRequiresContext); 98throw new CryptographicException(SR.Cryptography_Xml_EnvelopedSignatureRequiresContext); 117throw new CryptographicException(SR.Cryptography_Xml_EnvelopedSignatureRequiresContext);
System\Security\Cryptography\Xml\XmlDsigExcC14NTransform.cs (2)
61throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 68throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform);
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (4)
39throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 56throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 77throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 83throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform);
System\Security\Cryptography\Xml\XmlDsigXsltTransform.cs (3)
52throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 63throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 72throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform);
System\Security\Cryptography\Xml\XmlLicenseTransform.cs (6)
85throw new CryptographicException(SR.Cryptography_Xml_XrmlUnableToDecryptGrant); 126throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 133throw new CryptographicException(SR.Cryptography_Xml_XrmlMissingContext); 149throw new CryptographicException(SR.Cryptography_Xml_XrmlMissingIssuer); 157throw new CryptographicException(SR.Cryptography_Xml_XrmlMissingLicence); 177throw new CryptographicException(SR.Cryptography_Xml_XrmlMissingIRelDecryptor);
653 references to CryptographicException
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94catch (CryptographicException exception) when (exception.HResult == UserCancelledErrorCode)
Infrastructure.Common (3)
CertificateManager.cs (3)
57catch(CryptographicException) 114catch (CryptographicException inner) 155catch (CryptographicException inner)
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\OpaqueRedirection.cs (1)
81catch (CryptographicException ex)
Microsoft.AspNetCore.Components.Server.Tests (6)
ProtectedBrowserStorageTest.cs (6)
193var ex = await Assert.ThrowsAsync<CryptographicException>( 213var ex = await Assert.ThrowsAsync<CryptographicException>( 230var ex = await Assert.ThrowsAsync<CryptographicException>(
Microsoft.AspNetCore.Cryptography.Internal.Tests (4)
src\DataProtection\shared\test\ExceptionAssert2.cs (4)
13/// Verifies that the code throws a <see cref="CryptographicException"/>. 16/// <returns>The <see cref="CryptographicException"/> that was thrown, when successful</returns> 18public static CryptographicException ThrowsCryptographicException(Action testCode) 20return Assert.Throws<CryptographicException>(testCode);
Microsoft.AspNetCore.Cryptography.KeyDerivation.Tests (4)
src\DataProtection\shared\test\ExceptionAssert2.cs (4)
13/// Verifies that the code throws a <see cref="CryptographicException"/>. 16/// <returns>The <see cref="CryptographicException"/> that was thrown, when successful</returns> 18public static CryptographicException ThrowsCryptographicException(Action testCode) 20return Assert.Throws<CryptographicException>(testCode);
Microsoft.AspNetCore.DataProtection (10)
Error.cs (8)
29public static CryptographicException CryptCommon_GenericError(Exception? inner = null) 34public static CryptographicException CryptCommon_PayloadInvalid() 52public static CryptographicException Common_EncryptionFailed(Exception? inner = null) 57public static CryptographicException Common_KeyNotFound(Guid id) 63public static CryptographicException Common_KeyRevoked(Guid id) 74public static CryptographicException DecryptionFailed(Exception inner) 79public static CryptographicException ProtectionProvider_BadMagicHeader() 84public static CryptographicException ProtectionProvider_BadVersion()
src\DataProtection\shared\src\ExceptionExtensions.cs (1)
17return !(ex is CryptographicException);
XmlEncryption\CertificateResolver.cs (1)
46catch (CryptographicException)
Microsoft.AspNetCore.DataProtection.Abstractions (5)
DataProtectionCommonExtensions.cs (1)
180/// <exception cref="System.Security.Cryptography.CryptographicException">
Error.cs (2)
12public static CryptographicException CryptCommon_GenericError(Exception? inner = null) 17public static CryptographicException CryptCommon_PayloadInvalid()
IDataProtector.cs (1)
25/// <exception cref="System.Security.Cryptography.CryptographicException">
src\DataProtection\shared\src\ExceptionExtensions.cs (1)
17return !(ex is CryptographicException);
Microsoft.AspNetCore.DataProtection.Abstractions.Tests (6)
DataProtectionCommonExtensionsTests.cs (6)
250var ex = Assert.Throws<CryptographicException>(() => 278var ex = Assert.Throws<CryptographicException>(() => 292var ex = Assert.Throws<CryptographicException>(() =>
Microsoft.AspNetCore.DataProtection.Extensions (3)
DataProtectionAdvancedExtensions.cs (1)
85/// <exception cref="System.Security.Cryptography.CryptographicException">
ITimeLimitedDataProtector.cs (1)
51/// <exception cref="System.Security.Cryptography.CryptographicException">
src\DataProtection\shared\src\ExceptionExtensions.cs (1)
17return !(ex is CryptographicException);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (13)
DataProtectionProviderTests.cs (1)
199Assert.Throws<CryptographicException>(() => keylessUnprotector.Unprotect(data));
src\DataProtection\shared\test\ExceptionAssert2.cs (4)
13/// Verifies that the code throws a <see cref="CryptographicException"/>. 16/// <returns>The <see cref="CryptographicException"/> that was thrown, when successful</returns> 18public static CryptographicException ThrowsCryptographicException(Action testCode) 20return Assert.Throws<CryptographicException>(testCode);
TimeLimitedDataProtectorTests.cs (8)
105var ex = Assert.Throws<CryptographicException>(() 126var ex = Assert.Throws<CryptographicException>(() 143var ex = Assert.Throws<CryptographicException>(() 170Assert.Throws<CryptographicException>(() => ephemeralProtector.Unprotect(timeLimitedProtectedPayload)); 171Assert.Throws<CryptographicException>(() => timeLimitedProtector.Unprotect(ephemeralProtectedPayload, out actualExpiration));
Microsoft.AspNetCore.DataProtection.Tests (32)
Cng\CbcAuthenticatedEncryptorTests.cs (4)
52Assert.Throws<CryptographicException>(() => 61Assert.Throws<CryptographicException>(() => 69Assert.Throws<CryptographicException>(() => 76Assert.Throws<CryptographicException>(() =>
Cng\GcmAuthenticatedEncryptorTests.cs (4)
46Assert.Throws<CryptographicException>(() => 55Assert.Throws<CryptographicException>(() => 63Assert.Throws<CryptographicException>(() => 70Assert.Throws<CryptographicException>(() =>
EphemeralDataProtectionProviderTests.cs (2)
23Assert.ThrowsAny<CryptographicException>(() => 40Assert.ThrowsAny<CryptographicException>(() =>
KeyManagement\KeyRingBasedDataProtectorTests.cs (8)
122var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Protect(new byte[0])); 154var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(badProtectedPayload)); 172var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(badProtectedPayload)); 190var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(badProtectedPayload)); 221var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(protectedData)); 274var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(protectedData)); 310var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(protectedData)); 408var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(protectedData));
Managed\ManagedAuthenticatedEncryptorTests.cs (4)
47Assert.Throws<CryptographicException>(() => 56Assert.Throws<CryptographicException>(() => 64Assert.Throws<CryptographicException>(() => 71Assert.Throws<CryptographicException>(() =>
src\DataProtection\shared\test\ExceptionAssert2.cs (4)
13/// Verifies that the code throws a <see cref="CryptographicException"/>. 16/// <returns>The <see cref="CryptographicException"/> that was thrown, when successful</returns> 18public static CryptographicException ThrowsCryptographicException(Action testCode) 20return Assert.Throws<CryptographicException>(testCode);
XmlEncryption\EncryptedXmlDecryptorTests.cs (6)
24var ex = Assert.Throws<CryptographicException>(() => 42var ex = Assert.Throws<CryptographicException>(() => 60var ex = Assert.Throws<CryptographicException>(() =>
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94catch (CryptographicException exception) when (exception.HResult == UserCancelledErrorCode)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
ProtectedPrerenderComponentApplicationStateTest.cs (1)
69Assert.Throws<CryptographicException>(() =>
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\ClientCertLoader.cs (1)
282catch (CryptographicException exception)
RequestProcessing\Request.cs (1)
386catch (CryptographicException ce)
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Middleware\HttpsConnectionMiddleware.cs (2)
265catch (Exception exception) when (exception is CryptographicException || exception is SecurityException) 306catch (CryptographicException ex)
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94catch (CryptographicException exception) when (exception.HResult == UserCancelledErrorCode)
TlsConfigurationLoader.cs (1)
168catch (CryptographicException)
Microsoft.AspNetCore.Server.Kestrel.Tests (4)
KestrelConfigurationLoaderTests.cs (4)
418Assert.ThrowsAny<CryptographicException>(() => serverOptions.ConfigurationLoader.Reload()); 649var ex = Assert.Throws<CryptographicException>(() => 683Assert.IsAssignableFrom<CryptographicException>(ex.InnerException);
Microsoft.Build.Tasks.Core (3)
BootstrapperUtil\BootstrapperBuilder.cs (1)
2170catch (System.Security.Cryptography.CryptographicException)
ManifestUtil\mansign2.cs (1)
860catch (CryptographicException)
SignFile.cs (1)
82catch (CryptographicException ex)
Microsoft.DotNet.SignTool.Tests (1)
StrongNameSupportHelper.cs (1)
20catch (CryptographicException)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
865[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.CryptographicException))]
netstandard (1)
netstandard.cs (1)
1855[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.CryptographicException))]
PresentationUI (4)
MS\Internal\Documents\DocumentSignatureManager.cs (4)
499catch (CryptographicException) 590catch (CryptographicException e) 1200private int GetErrorCode(CryptographicException ce) 1205Type t = typeof(CryptographicException);
System.Net.Quic (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
122static CryptographicException Fail(int result)
System.Net.Security (4)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
122static CryptographicException Fail(int result)
System\Net\CertificateValidationPal.cs (1)
74if (exception is CryptographicException || exception is SecurityException)
System\Net\Security\SslStream.Protocol.cs (2)
268catch (CryptographicException) 295catch (CryptographicException) { }
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
738[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.CryptographicException))]
System.Security.Cryptography (479)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
122static CryptographicException Fail(int result)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.KemAlgs.cs (1)
47static CryptographicException Fail(int result)
src\libraries\Common\src\System\Security\Cryptography\AesGcm.cs (6)
55/// <exception cref="CryptographicException"> 91/// <exception cref="CryptographicException"> 156/// <exception cref="CryptographicException">The encryption operation failed.</exception> 193/// <exception cref="CryptographicException">The encryption operation failed.</exception> 232/// <exception cref="CryptographicException"> 269/// <exception cref="CryptographicException">
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs (1)
164catch (CryptographicException)
src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (2)
145internal static CryptographicException CreateAlgorithmUnknownException(AsnWriter encodedId) 154internal static CryptographicException CreateAlgorithmUnknownException(string algorithmId)
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (4)
147catch (CryptographicException e) 376catch (CryptographicException e) 409catch (CryptographicException e) 445catch (CryptographicException e)
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (29)
112/// <exception cref="CryptographicException"> 162/// <exception cref="CryptographicException"> 198/// <exception cref="CryptographicException"> 227/// <exception cref="CryptographicException"> 249/// <exception cref="CryptographicException"> 269/// <exception cref="CryptographicException"> 306/// <exception cref="CryptographicException"> 328/// <exception cref="CryptographicException"> 353/// <exception cref="CryptographicException"> 393/// <exception cref="CryptographicException"> 443/// <exception cref="CryptographicException"> 493/// <exception cref="CryptographicException"> 538/// <exception cref="CryptographicException"> 581/// <exception cref="CryptographicException"> 646/// <exception cref="CryptographicException"> 673/// <exception cref="CryptographicException"> 700/// <exception cref="CryptographicException"> 724/// <exception cref="CryptographicException"> 779/// <exception cref="CryptographicException"> 837/// <exception cref="CryptographicException"> 882/// <exception cref="CryptographicException"> 926/// <exception cref="CryptographicException"> 959/// <exception cref="CryptographicException"> 991/// <exception cref="CryptographicException"> 1014/// <exception cref="CryptographicException"> 1052/// <exception cref="CryptographicException"> 1090/// <exception cref="CryptographicException"> 1141/// <exception cref="CryptographicException"> 1161/// <exception cref="CryptographicException">
src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.cs (1)
46catch (CryptographicException)
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (43)
79/// <exception cref="CryptographicException"> 102/// <exception cref="CryptographicException"> 147/// <exception cref="CryptographicException"> 174/// <exception cref="CryptographicException"> 188/// <exception cref="CryptographicException"> 224/// <exception cref="CryptographicException"> 257/// <exception cref="CryptographicException"> 271/// <exception cref="CryptographicException"> 296/// <exception cref="CryptographicException"> 331/// <exception cref="CryptographicException"> 364/// <exception cref="CryptographicException"> 390/// <exception cref="CryptographicException"> 422/// <exception cref="CryptographicException"> 447/// <exception cref="CryptographicException"> 479/// <exception cref="CryptographicException"> 502/// <exception cref="CryptographicException"> 527/// <exception cref="CryptographicException"> 558/// <exception cref="CryptographicException"> 581/// <exception cref="CryptographicException"> 619/// <exception cref="CryptographicException"> 637/// <exception cref="CryptographicException"> 657/// <exception cref="CryptographicException"> 686/// <exception cref="CryptographicException"> 715/// <exception cref="CryptographicException"> 733/// <exception cref="CryptographicException"> 759/// <exception cref="CryptographicException"> 791/// <exception cref="CryptographicException"> 844/// <exception cref="CryptographicException"> 890/// <exception cref="CryptographicException"> 934/// <exception cref="CryptographicException"> 974/// <exception cref="CryptographicException"> 1014/// <exception cref="CryptographicException"> 1048/// <exception cref="CryptographicException"> 1091/// <exception cref="CryptographicException"> 1132/// <exception cref="CryptographicException"> 1154/// <exception cref="CryptographicException"> 1217/// <exception cref="CryptographicException"> 1270/// <exception cref="CryptographicException"> 1320/// <exception cref="CryptographicException"> 1368/// <exception cref="CryptographicException"> 1419/// <exception cref="CryptographicException"> 1475/// <exception cref="CryptographicException"> 1538/// <exception cref="CryptographicException">
src\libraries\Common\src\System\Security\Cryptography\MLKemImplementation.cs (1)
32catch (CryptographicException)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
18private static CryptographicException AlgorithmKdfRequiresChars(string algId)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
340catch (CryptographicException)
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (2)
816catch (CryptographicException) 879private static CryptographicException PaddingModeNotSupported() =>
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (1)
368catch (Exception e) when (!(e is CryptographicException))
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (33)
119/// <exception cref="CryptographicException"> 167/// <exception cref="CryptographicException"> 207/// <exception cref="CryptographicException"> 257/// <exception cref="CryptographicException"> 282/// <exception cref="CryptographicException"> 311/// <exception cref="CryptographicException"> 332/// <exception cref="CryptographicException"> 353/// <exception cref="CryptographicException"> 381/// <exception cref="CryptographicException"> 424/// <exception cref="CryptographicException"> 474/// <exception cref="CryptographicException"> 502/// <exception cref="CryptographicException"> 547/// <exception cref="CryptographicException"> 614/// <exception cref="CryptographicException"> 672/// <exception cref="CryptographicException"> 739/// <exception cref="CryptographicException"> 788/// <exception cref="CryptographicException"> 843/// <exception cref="CryptographicException"> 873/// <exception cref="CryptographicException"> 896/// <exception cref="CryptographicException"> 924/// <exception cref="CryptographicException"> 948/// <exception cref="CryptographicException"> 972/// <exception cref="CryptographicException"> 1041/// <exception cref="CryptographicException"> 1112/// <exception cref="CryptographicException"> 1166/// <exception cref="CryptographicException"> 1231/// <exception cref="CryptographicException"> 1293/// <exception cref="CryptographicException"> 1362/// <exception cref="CryptographicException"> 1453/// <exception cref="CryptographicException"> 1503/// <exception cref="CryptographicException"> 1560/// <exception cref="CryptographicException"> 1580/// <exception cref="CryptographicException">
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (8)
55/// <exception cref="CryptographicException"> 84/// <exception cref="CryptographicException"> 134/// <exception cref="CryptographicException"> 187/// <exception cref="CryptographicException"> 234/// <exception cref="CryptographicException"> 266/// <exception cref="CryptographicException"> 298/// <exception cref="CryptographicException"> 338/// <exception cref="CryptographicException">
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (15)
31/// <exception cref="CryptographicException"> 52/// <exception cref="CryptographicException"> 73/// <exception cref="CryptographicException"> 114/// <exception cref="CryptographicException"> 127/// <see cref="CryptographicException" /> is thrown. 173/// <exception cref="CryptographicException"> 186/// <see cref="CryptographicException" /> is thrown. 241/// <exception cref="CryptographicException"> 257/// <see cref="CryptographicException" /> is thrown. 303/// <exception cref="CryptographicException"> 319/// <see cref="CryptographicException" /> is thrown. 367/// <exception cref="CryptographicException"> 415/// <exception cref="CryptographicException"> 475/// <exception cref="CryptographicException"> 527/// <exception cref="CryptographicException">
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (4)
230catch (CryptographicException) 718catch (CryptographicException e) 816catch (CryptographicException) 844catch (CryptographicException)
System\Security\Cryptography\AsymmetricAlgorithm.cs (10)
184/// <exception cref="CryptographicException"> 260/// <exception cref="CryptographicException"> 380/// <exception cref="CryptographicException"> 427/// <exception cref="CryptographicException"> 480/// <exception cref="CryptographicException"> 522/// <exception cref="CryptographicException"> 563/// <exception cref="CryptographicException"> 613/// <exception cref="CryptographicException"> 668/// <exception cref="CryptographicException"> 735/// <exception cref="CryptographicException">
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (2)
233catch (CryptographicException) 254catch (CryptographicException)
System\Security\Cryptography\CapiHelper.Unix.cs (2)
83internal static CryptographicException GetBadDataException() 89internal static CryptographicException GetEFailException()
System\Security\Cryptography\CryptoConfig.cs (1)
560catch (CryptographicException) { }
System\Security\Cryptography\CryptographicOperations.cs (18)
88/// <exception cref="CryptographicException"> 113/// <exception cref="CryptographicException"> 146/// <exception cref="CryptographicException"> 182/// <exception cref="CryptographicException"> 223/// <exception cref="CryptographicException"> 259/// <exception cref="CryptographicException"> 302/// <exception cref="CryptographicException"> 351/// <exception cref="CryptographicException"> 390/// <exception cref="CryptographicException"> 417/// <exception cref="CryptographicException"> 451/// <exception cref="CryptographicException"> 492/// <exception cref="CryptographicException"> 539/// <exception cref="CryptographicException"> 571/// <exception cref="CryptographicException"> 609/// <exception cref="CryptographicException"> 648/// <exception cref="CryptographicException"> 693/// <exception cref="CryptographicException"> 740/// <exception cref="CryptographicException">
System\Security\Cryptography\DSA.cs (22)
122/// <exception cref="CryptographicException"> 185/// <exception cref="CryptographicException"> 219/// <exception cref="CryptographicException"> 268/// <exception cref="CryptographicException"> 290/// <exception cref="CryptographicException"> 357/// <exception cref="CryptographicException"> 408/// <exception cref="CryptographicException"> 429/// <exception cref="CryptographicException"> 467/// <exception cref="CryptographicException"> 497/// <exception cref="CryptographicException"> 577/// <exception cref="CryptographicException"> 610/// <exception cref="CryptographicException"> 655/// <exception cref="CryptographicException"> 692/// <exception cref="CryptographicException"> 720/// <exception cref="CryptographicException"> 746/// <exception cref="CryptographicException"> 772/// <exception cref="CryptographicException"> 802/// <exception cref="CryptographicException"> 831/// <exception cref="CryptographicException"> 854/// <exception cref="CryptographicException"> 1180/// <exception cref="CryptographicException"> 1251/// <exception cref="CryptographicException">
System\Security\Cryptography\DSAOpenSsl.cs (1)
33/// <exception cref="CryptographicException"><paramref name="pkeyHandle"/> is not a valid enveloped <c>DSA*</c></exception>
System\Security\Cryptography\ECAlgorithm.cs (15)
112/// <exception cref="CryptographicException"> 192/// <exception cref="CryptographicException"> 249/// <exception cref="CryptographicException"> 289/// <exception cref="CryptographicException"> 318/// <exception cref="CryptographicException"> 400/// <exception cref="CryptographicException"> 473/// <exception cref="CryptographicException"> 532/// <exception cref="CryptographicException"> 581/// <exception cref="CryptographicException"> 614/// <exception cref="CryptographicException">The key could not be exported.</exception> 645/// <exception cref="CryptographicException"> 735/// <exception cref="CryptographicException"> 806/// <exception cref="CryptographicException"> 864/// <exception cref="CryptographicException"> 912/// <exception cref="CryptographicException">
System\Security\Cryptography\ECCurve.cs (2)
134catch (CryptographicException) 180/// <exception cref="CryptographicException">
System\Security\Cryptography\ECDiffieHellman.cs (1)
130/// <exception cref="CryptographicException"><paramref name="prfSeed"/> is not exactly 64 bytes in length</exception>
System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (1)
19/// <exception cref="CryptographicException"><paramref name="pkeyHandle"/> is not a valid enveloped <c>EC_KEY*</c></exception>
System\Security\Cryptography\ECDiffieHellmanPublicKey.ExportParameters.cs (2)
49/// <exception cref="CryptographicException">The key is invalid and could not be exported.</exception> 67/// <exception cref="CryptographicException">The key is invalid and could not be exported.</exception>
System\Security\Cryptography\ECDsa.cs (24)
99/// <exception cref="CryptographicException"> 133/// <exception cref="CryptographicException"> 198/// <exception cref="CryptographicException"> 229/// <exception cref="CryptographicException"> 251/// <exception cref="CryptographicException"> 277/// <exception cref="CryptographicException"> 305/// <exception cref="CryptographicException"> 326/// <exception cref="CryptographicException"> 357/// <exception cref="CryptographicException"> 389/// <exception cref="CryptographicException"> 418/// <exception cref="CryptographicException"> 497/// <exception cref="CryptographicException"> 530/// <exception cref="CryptographicException"> 777/// <exception cref="CryptographicException"> 827/// <exception cref="CryptographicException"> 863/// <exception cref="CryptographicException"> 889/// <exception cref="CryptographicException"> 944/// <exception cref="CryptographicException"> 973/// <exception cref="CryptographicException"> 1062/// <exception cref="CryptographicException"> 1092/// <exception cref="CryptographicException"> 1127/// <exception cref="CryptographicException"> 1153/// <exception cref="CryptographicException"> 1176/// <exception cref="CryptographicException">
System\Security\Cryptography\ECDsaOpenSsl.cs (1)
19/// <exception cref="CryptographicException"><paramref name="pkeyHandle"/> is not a valid enveloped <c>EC_KEY*</c></exception>
System\Security\Cryptography\ECParameters.cs (1)
29/// <exception cref="CryptographicException">
System\Security\Cryptography\HashAlgorithmName.cs (1)
185/// <exception cref="CryptographicException">
System\Security\Cryptography\IncrementalHash.cs (4)
277/// <exception cref="CryptographicException">An error occurred during the operation.</exception> 322/// <exception cref="CryptographicException"><paramref name="hashAlgorithm"/> is not a known hash algorithm.</exception> 352/// <exception cref="CryptographicException"><paramref name="hashAlgorithm"/> is not a known hash algorithm.</exception> 381/// <exception cref="CryptographicException"><paramref name="hashAlgorithm"/> is not a known hash algorithm.</exception>
System\Security\Cryptography\Kmac128.cs (16)
33/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 48/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 102/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 122/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 143/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 162/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 177/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 213/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 241/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 267/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 299/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 336/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 368/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 409/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 456/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 497/// <exception cref="CryptographicException">An error has occurred during the operation.</exception>
System\Security\Cryptography\Kmac256.cs (16)
33/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 48/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 102/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 122/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 143/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 162/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 177/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 213/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 241/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 267/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 299/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 336/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 368/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 409/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 456/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 497/// <exception cref="CryptographicException">An error has occurred during the operation.</exception>
System\Security\Cryptography\KmacXof128.cs (16)
33/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 48/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 102/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 122/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 143/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 162/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 177/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 213/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 241/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 267/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 299/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 336/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 368/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 409/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 456/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 497/// <exception cref="CryptographicException">An error has occurred during the operation.</exception>
System\Security\Cryptography\KmacXof256.cs (16)
33/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 48/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 102/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 122/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 143/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 162/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 177/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 213/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 241/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 267/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 299/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 336/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 368/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 409/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 456/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 497/// <exception cref="CryptographicException">An error has occurred during the operation.</exception>
System\Security\Cryptography\MLDsaOpenSsl.cs (1)
38/// <exception cref="CryptographicException">
System\Security\Cryptography\MLKemOpenSsl.cs (1)
40/// <exception cref="CryptographicException">
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (6)
35/// <exception cref="CryptographicException"> 70/// <exception cref="CryptographicException"> 107/// <exception cref="CryptographicException"> 146/// <exception cref="CryptographicException"> 189/// <exception cref="CryptographicException"> 234/// <exception cref="CryptographicException">
System\Security\Cryptography\RSA.cs (15)
73/// <exception cref="CryptographicException"> 141/// <exception cref="CryptographicException"> 191/// <exception cref="CryptographicException"> 232/// <exception cref="CryptographicException"> 278/// <exception cref="CryptographicException"> 439/// <exception cref="CryptographicException"> 498/// <exception cref="CryptographicException"> 545/// <exception cref="CryptographicException"> 600/// <exception cref="CryptographicException"> 1115/// <exception cref="CryptographicException"> 1186/// <exception cref="CryptographicException"> 1244/// <exception cref="CryptographicException"> 1281/// <exception cref="CryptographicException"> 1317/// <exception cref="CryptographicException"> 1363/// <exception cref="CryptographicException">
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (1)
335private static CryptographicException PaddingModeNotSupported()
System\Security\Cryptography\RSAOpenSsl.cs (1)
62/// <exception cref="CryptographicException"><paramref name="pkeyHandle"/> is not a valid enveloped <c>RSA*</c></exception>
System\Security\Cryptography\SafeEvpPKeyHandle.OpenSsl.cs (3)
110/// <exception cref="CryptographicException"> 162/// <exception cref="CryptographicException"> 215/// <exception cref="CryptographicException">
System\Security\Cryptography\Shake128.cs (4)
179/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 204/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 224/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 241/// <exception cref="CryptographicException">An error has occurred during the operation.</exception>
System\Security\Cryptography\Shake256.cs (4)
179/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 204/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 224/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 241/// <exception cref="CryptographicException">An error has occurred during the operation.</exception>
System\Security\Cryptography\SlhDsaOpenSsl.cs (1)
38/// <exception cref="CryptographicException">
System\Security\Cryptography\SymmetricAlgorithm.cs (28)
217/// <exception cref="CryptographicException"> 242/// <exception cref="CryptographicException"> 298/// <exception cref="CryptographicException"> 342/// <exception cref="CryptographicException"> 487/// <exception cref="CryptographicException"> 510/// <exception cref="CryptographicException"> 549/// <exception cref="CryptographicException"> 581/// <exception cref="CryptographicException"> 605/// <exception cref="CryptographicException"> 628/// <exception cref="CryptographicException"> 667/// <exception cref="CryptographicException"> 699/// <exception cref="CryptographicException"> 728/// <exception cref="CryptographicException"> 756/// <exception cref="CryptographicException"> 806/// <exception cref="CryptographicException"> 848/// <exception cref="CryptographicException"> 883/// <exception cref="CryptographicException"> 911/// <exception cref="CryptographicException"> 959/// <exception cref="CryptographicException"> 1001/// <exception cref="CryptographicException"> 1047/// <exception cref="CryptographicException"> 1097/// <exception cref="CryptographicException"> 1173/// <exception cref="CryptographicException"> 1232/// <exception cref="CryptographicException"> 1287/// <exception cref="CryptographicException"> 1337/// <exception cref="CryptographicException"> 1405/// <exception cref="CryptographicException"> 1464/// <exception cref="CryptographicException">
System\Security\Cryptography\UniversalCryptoOneShot.cs (2)
56catch (CryptographicException) 157catch (CryptographicException)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (7)
393/// <exception cref="CryptographicException"> 448/// <exception cref="CryptographicException"> 542/// <exception cref="CryptographicException"> 595/// <exception cref="CryptographicException"> 628/// <exception cref="CryptographicException"> 908/// <exception cref="CryptographicException">Any error occurs during the signing operation.</exception> 953/// <exception cref="CryptographicException">Any error occurs during the signing operation.</exception>
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (1)
417catch (CryptographicException)
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (2)
106/// <exception cref="CryptographicException"> 304/// <exception cref="CryptographicException">
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.CdpExtension.cs (1)
39/// <exception cref="CryptographicException">
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (4)
33/// <exception cref="CryptographicException"> 80/// <exception cref="CryptographicException"> 221/// <exception cref="CryptographicException"> 256/// <exception cref="CryptographicException">
System\Security\Cryptography\X509Certificates\ChainPal.OpenSsl.cs (1)
211catch (CryptographicException)
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (1)
382catch (CryptographicException)
System\Security\Cryptography\X509Certificates\OpenSslCertificateAssetDownloader.cs (1)
47catch (CryptographicException)
System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs (1)
366catch (CryptographicException)
System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs (4)
104catch (CryptographicException) 124catch (CryptographicException) 170catch (CryptographicException) 279catch (CryptographicException)
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (1)
1265catch (CryptographicException)
System\Security\Cryptography\X509Certificates\PublicKey.cs (11)
47/// <exception cref="CryptographicException"> 67/// <exception cref="CryptographicException"> 84/// <exception cref="CryptographicException"> 180/// <exception cref="CryptographicException"> 201/// <exception cref="CryptographicException"> 230/// <exception cref="CryptographicException"> 261/// <exception cref="CryptographicException"> 291/// <exception cref="CryptographicException"> 324/// <exception cref="CryptographicException"> 347/// <exception cref="CryptographicException"> 370/// <exception cref="CryptographicException">
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (1)
78/// <exception cref="CryptographicException">
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (1)
75catch (CryptographicException)
System\Security\Cryptography\X509Certificates\X500RelativeDistinguishedName.cs (1)
108/// <exception cref="CryptographicException">
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (7)
42/// <exception cref="CryptographicException"> 62/// <exception cref="CryptographicException"> 89/// <exception cref="CryptographicException"> 128/// <exception cref="CryptographicException"> 164/// <exception cref="CryptographicException"> 210/// <exception cref="CryptographicException"> 227/// <exception cref="CryptographicException">
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (3)
48/// <exception cref="CryptographicException"> 68/// <exception cref="CryptographicException"> 456/// <exception cref="CryptographicException">
System\Security\Cryptography\X509Certificates\X509Certificate.cs (2)
362/// <exception cref="CryptographicException"> 393/// <exception cref="CryptographicException">
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (21)
94/// <exception cref="CryptographicException">An error with the certificate occurs.</exception> 115/// <exception cref="CryptographicException">An error with the certificate occurs.</exception> 605catch (CryptographicException) 634catch (CryptographicException) 713/// <exception cref="CryptographicException"> 728/// <exception cref="CryptographicException"> 791/// <exception cref="CryptographicException"> 812/// <exception cref="CryptographicException"> 890/// <exception cref="CryptographicException"> 913/// <exception cref="CryptographicException"> 994/// <exception cref="CryptographicException"> 1015/// <exception cref="CryptographicException"> 1088/// <exception cref="CryptographicException"> 1155/// <exception cref="CryptographicException"> 1215/// <exception cref="CryptographicException"> 1304/// <exception cref="CryptographicException"> 1411/// <exception cref="CryptographicException"> 1453catch (CryptographicException) 1474/// <exception cref="CryptographicException"> 1503/// <exception cref="CryptographicException"> 1603/// <exception cref="CryptographicException">
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (12)
128/// <exception cref="CryptographicException"> 155/// <exception cref="CryptographicException"> 405/// <exception cref="CryptographicException"> 434/// <exception cref="CryptographicException"> 466catch (CryptographicException) 491/// <exception cref="CryptographicException"> 518/// <exception cref="CryptographicException"> 542/// <exception cref="CryptographicException"> 585/// <exception cref="CryptographicException"> 678/// <exception cref="CryptographicException"> 715/// <exception cref="CryptographicException"> 765/// <exception cref="CryptographicException">
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (3)
141catch (CryptographicException) 167catch (CryptographicException) 293catch (CryptographicException)
System.Security.Cryptography.Cose (16)
System\Security\Cryptography\Cose\CoseMessage.cs (4)
92/// <exception cref="CryptographicException"><paramref name="cborPayload"/> could not be decoded as a COSE_Sign1 message.</exception> 105/// <exception cref="CryptographicException"><paramref name="cborPayload"/> could not be decoded as a COSE_Sign1 message.</exception> 177/// <exception cref="CryptographicException"><paramref name="cborPayload"/> could not be decoded as a COSE_Sign message.</exception> 190/// <exception cref="CryptographicException"><paramref name="cborPayload"/> could not be decoded as a COSE_Sign message.</exception>
System\Security\Cryptography\Cose\CoseSign1Message.cs (6)
360/// <exception cref="CryptographicException"> 399/// <exception cref="InvalidOperationException">The content is detached from this message, use an overload that accepts a detached content.</exception> /// <exception cref="CryptographicException"> 440/// <exception cref="CryptographicException"> 482/// <exception cref="CryptographicException"> 531/// <exception cref="CryptographicException"> 626/// <exception cref="CryptographicException">
System\Security\Cryptography\Cose\CoseSignature.cs (6)
81/// <exception cref="CryptographicException"> 121/// <exception cref="CryptographicException"> 162/// <exception cref="CryptographicException"> 205/// <exception cref="CryptographicException"> 254/// <exception cref="CryptographicException"> 316/// <exception cref="CryptographicException">
System.Security.Cryptography.Pkcs (26)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
28catch (CryptographicException)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (2)
166catch (CryptographicException ce) 174catch (CryptographicException ce)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Exceptions.cs (1)
31private static CryptographicException CreateInvalidMessageTypeException()
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (1)
211catch (CryptographicException e)
Internal\Cryptography\PkcsHelpers.cs (1)
402catch (CryptographicException e)
src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (2)
145internal static CryptographicException CreateAlgorithmUnknownException(AsnWriter encodedId) 154internal static CryptographicException CreateAlgorithmUnknownException(string algorithmId)
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (4)
147catch (CryptographicException e) 376catch (CryptographicException e) 409catch (CryptographicException e) 445catch (CryptographicException e)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
18private static CryptographicException AlgorithmKdfRequiresChars(string algId)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
340catch (CryptographicException)
System\Security\Cryptography\Pkcs\CmsSignature.cs (1)
209catch (CryptographicException)
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (1)
136/// <exception cref="CryptographicException">
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (2)
93catch (CryptographicException) when (!shouldThrow) 373catch (CryptographicException)
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (5)
282catch (CryptographicException) 417catch (CryptographicException) 532catch (CryptographicException) 609catch (CryptographicException) 636catch (CryptographicException)
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (2)
39/// <exception cref="CryptographicException">ASN.1 corrupted data.</exception> 305catch (CryptographicException)
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
129catch (CryptographicException) when (!Detached)
System.Security.Cryptography.Primitives (1)
System.Security.Cryptography.Primitives.cs (1)
5[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.CryptographicException))]
System.Security.Cryptography.ProtectedData (7)
src\libraries\Common\src\System\Security\Cryptography\CryptoThrowHelper.Windows.cs (1)
17public static CryptographicException ToCryptographicException(this int hr)
System\Security\Cryptography\ProtectedData.cs (6)
47/// <exception cref="CryptographicException">The encryption failed.</exception> 95/// <exception cref="CryptographicException">The encryption failed.</exception> 135/// <exception cref="CryptographicException">The encryption failed.</exception> 199/// <exception cref="CryptographicException">The encryption failed.</exception> 248/// <exception cref="CryptographicException">The encryption failed.</exception> 288/// <exception cref="CryptographicException">The encryption failed.</exception>
System.Security.Cryptography.Xml (3)
System\Security\Cryptography\Xml\DSAKeyValue.cs (1)
145/// <exception cref="CryptographicException">
System\Security\Cryptography\Xml\RSAKeyValue.cs (1)
100/// <exception cref="CryptographicException">
System\Security\Cryptography\Xml\Utils.cs (1)
699catch (CryptographicException) { }
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94catch (CryptographicException exception) when (exception.HResult == UserCancelledErrorCode)
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94catch (CryptographicException exception) when (exception.HResult == UserCancelledErrorCode)
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94catch (CryptographicException exception) when (exception.HResult == UserCancelledErrorCode)
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94catch (CryptographicException exception) when (exception.HResult == UserCancelledErrorCode)
Templates.Tests (1)
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94catch (CryptographicException exception) when (exception.HResult == UserCancelledErrorCode)