5 types derived from CryptographicException
System.Net.Quic (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
109private sealed class OpenSslCryptographicException : CryptographicException
System.Net.Security (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
109private sealed class OpenSslCryptographicException : CryptographicException
System.Security.Cryptography (3)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AuthenticationTagMismatchException.cs (1)
10public sealed class AuthenticationTagMismatchException : CryptographicException
src\runtime\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
1689 instantiations of CryptographicException
dotnet-sourcelink (1)
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)
78throw new CryptographicException(Resources.TimeLimitedDataProtector_PayloadInvalid); 88throw new CryptographicException(Resources.FormatTimeLimitedDataProtector_PayloadExpired(embeddedExpiration)); 100throw new CryptographicException(Resources.CryptCommon_GenericError, ex);
Microsoft.Build.Tasks.Core (12)
ManifestUtil\mansign2.cs (12)
406throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN); 426throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN); 441throw new CryptographicException(hr); 517throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN); 522throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN); 533throw new CryptographicException(Win32.NTE_BAD_KEY); 557throw new CryptographicException(hr); 604throw new CryptographicException(Win32.TRUST_E_BAD_DIGEST); 624throw new CryptographicException(Win32.TRUST_E_BAD_DIGEST); 832throw new CryptographicException(Marshal.GetLastWin32Error()); 904throw new CryptographicException(hr); 946throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
Mono.Cecil (5)
Mono.Security.Cryptography\CryptoConvert.cs (5)
78 throw new CryptographicException ("Invalid blob header"); 142 throw new CryptographicException ("Invalid blob.", e); 185 throw new CryptographicException ("Invalid blob header"); 228 throw new CryptographicException ("Invalid blob.", e); 259 throw new CryptographicException ("Unknown blob format.");
NuGet.Packaging (50)
Signing\DerEncoding\DerEncoder.cs (6)
449throw new CryptographicException(SR.Argument_InvalidOidValue); 451throw new CryptographicException(SR.Argument_InvalidOidValue); 453throw new CryptographicException(SR.Argument_InvalidOidValue); 469throw new CryptographicException(SR.Argument_InvalidOidValue); 789throw new CryptographicException(SR.Cryptography_Invalid_IA5String); 1000throw new CryptographicException(SR.Argument_InvalidOidValue);
Signing\DerEncoding\DerGeneralizedTime.cs (5)
27throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 56throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 62throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 92throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
Signing\DerEncoding\DerSequenceReader.cs (23)
68throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 95throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 101throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 139throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 160throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 207throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 246throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 251throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 277throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 406throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 448throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 506throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 526throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 535throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 543throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 556throw new CryptographicException( 583throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 592throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 603throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 610throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 614throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 631throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 635throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
Signing\Signatures\PrimarySignature.cs (1)
167throw new CryptographicException(Strings.UnexpectedPackageSignatureVerificationError, ex);
Signing\Timestamp\Accuracy.cs (4)
56throw new CryptographicException(Strings.InvalidAsn1); 66throw new CryptographicException(Strings.InvalidAsn1); 76throw new CryptographicException(Strings.InvalidAsn1); 82throw new CryptographicException(Strings.InvalidAsn1);
Signing\Timestamp\Extension.cs (1)
53throw new CryptographicException(Strings.InvalidAsn1);
Signing\Timestamp\Extensions.cs (1)
46throw new CryptographicException(Strings.InvalidAsn1);
Signing\Timestamp\MessageImprint.cs (2)
45throw new CryptographicException(Strings.InvalidAsn1); 50throw new CryptographicException(Strings.InvalidAsn1);
Signing\Timestamp\Rfc3161TimestampRequestNetstandard21Wrapper.cs (1)
63throw new CryptographicException(
Signing\Timestamp\Rfc3161TimestampTokenInfoNetstandard21Wrapper.cs (1)
22throw new CryptographicException(Strings.InvalidAsn1);
Signing\Timestamp\Rfc3161TimestampTokenNetstandard21Wrapper.cs (1)
28throw new CryptographicException(Strings.InvalidAsn1);
Signing\Timestamp\TstInfo.cs (3)
89throw new CryptographicException(Strings.InvalidAsn1); 141throw new CryptographicException(Strings.InvalidAsn1); 147throw new CryptographicException(Strings.InvalidAsn1);
Signing\Utility\AttributeUtility.cs (1)
339throw new CryptographicException(string.Format(CultureInfo.CurrentCulture, Strings.MultipleAttributesDisallowed, oid));
System.IO.Compression (1)
System\IO\Compression\WinZipAesStream.cs (1)
352throw new CryptographicException();
System.Net.Http.WinHttpHandler (1)
src\runtime\src\libraries\Common\src\System\Net\Security\CertificateValidation.Windows.cs (1)
32throw new CryptographicException(Marshal.GetLastPInvokeError());
System.Net.Quic (3)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs (1)
95throw new CryptographicException();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
120return new CryptographicException();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
73return new CryptographicException();
System.Net.Security (3)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs (1)
95throw new CryptographicException();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
120return new CryptographicException();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
73return new CryptographicException();
System.Private.CoreLib (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetRandomBytes.cs (1)
26throw new CryptographicException();
System.Security.Cryptography (904)
src\runtime\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); 404throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\AesBCryptModes.cs (1)
50throw new CryptographicException(SR.Cryptography_FeedbackSizeNotSupported, ex);
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptExportKey.cs (1)
73throw new CryptographicException();
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptGetProperty.cs (1)
42throw new CryptographicException();
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\TripleDesBCryptModes.cs (1)
53throw new CryptographicException(SR.Cryptography_FeedbackSizeNotSupported, ex);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AesAEAD.cs (1)
12throw new CryptographicException(SR.Cryptography_InvalidKeySize);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (8)
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); 141throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 153throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 176throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 193throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (9)
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); 144throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 153throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 174throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 191throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 204throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\CurveAsn.xml.cs (2)
65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 82throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (4)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 129throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 146throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (11)
64throw new CryptographicException(); 73throw new CryptographicException(); 82throw new CryptographicException(); 89throw new CryptographicException(); 99throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 107throw new CryptographicException(); 116throw new CryptographicException(); 124throw new CryptographicException(); 140throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 152throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 187throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DssParms.xml.cs (2)
49throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 66throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (7)
69throw new CryptographicException(); 78throw new CryptographicException(); 86throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 93throw new CryptographicException(); 108throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 120throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 143throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\ECPrivateKey.xml.cs (2)
87throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 104throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (4)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 129throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 146throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\FieldID.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 41throw 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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (17)
72throw new CryptographicException(); 81throw new CryptographicException(); 90throw new CryptographicException(); 99throw new CryptographicException(); 106throw new CryptographicException(); 116throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 124throw new CryptographicException(); 133throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 142throw new CryptographicException(); 151throw new CryptographicException(); 160throw new CryptographicException(); 169throw new CryptographicException(); 177throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 184throw new CryptographicException(); 200throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 212throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 282throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLDsaPrivateKeyAsn.xml.cs (7)
93throw new CryptographicException(); 102throw new CryptographicException(); 111throw new CryptographicException(); 119throw new CryptographicException(); 134throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 146throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 194throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLDsaPrivateKeyBothAsn.xml.cs (2)
47throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyAsn.xml.cs (7)
93throw new CryptographicException(); 102throw new CryptographicException(); 111throw new CryptographicException(); 119throw new CryptographicException(); 134throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 146throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 194throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyBothAsn.xml.cs (2)
47throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (2)
47throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (2)
47throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (2)
84throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 101throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (6)
80throw new CryptographicException(); 89throw new CryptographicException(); 97throw new CryptographicException(); 112throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 124throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 158throw new CryptographicException();
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (4)
84throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 101throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 201throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 218throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (4)
55throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 72throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 156throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 173throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\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\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (17)
64throw new CryptographicException(); 71throw new CryptographicException(); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 89throw new CryptographicException(); 96throw new CryptographicException(); 106throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 114throw new CryptographicException(); 121throw new CryptographicException(); 131throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 139throw new CryptographicException(); 146throw new CryptographicException(); 156throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 164throw new CryptographicException(); 172throw new CryptographicException(); 188throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 200throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 241throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (8)
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); 127throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 137throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 159throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 176throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\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\runtime\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\runtime\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\runtime\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\runtime\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\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (6)
58throw new CryptographicException(); 67throw new CryptographicException(); 75throw new CryptographicException(); 91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 103throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 137throw new CryptographicException();
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (5)
65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 82throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 179throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 202throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 219throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (5)
15throw new CryptographicException(SR.Cryptography_Pkcs_InvalidSignatureParameters); 20throw new CryptographicException( 27throw new CryptographicException(SR.Cryptography_Pkcs_InvalidSignatureParameters); 37throw new CryptographicException( 53throw new CryptographicException(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (2)
150throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 167throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (4)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 134throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 151throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml.cs (2)
61throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 78throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml.cs (2)
47throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml.cs (3)
62throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 85throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 102throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (4)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 129throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 146throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (6)
50throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 86throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 103throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 165throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 200throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 217throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AsnWriter\AsnWriterExtensions.cs (2)
20throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 34throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (2)
81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 95throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngPkcs8.cs (10)
112throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 135throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 146throw new CryptographicException(); 180throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 189throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 199throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 235throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 247throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 257throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 267throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (20)
153throw new CryptographicException(); 168throw new CryptographicException(); 229throw new CryptographicException(); 679throw new CryptographicException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(CompositeMLDsa))); 684throw new CryptographicException(SR.Argument_PublicKeyWrongSizeForAlgorithm); 877throw new CryptographicException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(CompositeMLDsa))); 882throw new CryptographicException(SR.Argument_PrivateKeyWrongSizeForAlgorithm); 933throw new CryptographicException(SR.Argument_PublicKeyWrongSizeForAlgorithm); 983throw new CryptographicException(SR.Argument_PrivateKeyWrongSizeForAlgorithm); 1518throw new CryptographicException(); 1552throw new CryptographicException(SR.Argument_DestinationTooShort); 1557throw new CryptographicException(SR.Argument_DestinationTooShort); 1600throw new CryptographicException(); 1640throw new CryptographicException(); 1677throw new CryptographicException(SR.Argument_DestinationTooShort); 1682throw new CryptographicException(SR.Argument_DestinationTooShort); 1730throw new CryptographicException(); 1821throw new CryptographicException(SR.Argument_PrivateKeyWrongSizeForAlgorithm); 1909throw new CryptographicException(); 1952throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaAlgorithm.cs (1)
523throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaCng.Windows.cs (5)
57throw new CryptographicException(); 96throw new CryptographicException(); 145throw new CryptographicException(); 213throw new CryptographicException(); 225throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaImplementation.Windows.cs (8)
44throw new CryptographicException(SR.Cryptography_NoPrivateKeyAvailable); 60throw new CryptographicException(); 86throw new CryptographicException(); 108throw new CryptographicException(); 127throw new CryptographicException(SR.Cryptography_NoPrivateKeyAvailable); 140throw new CryptographicException(SR.Cryptography_NoPrivateKeyAvailable); 171throw new CryptographicException(); 183throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKem.cs (18)
194throw new CryptographicException(SR.Cryptography_OverlappingBuffers); 411throw new CryptographicException(SR.Argument_PublicKeyWrongSizeForAlgorithm); 489throw new CryptographicException(SR.Argument_PrivateKeyWrongSizeForAlgorithm); 581throw new CryptographicException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(CompositeMLKem))); 586throw new CryptographicException(SR.Argument_PublicKeyWrongSizeForAlgorithm); 680throw new CryptographicException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(CompositeMLKem))); 685throw new CryptographicException(SR.Argument_PrivateKeyWrongSizeForAlgorithm); 1821throw new CryptographicException(); 1855throw new CryptographicException(SR.Argument_DestinationTooShort); 1860throw new CryptographicException(SR.Argument_DestinationTooShort); 1903throw new CryptographicException(); 1959throw new CryptographicException(); 1998throw new CryptographicException(SR.Argument_DestinationTooShort); 2003throw new CryptographicException(SR.Argument_DestinationTooShort); 2053throw new CryptographicException(); 2126throw new CryptographicException(SR.Argument_PrivateKeyWrongSizeForAlgorithm); 2211throw new CryptographicException(); 2259throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKemAlgorithm.cs (3)
351throw new CryptographicException(); 465throw new CryptographicException(); 558throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
63throw new CryptographicException(SR.Cryptography_Pkcs9_MultipleSigningTimeNotAllowed);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoThrowHelper.Windows.cs (1)
29return new CryptographicException(message)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.ImportExport.cs (2)
432throw new CryptographicException(SR.Cryptography_NotValidPrivateKey); 437throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.SignVerify.cs (2)
62throw new CryptographicException( 98throw new CryptographicException(
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.HashAlgorithm.cs (1)
30throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, name.Value.Name);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.cs (2)
298throw new CryptographicException(SR.Cryptography_NotValidPrivateKey); 305throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs (1)
122throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.ImportExport.cs (1)
162throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.SignVerify.cs (1)
64throw new CryptographicException(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (7)
138throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashOid)); 154throw new CryptographicException(SR.Cryptography_HashLengthMismatch); 170throw new CryptographicException(SR.Cryptography_HashLengthMismatch, ae); 213throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmName), ex); 230throw new CryptographicException( 267throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, ace); 272throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyBlobHelpers.cs (1)
52throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (8)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 53throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 78throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 84throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 126throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 135throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 154throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 162throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (11)
143throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 173throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 180throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 325throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 350throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 375throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 398throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 417throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 430throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 453throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 466throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (12)
322throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmOid)); 327throw new CryptographicException(SR.Format( 335throw new CryptographicException(SR.Cryptography_HashLengthMismatch); 440throw new CryptographicException(SR.Cryptography_HashLengthMismatch); 1372throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 2163throw new CryptographicException(); 2188throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 2197throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 2209throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 2226throw new CryptographicException(SR.Cryptography_MLDsaPkcs8KeyMismatch); 2241throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 2248throw new CryptographicException(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.Windows.cs (11)
61throw new CryptographicException(SR.Cryptography_ArgMLDsaRequiresMLDsaKey); 89throw new CryptographicException(); 134throw new CryptographicException(SR.Argument_PrivateSeedWrongSizeForAlgorithm); 141throw new CryptographicException(SR.Cryptography_NotValidPrivateKey); 179throw new CryptographicException(SR.Argument_PrivateKeyWrongSizeForAlgorithm); 192throw new CryptographicException(SR.Argument_PrivateSeedWrongSizeForAlgorithm); 202throw new CryptographicException(SR.Cryptography_NotValidPrivateKey); 372throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 390throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 467throw new CryptographicException(); 495throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.Windows.cs (6)
44throw new CryptographicException(SR.Cryptography_NoPrivateKeyAvailable); 52throw new CryptographicException(); 67throw new CryptographicException(SR.Cryptography_NoPrivateKeyAvailable); 185throw new CryptographicException(SR.Cryptography_NoPrivateKeyAvailable); 198throw new CryptographicException(SR.Cryptography_PqcNoSeed); 250throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaPkcs8.cs (1)
49throw new CryptographicException(SR.Cryptography_NotValidPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (10)
127throw new CryptographicException(SR.Cryptography_OverlappingBuffers); 1198throw new CryptographicException(SR.Argument_KemInvalidEncapsulationKeyLength); 1702throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 1711throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 1723throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 1740throw new CryptographicException(SR.Cryptography_KemPkcs8KeyMismatch); 1755throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 1817throw new CryptographicException(); 1829throw new CryptographicException(SR.Cryptography_PqcNoSeed); 1837throw new CryptographicException(SR.Cryptography_KemNoDecapsulationKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.Windows.cs (3)
26throw new CryptographicException(); 34throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 44throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemCng.Windows.cs (7)
53throw new CryptographicException(SR.Cryptography_ArgMLKemRequiresMLKemKey); 81return new CryptographicException(); 138throw new CryptographicException(SR.Cryptography_KeyNotExtractable); 154throw new CryptographicException(SR.Cryptography_KeyNotExtractable); 176throw new CryptographicException(SR.Cryptography_KeyNotExtractable); 204throw new CryptographicException(SR.Cryptography_KeyNotExtractable); 229throw new CryptographicException(SR.Cryptography_KeyNotExtractable);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemPkcs8.cs (1)
49throw new CryptographicException(SR.Cryptography_NotValidPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (38)
33return new CryptographicException(SR.Cryptography_AlgKdfRequiresChars, algId); 59throw new CryptographicException( 74throw new CryptographicException( 107throw new CryptographicException( 170throw new CryptographicException( 270throw new CryptographicException( 302throw new CryptographicException( 329throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, prf.Name); 416throw new CryptographicException(); 445throw new CryptographicException(); 545throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 552throw new CryptographicException( 604throw new CryptographicException( 628throw new CryptographicException(); 633throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 656throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 674throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 681throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 692throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 711throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 723throw new CryptographicException(SR.Cryptography_UnknownAlgorithmIdentifier, algId); 733throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 749throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 756throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 768throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 777throw new CryptographicException( 786throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 795_ => throw new CryptographicException( 806throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 834throw new CryptographicException(SR.Argument_InvalidValue, e); 857throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 864throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 869throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 908throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 918throw new CryptographicException(); 1038throw new CryptographicException(); 1051throw new CryptographicException(); 1137throw new CryptographicException(SR.Argument_InvalidValue);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
215throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (2)
95throw new CryptographicException(SR.Argument_InvalidOidValue); 112throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (6)
70throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 231throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 239throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 244throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 358throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 560throw new CryptographicException();
src\runtime\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\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\PqcBlobHelpers.cs (5)
102throw new CryptographicException(); 126throw new CryptographicException(); 152throw new CryptographicException(); 175throw new CryptographicException(); 290return new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.EncryptDecrypt.cs (8)
45throw new CryptographicException(SR.Cryptography_RSA_DecryptWrongSize); 52throw new CryptographicException( 75throw new CryptographicException(SR.Cryptography_UnsupportedPaddingMode); 112throw new CryptographicException(SR.Cryptography_UnsupportedPaddingMode); 127throw new CryptographicException(SR.Cryptography_RSA_DecryptWrongSize); 134throw new CryptographicException( 157throw new CryptographicException(SR.Cryptography_UnsupportedPaddingMode); 192throw new CryptographicException(SR.Cryptography_UnsupportedPaddingMode);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.ImportExport.cs (1)
87throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.SignVerify.cs (5)
51throw new CryptographicException(SR.Cryptography_SignHash_WrongSize); 73throw new CryptographicException(SR.Cryptography_UnsupportedPaddingMode); 94throw new CryptographicException(SR.Cryptography_SignHash_WrongSize); 111throw new CryptographicException(SR.Cryptography_UnsupportedPaddingMode); 159throw new CryptographicException(SR.Cryptography_UnsupportedPaddingMode);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (3)
25throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 51throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 113throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.Pkcs1.cs (4)
27throw new CryptographicException( 101throw new CryptographicException(SR.Cryptography_InvalidRsaParameters); 117throw new CryptographicException(SR.Cryptography_InvalidRsaParameters); 127throw new CryptographicException(SR.Cryptography_NotValidPrivateKey);
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (3)
1235throw new CryptographicException(SR.Argument_PublicKeyWrongSizeForAlgorithm); 1297throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 1972throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsaAlgorithm.cs (1)
262throw new CryptographicException(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (1)
566throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmName));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdfImplementationCng.cs (2)
83throw new CryptographicException(); 212throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellman.cs (7)
350throw new CryptographicException(); 377throw new CryptographicException(); 1023throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 1028throw new CryptographicException(SR.Argument_PublicKeyWrongSizeForAlgorithm); 1492throw new CryptographicException(); 1590throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 1599throw new CryptographicException(SR.Argument_PrivateKeyWrongSizeForAlgorithm);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (4)
116throw new CryptographicException(); 123throw new CryptographicException(); 245throw new CryptographicException(SR.Cryptography_NotValidPrivateKey); 255throw new CryptographicException(SR.Cryptography_NotValidPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanImplementation.Windows.cs (3)
88throw new CryptographicException(); 98throw new CryptographicException(); 276throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519WindowsHelpers.cs (3)
35throw new CryptographicException(); 44throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 56throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (1)
69throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.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\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (15)
83throw new CryptographicException(SR.Cryptography_Pfx_NoCertificates); 149throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 257throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 512throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 520throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 525throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 558throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 567throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 594throw new CryptographicException( 602throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 612throw new CryptographicException( 1128throw new CryptographicException(); 1156throw new CryptographicException(); 1186throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 1264throw new CryptographicException();
System\Security\Cryptography\Aes.cs (9)
143throw new CryptographicException(SR.Cryptography_OverlappingBuffers); 192throw new CryptographicException(); 268throw new CryptographicException(SR.Cryptography_OverlappingBuffers); 288throw new CryptographicException(); 331throw new CryptographicException(SR.Cryptography_KeyWrap_DecryptFailed); 473throw new CryptographicException(SR.Cryptography_OverlappingBuffers); 603throw new CryptographicException(SR.Cryptography_OverlappingBuffers); 619throw new CryptographicException(); 728throw new CryptographicException(SR.Cryptography_KeyWrap_DecryptFailed);
System\Security\Cryptography\AesCng.Windows.cs (2)
302throw new CryptographicException(SR.Cryptography_InvalidKeySize); 330throw new CryptographicException(SR.Cryptography_InvalidCipherMode);
System\Security\Cryptography\AesImplementation.cs (1)
303throw new CryptographicException(SR.Format(SR.Cryptography_CipherModeFeedbackNotSupported, feedback, CipherMode.CFB));
System\Security\Cryptography\AsymmetricAlgorithm.cs (1)
35throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (2)
26throw new CryptographicException( 47throw new CryptographicException(
System\Security\Cryptography\BasicSymmetricCipherLiteBCrypt.cs (1)
78throw new CryptographicException(SR.Cryptography_UnexpectedTransformTruncation);
System\Security\Cryptography\BasicSymmetricCipherLiteNCrypt.cs (2)
48_ => throw new CryptographicException(SR.Cryptography_InvalidCipherMode), 88throw new CryptographicException(SR.Cryptography_UnexpectedTransformTruncation);
System\Security\Cryptography\CapiHelper.DSA.Windows.cs (1)
48throw new CryptographicException(SR.Cryptography_InvalidDSASignatureSize);
System\Security\Cryptography\CapiHelper.Windows.cs (8)
540throw new CryptographicException(SR.Cryptography_OpenInvalidHandle); 614throw new CryptographicException(SR.CryptSetKeyParam_Failed, GetErrorCode().ToString()); 639throw new CryptographicException(SR.CryptSetKeyParam_Failed, GetErrorCode().ToString()); 755throw new CryptographicException(SR.Format(SR.Cryptography_CSP_WrongKeySpec, keyType)); 836throw new CryptographicException("Cryptography_OAEP_XPPlus_Only"); 840throw new CryptographicException("Cryptography_OAEPDecoding"); 1039throw new CryptographicException(SR.Cryptography_InvalidOID); 1284throw new CryptographicException(SR.Cryptography_PasswordDerivedBytes_InvalidIV);
System\Security\Cryptography\ChaCha20Poly1305.cs (1)
46throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\CngHelpers.cs (12)
78throw new CryptographicException(SR.Cryptography_KeyBlobParsingError); 82throw new CryptographicException(SR.Cryptography_KeyBlobParsingError); 90throw new CryptographicException(SR.Format(SR.Cryptography_CngKeyWrongAlgorithm, algorithmName, algorithm)); 94throw new CryptographicException(SR.Cryptography_KeyBlobParsingError); 99throw new CryptographicException(SR.Cryptography_KeyBlobParsingError); 103throw new CryptographicException(SR.Cryptography_KeyBlobParsingError); 115throw new CryptographicException(SR.Cryptography_InvalidRsaParameters); 128throw new CryptographicException(SR.Cryptography_InvalidRsaParameters); 141throw new CryptographicException(SR.Cryptography_InvalidRsaParameters); 160throw new CryptographicException(SR.Cryptography_InvalidRsaParameters); 283throw new CryptographicException(SR.Cryptography_NotValidPrivateKey); 293throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
System\Security\Cryptography\CngSymmetricAlgorithmCore.cs (6)
47throw new CryptographicException(SR.Format(SR.Cryptography_CngKeyWrongAlgorithm, actualAlgorithm.Algorithm, algorithm)); 62throw new CryptographicException( 178throw new CryptographicException(SR.Cryptography_MissingIV); 298throw new CryptographicException(SR.Format(SR.Cryptography_CipherModeFeedbackNotSupported, feedbackSizeInBits, CipherMode.CFB)); 305throw new CryptographicException(SR.Format(SR.Cryptography_CipherModeFeedbackNotSupported, feedbackSizeInBits, CipherMode.CFB)); 321throw new CryptographicException(
System\Security\Cryptography\ConcurrencyBlock.cs (1)
19throw new CryptographicException(SR.Cryptography_ConcurrentUseNotSupported);
System\Security\Cryptography\CryptographicOperations.cs (3)
848throw new CryptographicException(); 940throw new CryptographicException(); 1134throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name));
System\Security\Cryptography\CspKeyContainerInfo.Windows.cs (2)
211throw new CryptographicException(SR.Cryptography_CSP_NotFound); 244throw new CryptographicException(SR.Cryptography_CSP_NotFound);
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\DESCryptoServiceProvider.Windows.cs (3)
74throw new CryptographicException(SR.Cryptography_InvalidKey_Weak, "DES"); 76throw new CryptographicException(SR.Cryptography_InvalidKey_SemiWeak, "DES"); 93throw new CryptographicException(SR.Cryptography_InvalidIVSize);
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.Windows.cs (4)
454throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 468throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 485throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey); 490throw new CryptographicException(SR.Format(SR.Cryptography_InvalidHashSize, "SHA1", SHA1.HashSizeInBytes));
System\Security\Cryptography\EccKeyFormatHelper.cs (28)
86throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 108throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 120throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 127throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 133throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 175throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 182throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 189throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 195throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 223throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 239throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 253throw new CryptographicException(SR.Cryptography_ECC_NamedCurvesOnly); 274throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 287throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 292throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 313throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 333throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 346throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 367throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 374throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 395throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 426throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 487throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey); 530throw new CryptographicException( 641throw new CryptographicException(SR.Cryptography_InvalidECCharacteristic2Curve); 692throw new CryptographicException(SR.Cryptography_InvalidECCharacteristic2Curve); 705throw new CryptographicException(SR.Cryptography_InvalidECCharacteristic2Curve); 714throw new CryptographicException(SR.Cryptography_InvalidECCharacteristic2Curve);
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\ECDsa.cs (2)
159throw new CryptographicException(); 441throw new CryptographicException();
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.Windows.cs (4)
137throw new CryptographicException(); 173throw new CryptographicException(); 266throw new CryptographicException(); 272throw new CryptographicException();
System\Security\Cryptography\Helpers.cs (14)
45throw new CryptographicException(SR.Cryptography_MissingIV); 175throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 190throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 197throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 313throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 320throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 336throw new CryptographicException(); 357throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 435_ => throw new CryptographicException(), 460throw new CryptographicException(SR.Cryptography_HashAlgorithmNameNullOrEmpty); 463throw new CryptographicException(SR.Format(SR.Cryptography_UnknownAlgorithmIdentifier, exportParameters.HashAlgorithm.Name)); 473throw new CryptographicException(SR.Cryptography_HashAlgorithmNameNullOrEmpty); 475throw new CryptographicException(SR.Format(SR.Cryptography_UnknownAlgorithmIdentifier, exportParameters.HashAlgorithm.Name)); 479throw new CryptographicException(SR.Format(SR.Cryptography_UnknownAlgorithmIdentifier, exportParameters.EncryptionAlgorithm));
System\Security\Cryptography\HKDF.Windows.cs (1)
224throw new CryptographicException();
System\Security\Cryptography\HMACCommon.cs (1)
101throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, _hashAlgorithmId));
System\Security\Cryptography\KeyBlobHelpers.cs (2)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 55throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
System\Security\Cryptography\LiteHash.Windows.cs (4)
91return new CryptographicException(); 106throw new CryptographicException(); 211return new CryptographicException(); 226throw new CryptographicException();
System\Security\Cryptography\MD5CryptoServiceProvider.cs (1)
31throw new CryptographicException();
System\Security\Cryptography\Oid.cs (2)
46throw new CryptographicException(SR.Cryptography_Oid_InvalidName); 57throw new CryptographicException(SR.Cryptography_Oid_InvalidValue);
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\PasswordDeriveBytes.Windows.cs (4)
18throw new CryptographicException(SR.Cryptography_InvalidKeySize); 22throw new CryptographicException(SR.Cryptography_PasswordDerivedBytes_InvalidAlgorithm); 26throw new CryptographicException(SR.Cryptography_PasswordDerivedBytes_InvalidAlgorithm); 29throw new CryptographicException(SR.Cryptography_PasswordDerivedBytes_InvalidIV);
System\Security\Cryptography\Pbkdf2Implementation.Windows.cs (3)
78throw new CryptographicException(); 194throw new CryptographicException(); 219throw new CryptographicException();
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.Windows.cs (1)
103throw new CryptographicException(SR.Cryptography_InvalidIVSize);
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); 905throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 932throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 1398throw new CryptographicException(SR.Argument_DestinationTooShort); 1417throw new CryptographicException(SR.Argument_DestinationTooShort);
System\Security\Cryptography\RSA.Xml.cs (1)
19throw new CryptographicException(
System\Security\Cryptography\RSABCrypt.cs (9)
192throw new CryptographicException(SR.Cryptography_RSA_DecryptWrongSize); 210throw new CryptographicException(SR.Cryptography_UnsupportedPaddingMode); 237throw new CryptographicException( 255throw new CryptographicException(SR.Cryptography_UnsupportedPaddingMode); 274throw new CryptographicException(SR.Cryptography_SignHash_WrongSize); 301throw new CryptographicException(SR.Cryptography_UnsupportedPaddingMode); 351throw new CryptographicException(SR.Cryptography_UnsupportedPaddingMode); 426throw new CryptographicException(); 439throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey);
System\Security\Cryptography\RSACryptoServiceProvider.Windows.cs (4)
462throw new CryptographicException(SR.Cryptography_CSP_NoPrivateKey); 560_ => throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name), 624throw new CryptographicException(SR.Cryptography_RSA_DecryptWrongSize); 684return new CryptographicException(SR.Cryptography_InvalidPaddingMode);
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\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)
82throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 99throw 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 (12)
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(); 160throw new CryptographicException(); 171throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 181throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 202throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 219throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 231throw new CryptographicException(); 239throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
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)
79throw new CryptographicException(); 89throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 97throw new CryptographicException(); 107throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 157throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 174throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 217throw new CryptographicException(); 225throw new CryptographicException();
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (7)
58throw new CryptographicException(); 67throw new CryptographicException(); 75throw new CryptographicException(); 91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 103throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 122throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 128throw 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\CertificateHelpers.Windows.cs (1)
195throw new CryptographicException(SR.Format(SR.Cryptography_InvalidHandle, nameof(handle)));
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.Import.cs (1)
102throw new CryptographicException(
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
710throw new CryptographicException();
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (10)
79throw new CryptographicException( 163throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 170throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 178throw new CryptographicException( 194throw new CryptographicException(SR.Cryptography_CertReq_SignatureVerificationFailed); 214throw new CryptographicException( 227throw new CryptographicException( 237throw new CryptographicException(SR.Cryptography_CertReq_Load_DuplicateExtensionRequests); 286throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 296throw 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 (7)
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); 289throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 296throw new CryptographicException(SR.Cryptography_NoPemOfLabel, PemLabels.X509CertificateRevocationList);
System\Security\Cryptography\X509Certificates\ChainPal.Windows.cs (1)
30throw new CryptographicException(SR.Cryptography_InvalidContextHandle, nameof(chainContext));
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\PublicKey.cs (1)
468throw 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.Windows.cs (2)
26throw new CryptographicException(SR.Cryptography_InvalidStoreHandle, nameof(storeHandle)); 98throw new CryptographicException(SR.Cryptography_X509_StoreNotOpen);
System\Security\Cryptography\X509Certificates\StorePal.Windows.Export.cs (3)
87throw new CryptographicException(SR.Cryptography_X509_InvalidContentType); 178throw new CryptographicException(); 199throw new CryptographicException();
System\Security\Cryptography\X509Certificates\StorePal.Windows.Import.cs (1)
90throw new CryptographicException(
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (1)
115throw new CryptographicException(SR.Cryptography_Invalid_IA5String);
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\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 (17)
1394_ => throw new CryptographicException(SR.Format(SR.Cryptography_UnknownKeyAlgorithm, keyAlgorithm)), 1482_ => throw new CryptographicException(SR.Format(SR.Cryptography_UnknownKeyAlgorithm, keyAlgorithm)), 1539throw new CryptographicException(SR.Cryptography_X509_NoPemCertificate); 1553throw new CryptographicException(SR.Cryptography_X509_NoPemCertificate); 1563throw new CryptographicException(SR.Cryptography_X509_NoPemCertificate); 1737throw new CryptographicException(SR.Cryptography_X509_TooManySANs); 1909throw new CryptographicException(SR.Cryptography_X509_NoOrMismatchedPemKey); 1925throw new CryptographicException(SR.Cryptography_X509_NoOrMismatchedPemKey, ae); 1950throw new CryptographicException(SR.Cryptography_X509_NoOrMismatchedPemKey, ae); 1956throw new CryptographicException(SR.Cryptography_X509_NoOrMismatchedPemKey); 2044throw new CryptographicException(SR.Cryptography_X509_NoOrMismatchedPemKey, ce); 2057throw new CryptographicException(SR.Cryptography_X509_NoOrMismatchedPemKey); 2127throw new CryptographicException(SR.Cryptography_X509_NoOrMismatchedPemKey, ce); 2135throw new CryptographicException(SR.Cryptography_X509_NoOrMismatchedPemKey); 2170throw new CryptographicException(); 2187throw new CryptographicException(); 2220throw 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.Windows.cs (2)
135throw new CryptographicException(SR.Cryptography_Pfx_NoCertificates); 214throw new CryptographicException();
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)
132throw new CryptographicException( 144throw 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 (40)
System\Security\Cryptography\Cose\CborReaderExtensions.cs (1)
18throw new CryptographicException(SR.DecodeErrorWhileDecodingSeeInnerEx, ex);
System\Security\Cryptography\Cose\CoseHelpers.cs (3)
180=> throw new CryptographicException(SR.Format(SR.Sign1UnknownCoseAlgorithm, alg)); 183=> throw new CryptographicException(SR.Format(SR.Sign1UnknownCoseAlgorithm, BigInteger.MinusOne - new BigInteger(alg))); 193throw new CryptographicException(SR.Sign1VerifyAlgIsRequired);
System\Security\Cryptography\Cose\CoseKey.cs (11)
78_ => throw new CryptographicException(SR.Format(SR.Sign1UnknownCoseAlgorithm, untrustedAlgorithm)) 91_ => throw new CryptographicException(SR.Format(SR.Sign1UnknownCoseAlgorithm, untrustedAlgorithm)) 102_ => throw new CryptographicException(SR.Format(SR.Sign1UnknownCoseAlgorithm, untrustedAlgorithm)) 106=> key.Algorithm.Name == expected.Name ? new CoseKey(key) : throw new CryptographicException(SR.Format(SR.Sign1UnknownCoseAlgorithm, untrustedAlgorithm)); 119throw new CryptographicException(SR.Format(SR.Sign1UnknownCoseAlgorithm, alg)); 144throw new CryptographicException(SR.Format(SR.Sign1UnknownCoseAlgorithm, alg)); 168_ => throw new CryptographicException(SR.Format(SR.Sign1UnknownCoseAlgorithm, algString)) 186throw new CryptographicException(SR.Format(SR.Sign1UnsupportedKey, KeyType.ToString())); 211throw new CryptographicException(SR.Format(SR.Sign1UnsupportedKey, KeyType.ToString())); 220throw new CryptographicException(); 231throw new CryptographicException();
System\Security\Cryptography\Cose\CoseMessage.cs (21)
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)); 312_ => throw new CryptographicException(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeSign1MapLabelWasIncorrect)) 326throw new CryptographicException(e.Message, e.InnerException); 330throw new CryptographicException(SR.DecodeErrorWhileDecodingSeeInnerEx, e); 348throw new CryptographicException(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeSign1PayloadWasIncorrect)); 371throw new CryptographicException(SR.Format(SR.DecodeErrorWhileDecoding, SR.MultiSignMessageMustCarryAtLeastOneSignature)); 385throw new CryptographicException(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeCoseSignatureMustBeArrayOfThree)); 396throw new CryptographicException(SR.Sign1SignHeaderDuplicateLabels); 607_ => throw new CryptographicException(SR.CriticalHeadersLabelWasIncorrect) 619throw new CryptographicException(SR.CriticalHeadersMustBeArrayOfAtLeastOne);
System\Security\Cryptography\Cose\CoseSign1Message.cs (2)
1036throw new CryptographicException(SR.Sign1VerifyAlgHeaderWasIncorrect); 1048throw new CryptographicException(SR.Format(SR.Sign1VerifyAlgDoesNotMatchKeyAlgorithm, algorithm, key.Algorithm));
System\Security\Cryptography\Cose\CoseSignature.cs (2)
686throw new CryptographicException(SR.Sign1VerifyAlgHeaderWasIncorrect); 698throw new CryptographicException(SR.Format(SR.Sign1VerifyAlgDoesNotMatchKeyAlgorithm, algorithm, key.Algorithm));
System.Security.Cryptography.Pkcs (476)
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)
30throw 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); 105throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 120throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 130throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 135throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 201throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, algorithmIdentifier);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (2)
74throw new CryptographicException(); 89throw 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\Pal\Windows\DecryptorPalWindows.Decrypt.cs (2)
35exception = new CryptographicException(SR.Cryptography_Cms_Ktri_RSARequired); 246return new CryptographicException(SR.Format(SR.Cryptography_Cms_Invalid_Originator_Identifier_Choice, originatorChoice));
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (4)
215throw new CryptographicException(SR.Format(SR.Cryptography_Cms_Invalid_Subject_Identifier_Type, certId.dwIdChoice)); 237throw new CryptographicException(SR.Format(SR.Cryptography_Cms_Invalid_Subject_Identifier_Type, subjectIdentifierType)); 385throw new CryptographicException(); 399throw new CryptographicException();
Internal\Cryptography\Pal\Windows\KeyAgreeRecipientInfoPalWindows.cs (1)
104_ => throw new CryptographicException(SR.Format(SR.Cryptography_Cms_Invalid_Originator_Identifier_Choice, originatorChoice)),
Internal\Cryptography\Pal\Windows\PkcsPalWindows.Encrypt.cs (2)
73throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 96throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
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\runtime\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); 404throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (8)
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); 141throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 153throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 176throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 193throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (9)
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); 144throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 153throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 174throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 191throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 204throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (4)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 129throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 146throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (11)
64throw new CryptographicException(); 73throw new CryptographicException(); 82throw new CryptographicException(); 89throw new CryptographicException(); 99throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 107throw new CryptographicException(); 116throw new CryptographicException(); 124throw new CryptographicException(); 140throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 152throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 187throw new CryptographicException();
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (4)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 129throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 146throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (17)
72throw new CryptographicException(); 81throw new CryptographicException(); 90throw new CryptographicException(); 99throw new CryptographicException(); 106throw new CryptographicException(); 116throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 124throw new CryptographicException(); 133throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 142throw new CryptographicException(); 151throw new CryptographicException(); 160throw new CryptographicException(); 169throw new CryptographicException(); 177throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 184throw new CryptographicException(); 200throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 212throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 282throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\OaepParamsAsn.xml.cs (2)
119throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 136throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (2)
47throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (2)
47throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (2)
84throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 101throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (6)
80throw new CryptographicException(); 89throw new CryptographicException(); 97throw new CryptographicException(); 112throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 124throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 158throw new CryptographicException();
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (4)
84throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 101throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 201throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 218throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (4)
55throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 72throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 156throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 173throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\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\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (17)
64throw new CryptographicException(); 71throw new CryptographicException(); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 89throw new CryptographicException(); 96throw new CryptographicException(); 106throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 114throw new CryptographicException(); 121throw new CryptographicException(); 131throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 139throw new CryptographicException(); 146throw new CryptographicException(); 156throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 164throw new CryptographicException(); 172throw new CryptographicException(); 188throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 200throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 241throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (8)
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); 127throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 137throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 159throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 176throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\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\runtime\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\runtime\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\runtime\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\runtime\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\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (6)
58throw new CryptographicException(); 67throw new CryptographicException(); 75throw new CryptographicException(); 91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 103throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 137throw new CryptographicException();
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (5)
65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 82throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 179throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 202throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 219throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (5)
15throw new CryptographicException(SR.Cryptography_Pkcs_InvalidSignatureParameters); 20throw new CryptographicException( 27throw new CryptographicException(SR.Cryptography_Pkcs_InvalidSignatureParameters); 37throw new CryptographicException( 53throw new CryptographicException(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (2)
150throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 167throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (4)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 134throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 151throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (4)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 129throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 146throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (6)
50throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 86throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 103throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 165throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 200throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 217throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AsnWriter\AsnWriterExtensions.cs (2)
20throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 34throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
63throw new CryptographicException(SR.Cryptography_Pkcs9_MultipleSigningTimeNotAllowed);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoThrowHelper.Windows.cs (1)
29return new CryptographicException(message)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (5)
138throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashOid)); 213throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmName), ex); 230throw new CryptographicException( 267throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, ace); 272throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (8)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 53throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 78throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 84throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 126throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 135throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 154throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 162throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (11)
143throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 173throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 180throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 325throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 350throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 375throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 398throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 417throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 430throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 453throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 466throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (38)
33return new CryptographicException(SR.Cryptography_AlgKdfRequiresChars, algId); 59throw new CryptographicException( 74throw new CryptographicException( 107throw new CryptographicException( 170throw new CryptographicException( 270throw new CryptographicException( 302throw new CryptographicException( 329throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, prf.Name); 416throw new CryptographicException(); 445throw new CryptographicException(); 545throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 552throw new CryptographicException( 604throw new CryptographicException( 628throw new CryptographicException(); 633throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 656throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 674throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 681throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 692throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 711throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 723throw new CryptographicException(SR.Cryptography_UnknownAlgorithmIdentifier, algId); 733throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 749throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 756throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 768throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 777throw new CryptographicException( 786throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 795_ => throw new CryptographicException( 806throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 834throw new CryptographicException(SR.Argument_InvalidValue, e); 857throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 864throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 869throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 908throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 918throw new CryptographicException(); 1038throw new CryptographicException(); 1051throw new CryptographicException(); 1137throw new CryptographicException(SR.Argument_InvalidValue);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
215throw new CryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (2)
95throw new CryptographicException(SR.Argument_InvalidOidValue); 112throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (6)
70throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 231throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 239throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 244throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 358throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 560throw new CryptographicException();
src\runtime\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\runtime\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)
84throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 101throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (6)
58throw new CryptographicException(); 67throw new CryptographicException(); 75throw new CryptographicException(); 91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 103throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 128throw 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 (5)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 115throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 137throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 154throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (7)
60throw new CryptographicException(); 69throw new CryptographicException(); 78throw new CryptographicException(); 86throw new CryptographicException(); 102throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 114throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 155throw 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)
58throw new CryptographicException(); 67throw new CryptographicException(); 75throw new CryptographicException(); 91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 103throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 137throw new CryptographicException();
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (6)
58throw new CryptographicException(); 67throw new CryptographicException(); 75throw new CryptographicException(); 91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 103throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 128throw 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)
59throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 115throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 132throw 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 (8)
59throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 130throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 147throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 300throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 341throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 356throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 379throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 396throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (5)
57throw new CryptographicException(); 72throw new CryptographicException(); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 100throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 131throw 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)
58throw new CryptographicException(
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (1)
60throw new CryptographicException(
System\Security\Cryptography\Pkcs\CmsSignature.MLDsa.cs (1)
49throw new CryptographicException(
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (4)
61throw new CryptographicException( 206throw new CryptographicException(SR.Cryptography_Pkcs_InvalidSignatureParameters); 311throw new CryptographicException(SR.Cryptography_Pkcs_PssParametersMissing); 321throw new CryptographicException(
System\Security\Cryptography\Pkcs\CmsSignature.SlhDsa.cs (1)
60throw new CryptographicException(
System\Security\Cryptography\Pkcs\CmsSigner.cs (5)
238throw new CryptographicException(SR.Cryptography_Cms_Signing_RequiresPrivateKey); 379throw new CryptographicException(); 405throw new CryptographicException(SR.Cryptography_Cms_CannotDetermineSignatureAlgorithm); 429throw new CryptographicException(SR.Cryptography_Cms_CannotDetermineSignatureAlgorithm); 474throw 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)
221throw new CryptographicException(SR.Cryptography_Cms_InvalidMessageType); 259throw new CryptographicException(); 269throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 298throw new CryptographicException(SR.Cryptography_Cms_Sign_Empty_Content); 307throw new CryptographicException(SR.Cryptography_Cms_Sign_No_Signature_First_Signer); 403throw new CryptographicException(SR.Cryptography_Cms_SignerNotFound); 434throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 610throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 636throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 670throw new CryptographicException(SR.Cryptography_Cms_CertificateAlreadyInCollection); 719throw new CryptographicException(SR.Cryptography_Cms_NoCertificateFound);
System\Security\Cryptography\Pkcs\SignerInfo.cs (24)
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); 643throw new CryptographicException(SR.Cryptography_BadHashValue); 650throw new CryptographicException(SR.Cryptography_BadHashValue); 665throw new CryptographicException(SR.Cryptography_Cms_MissingAuthenticatedAttribute); 731throw new CryptographicException(SR.Cryptography_Cms_MissingAuthenticatedAttribute); 781throw new CryptographicException(SR.Cryptography_Cms_MissingAuthenticatedAttribute); 850throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, SignatureAlgorithm.Value); 859throw new CryptographicException(SR.Cryptography_BadSignature); 874throw new CryptographicException(SR.Cryptography_Cms_TrustFailure, status.StatusInformation); 904throw 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\runtime\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 (160)
System\Security\Cryptography\Xml\CanonicalizationDispatcher.cs (2)
21throw new CryptographicException(SR.Cryptography_Xml_MaxDepthExceeded); 58throw new CryptographicException(SR.Cryptography_Xml_MaxDepthExceeded);
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)
45throw new CryptographicException(SR.Cryptography_Xml_MissingCipherData); 110throw new CryptographicException(SR.Cryptography_Xml_MissingCipherData);
System\Security\Cryptography\Xml\EncryptedKey.cs (2)
81throw new CryptographicException(SR.Cryptography_Xml_MissingCipherData); 183throw new CryptographicException(SR.Cryptography_Xml_MissingCipherData);
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
90throw new CryptographicException(SR.Cryptography_Xml_ReferenceTypeRequired);
System\Security\Cryptography\Xml\EncryptedType.cs (1)
85throw new CryptographicException(SR.Cryptography_Xml_MaxDepthExceeded);
System\Security\Cryptography\Xml\EncryptedXml.cs (23)
215throw new CryptographicException(SR.Cryptography_Xml_UriNotSupported); 225throw new CryptographicException(SR.Cryptography_Xml_UriNotSupported); 229throw new CryptographicException(SR.Cryptography_Xml_NotSupportedCryptographicTransform); 241throw new CryptographicException(SR.Cryptography_Xml_UriNotSupported); 248throw new CryptographicException(SR.Cryptography_Xml_UriNotSupported); 252throw new CryptographicException(SR.Cryptography_Xml_NotSupportedCryptographicTransform); 259throw new CryptographicException(SR.Cryptography_Xml_UriNotResolved, cipherData.CipherReference.Uri); 278throw new CryptographicException(SR.Cryptography_Xml_MissingCipherData); 301throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 317throw new CryptographicException(SR.Cryptography_Xml_UriNotSupported); 394throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 399throw new CryptographicException(SR.Cryptography_Xml_MissingDecryptionKey); 404throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 442throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 466throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 513throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 518throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 540throw new CryptographicException(SR.Cryptography_Xml_NotSupportedCryptographicTransform); 603throw new CryptographicException(SR.Cryptography_Xml_MissingEncryptionKey); 646throw new CryptographicException(SR.Cryptography_Xml_NotSupportedCryptographicTransform); 686throw new CryptographicException(SR.Cryptography_Xml_MissingDecryptionKey); 900throw new CryptographicException(SR.Cryptography_Xml_NotSupportedCryptographicTransform); 942throw 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)
73throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfo"); 88throw 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 (8)
97throw new CryptographicException(SR.Cryptography_Xml_TransformIncorrectInputType); 114throw new CryptographicException(SR.Cryptography_Xml_TransformIncorrectInputType); 131throw new CryptographicException(SR.Cryptography_Xml_TransformIncorrectInputType); 134throw new CryptographicException(SR.Cryptography_Xml_TransformIncorrectInputType); 155throw new CryptographicException(SR.Cryptography_Xml_TransformIncorrectInputType); 185throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Transforms"); 189throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Transforms"); 198throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform);
System\Security\Cryptography\Xml\Utils.cs (3)
321throw new CryptographicException(SR.Cryptography_Xml_InvalidReference); 333throw new CryptographicException(SR.Cryptography_Xml_UriRequired); 343throw new CryptographicException(SR.Cryptography_Xml_InvalidReference);
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (7)
90throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 102throw new CryptographicException(SR.Cryptography_Xml_UriRequired); 105throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 112throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 208throw new CryptographicException(SR.Cryptography_Xml_MissingDecryptionKey); 240throw new CryptographicException(SR.Cryptography_Xml_MaxDecryptableDataElementsExceeded); 258throw new CryptographicException(SR.Cryptography_Xml_MaxDepthExceeded);
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); 132throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 139throw new CryptographicException(SR.Cryptography_Xml_XrmlMissingContext); 155throw new CryptographicException(SR.Cryptography_Xml_XrmlMissingIssuer); 163throw new CryptographicException(SR.Cryptography_Xml_XrmlMissingLicence); 183throw new CryptographicException(SR.Cryptography_Xml_XrmlMissingIRelDecryptor);
System.ServiceModel.Primitives (3)
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (3)
211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SRP.Format(SRP.UnsupportedAlgorithmForCryptoOperation, 261throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SRP.Format(SRP.UnsupportedAlgorithmForCryptoOperation, 336throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SRP.Format(SRP.UnsupportedAlgorithmForCryptoOperation,
System.Windows.Extensions (6)
System\Security\Cryptography\X509Certificates\X509Certificate2UI.cs (4)
50throw new CryptographicException(SR.Format(SR.Cryptography_InvalidHandle, nameof(safeCertContext))); 86throw new CryptographicException(dwErrorCode); 117Exception e = new CryptographicException(Marshal.GetLastPInvokeError()); 169throw new CryptographicException(dwErrorCode);
System\Security\Cryptography\X509Certificates\X509Utils.cs (2)
36Exception e = new CryptographicException(Marshal.GetLastPInvokeError()); 53throw new CryptographicException(Marshal.GetLastPInvokeError());
831 references to CryptographicException
aspire (5)
Certificates\CertificateGeneration\UnixCertificateManager.cs (1)
141catch (Exception ex) when (ex is CryptographicException or IOException or UnauthorizedAccessException)
Certificates\CertificateGeneration\WindowsCertificateManager.cs (1)
96catch (CryptographicException exception) when (exception.HResult == UserCancelledHResult || exception.HResult == UserCancelledErrorCode)
Certificates\NativeCertificateToolRunner.cs (1)
189catch (CryptographicException ex) when (ex.HResult == UserCancelledHResult || ex.HResult == UserCancelledErrorCode)
Utils\EnvironmentChecker\DevCertsCheck.cs (2)
317catch (Exception ex) when (ex is CryptographicException or IOException or UnauthorizedAccessException) 402catch (Exception ex) when (ex is CryptographicException or IOException or UnauthorizedAccessException)
Aspire.Hosting (1)
ApplicationModel\HttpsCertificateAnnotation.cs (1)
45catch (CryptographicException ex)
dotnet-dev-certs (1)
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
99catch (CryptographicException exception) when (exception.HResult == UserCancelledHResult)
Infrastructure.Common (3)
CertificateManager.cs (3)
57catch(CryptographicException) 114catch (CryptographicException inner) 157catch (CryptographicException inner)
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\OpaqueRedirection.cs (1)
81catch (CryptographicException ex)
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\aspnetcore\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\aspnetcore\src\DataProtection\shared\src\ExceptionExtensions.cs (1)
17return !(ex is 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\aspnetcore\src\DataProtection\shared\src\ExceptionExtensions.cs (1)
17return !(ex is CryptographicException);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
99catch (CryptographicException exception) when (exception.HResult == UserCancelledHResult)
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\ClientCertLoader.cs (1)
282catch (CryptographicException exception)
RequestProcessing\Request.cs (1)
393catch (CryptographicException ce)
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Middleware\HttpsConnectionMiddleware.cs (2)
296catch (Exception exception) when (exception is CryptographicException || exception is SecurityException) 337catch (CryptographicException ex)
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
99catch (CryptographicException exception) when (exception.HResult == UserCancelledHResult)
TlsConfigurationLoader.cs (1)
168catch (CryptographicException)
Microsoft.Bcl.Cryptography (8)
System\Security\Cryptography\X509Certificates\X509CertificateKeyAccessors.cs (8)
38/// <exception cref="CryptographicException"> 82/// <exception cref="CryptographicException"> 149/// <exception cref="CryptographicException"> 193/// <exception cref="CryptographicException"> 305/// <exception cref="CryptographicException"> 335/// <exception cref="CryptographicException"> 407/// <exception cref="CryptographicException"> 452/// <exception cref="CryptographicException">
Microsoft.Build.Tasks.Core (3)
BootstrapperUtil\BootstrapperBuilder.cs (1)
2175catch (System.Security.Cryptography.CryptographicException)
ManifestUtil\mansign2.cs (1)
880catch (CryptographicException)
SignFile.cs (1)
88catch (CryptographicException ex)
Mono.Cecil (2)
Mono.Security.Cryptography\CryptoConvert.cs (2)
150 catch (CryptographicException) { 212 catch (CryptographicException) {
mscorlib (1)
src\runtime\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))]
NuGet.Commands (4)
SignCommand\CertificateProvider.cs (3)
64catch (CryptographicException ex) when (ex.InnerException is FileNotFoundException) 72catch (CryptographicException ex) 244catch (CryptographicException ex)
SignCommand\SignCommandRunner.cs (1)
46if (e is System.Security.Cryptography.CryptographicException ce)
NuGet.Packaging (7)
Signing\Authoring\X509SignatureProvider.cs (2)
140catch (CryptographicException ex) when (ex.HResult == INVALID_PROVIDER_TYPE_HRESULT) 176catch (CryptographicException ex) when (ex.HResult == INVALID_PROVIDER_TYPE_HRESULT)
Signing\TrustStore\CertificateBundleX509ChainFactory.cs (1)
53ex is CryptographicException ||
Signing\Utility\AttributeUtility.cs (1)
316/// <exception cref="CryptographicException">Thrown if multiple attribute instances with the specified OID were found.</exception>
Signing\Utility\CertificateUtility.cs (2)
526catch (System.Security.Cryptography.CryptographicException exception) 575catch (System.Security.Cryptography.CryptographicException exception)
Signing\Verification\PackageSignatureVerifier.cs (1)
72catch (CryptographicException e)
PresentationUI (4)
MS\Internal\Documents\DocumentSignatureManager.cs (4)
499catch (CryptographicException) 590catch (CryptographicException e) 1200private int GetErrorCode(CryptographicException ce) 1205Type t = typeof(CryptographicException);
RepoTasks (1)
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
99catch (CryptographicException exception) when (exception.HResult == UserCancelledHResult)
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\AuthenticablePrincipal.cs (1)
557catch (System.Security.Cryptography.CryptographicException)
System.Net.Quic (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
117static CryptographicException Fail(int result)
System.Net.Security (4)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
117static CryptographicException Fail(int result)
System\Net\CertificateValidationPal.cs (1)
74if (exception is CryptographicException || exception is SecurityException)
System\Net\Security\SslStream.Protocol.cs (2)
242catch (CryptographicException) 269catch (CryptographicException) { }
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
759[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.CryptographicException))]
System.Security.Cryptography (686)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\AesBCryptModes.cs (1)
48catch (CryptographicException ex)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Cng.cs (1)
120private static CryptographicException CreateCryptographicException(NTSTATUS ntStatus)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\TripleDesBCryptModes.cs (1)
51catch (CryptographicException ex)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeCertContextHandleWithKeyContainerDeletion.cs (1)
67catch (CryptographicException)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AesGcm.cs (6)
63/// <exception cref="CryptographicException"> 100/// <exception cref="CryptographicException"> 165/// <exception cref="CryptographicException">The encryption operation failed.</exception> 202/// <exception cref="CryptographicException">The encryption operation failed.</exception> 241/// <exception cref="CryptographicException"> 278/// <exception cref="CryptographicException">
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.cs (1)
15internal static CryptographicException ToCryptographicException(this Interop.NCrypt.ErrorCode errorCode)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngPkcs8.cs (6)
122catch (CryptographicException) 174catch (CryptographicException e) 187catch (CryptographicException) 224catch (CryptographicException) 241catch (CryptographicException e) 255catch (CryptographicException)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (37)
124/// <exception cref="CryptographicException"> 201/// <exception cref="CryptographicException"> 251/// <exception cref="CryptographicException"> 281/// <exception cref="CryptographicException"> 318/// <exception cref="CryptographicException"> 356/// <exception cref="CryptographicException"> 373/// <exception cref="CryptographicException"> 418/// <exception cref="CryptographicException"> 505/// <exception cref="CryptographicException"> 584/// <exception cref="CryptographicException"> 639/// <exception cref="CryptographicException"> 715/// <exception cref="CryptographicException"> 768/// <exception cref="CryptographicException"> 834/// <exception cref="CryptographicException"> 913/// <exception cref="CryptographicException"> 963/// <exception cref="CryptographicException"> 1021/// <exception cref="CryptographicException"> 1063/// <exception cref="CryptographicException"> 1117/// <exception cref="CryptographicException"> 1164/// <exception cref="CryptographicException"> 1233/// <exception cref="CryptographicException"> 1291/// <exception cref="CryptographicException"> 1334/// <exception cref="CryptographicException"> 1353/// <exception cref="CryptographicException"> 1385/// <exception cref="CryptographicException"> 1422/// <exception cref="CryptographicException"> 1438/// <exception cref="CryptographicException"> 1460/// <exception cref="CryptographicException"> 1488/// <exception cref="CryptographicException"> 1505/// <exception cref="CryptographicException"> 1541/// <exception cref="CryptographicException"> 1580/// <exception cref="CryptographicException"> 1625/// <exception cref="CryptographicException"> 1666/// <exception cref="CryptographicException"> 1705/// <exception cref="CryptographicException"> 1761/// <exception cref="CryptographicException"> 1778/// <exception cref="CryptographicException">
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKem.cs (48)
101/// <exception cref="CryptographicException"> 128/// <exception cref="CryptographicException"> 171/// <exception cref="CryptographicException"> 222/// <exception cref="CryptographicException"> 245/// <exception cref="CryptographicException"> 294/// <exception cref="CryptographicException"> 336/// <exception cref="CryptographicException"> 356/// <exception cref="CryptographicException"> 392/// <exception cref="CryptographicException"> 434/// <exception cref="CryptographicException"> 470/// <exception cref="CryptographicException"> 509/// <exception cref="CryptographicException"> 546/// <exception cref="CryptographicException"> 605/// <exception cref="CryptographicException"> 642/// <exception cref="CryptographicException"> 707/// <exception cref="CryptographicException"> 752/// <exception cref="CryptographicException"> 800/// <exception cref="CryptographicException"> 860/// <exception cref="CryptographicException"> 914/// <exception cref="CryptographicException"> 980/// <exception cref="CryptographicException"> 1045/// <exception cref="CryptographicException"> 1113/// <exception cref="CryptographicException"> 1173/// <exception cref="CryptographicException"> 1231/// <exception cref="CryptographicException"> 1266/// <exception cref="CryptographicException"> 1306/// <exception cref="CryptographicException"> 1347/// <exception cref="CryptographicException"> 1381/// <exception cref="CryptographicException"> 1426/// <exception cref="CryptographicException"> 1482/// <exception cref="CryptographicException"> 1529/// <exception cref="CryptographicException"> 1587/// <exception cref="CryptographicException"> 1629/// <exception cref="CryptographicException"> 1652/// <exception cref="CryptographicException"> 1684/// <exception cref="CryptographicException"> 1722/// <exception cref="CryptographicException"> 1738/// <exception cref="CryptographicException"> 1761/// <exception cref="CryptographicException"> 1789/// <exception cref="CryptographicException"> 1809/// <exception cref="CryptographicException"> 1844/// <exception cref="CryptographicException"> 1883/// <exception cref="CryptographicException"> 1931/// <exception cref="CryptographicException"> 1945/// <exception cref="CryptographicException"> 1985/// <exception cref="CryptographicException"> 2026/// <exception cref="CryptographicException"> 2081/// <exception cref="CryptographicException">
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoThrowHelper.Windows.cs (1)
17public static CryptographicException ToCryptographicException(this int hr)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.cs (1)
29/// <exception cref="CryptographicException">if <paramref name="keySize" /> is not valid</exception>
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.cs (1)
44/// <exception cref="CryptographicException">if <paramref name="keySize" /> is not valid</exception>
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.ImportExport.cs (3)
17/// <exception cref="CryptographicException"> 82/// <exception cref="CryptographicException"> 98/// <exception cref="CryptographicException">
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (2)
217internal static CryptographicException CreateAlgorithmUnknownException(ref readonly ValueAlgorithmIdentifierAsn identifier) 228internal static CryptographicException CreateAlgorithmUnknownException(string algorithmId)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (4)
178catch (CryptographicException e) 395catch (CryptographicException e) 428catch (CryptographicException e) 464catch (CryptographicException e)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (45)
115/// <exception cref="CryptographicException"> 158/// <exception cref="CryptographicException"> 198/// <exception cref="CryptographicException"> 248/// <exception cref="CryptographicException"> 292/// <exception cref="CryptographicException"> 407/// <exception cref="CryptographicException"> 476/// <exception cref="CryptographicException"> 525/// <exception cref="CryptographicException"> 565/// <exception cref="CryptographicException"> 596/// <exception cref="CryptographicException"> 627/// <exception cref="CryptographicException">An error occurred while verifying the mu value.</exception> 665/// <exception cref="CryptographicException"> 694/// <exception cref="CryptographicException"> 716/// <exception cref="CryptographicException"> 738/// <exception cref="CryptographicException"> 770/// <exception cref="CryptographicException"> 813/// <exception cref="CryptographicException"> 828/// <exception cref="CryptographicException"> 856/// <exception cref="CryptographicException"> 901/// <exception cref="CryptographicException"> 968/// <exception cref="CryptographicException"> 1026/// <exception cref="CryptographicException"> 1093/// <exception cref="CryptographicException"> 1135/// <exception cref="CryptographicException"> 1179/// <exception cref="CryptographicException"> 1202/// <exception cref="CryptographicException"> 1224/// <exception cref="CryptographicException"> 1249/// <exception cref="CryptographicException"> 1266/// <exception cref="CryptographicException"> 1289/// <exception cref="CryptographicException"> 1312/// <exception cref="CryptographicException"> 1336/// <exception cref="CryptographicException"> 1399/// <exception cref="CryptographicException"> 1453/// <exception cref="CryptographicException"> 1507/// <exception cref="CryptographicException"> 1572/// <exception cref="CryptographicException"> 1634/// <exception cref="CryptographicException"> 1703/// <exception cref="CryptographicException"> 1788/// <exception cref="CryptographicException"> 1838/// <exception cref="CryptographicException"> 1888/// <exception cref="CryptographicException"> 1951/// <exception cref="CryptographicException"> 1971/// <exception cref="CryptographicException"> 1992/// <exception cref="CryptographicException"> 2016/// <exception cref="CryptographicException">
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.cs (1)
41catch (CryptographicException)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (43)
75/// <exception cref="CryptographicException"> 98/// <exception cref="CryptographicException"> 143/// <exception cref="CryptographicException"> 170/// <exception cref="CryptographicException"> 192/// <exception cref="CryptographicException"> 236/// <exception cref="CryptographicException"> 269/// <exception cref="CryptographicException"> 283/// <exception cref="CryptographicException"> 308/// <exception cref="CryptographicException"> 343/// <exception cref="CryptographicException"> 376/// <exception cref="CryptographicException"> 402/// <exception cref="CryptographicException"> 434/// <exception cref="CryptographicException"> 459/// <exception cref="CryptographicException"> 491/// <exception cref="CryptographicException"> 514/// <exception cref="CryptographicException"> 539/// <exception cref="CryptographicException"> 570/// <exception cref="CryptographicException"> 593/// <exception cref="CryptographicException"> 631/// <exception cref="CryptographicException"> 649/// <exception cref="CryptographicException"> 669/// <exception cref="CryptographicException"> 698/// <exception cref="CryptographicException"> 727/// <exception cref="CryptographicException"> 745/// <exception cref="CryptographicException"> 771/// <exception cref="CryptographicException"> 803/// <exception cref="CryptographicException"> 856/// <exception cref="CryptographicException"> 902/// <exception cref="CryptographicException"> 946/// <exception cref="CryptographicException"> 986/// <exception cref="CryptographicException"> 1026/// <exception cref="CryptographicException"> 1060/// <exception cref="CryptographicException"> 1103/// <exception cref="CryptographicException"> 1144/// <exception cref="CryptographicException"> 1166/// <exception cref="CryptographicException"> 1224/// <exception cref="CryptographicException"> 1277/// <exception cref="CryptographicException"> 1327/// <exception cref="CryptographicException"> 1375/// <exception cref="CryptographicException"> 1426/// <exception cref="CryptographicException"> 1482/// <exception cref="CryptographicException"> 1545/// <exception cref="CryptographicException">
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemCng.Windows.cs (2)
191catch (CryptographicException) 202catch (CryptographicException)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemImplementation.cs (1)
32catch (CryptographicException)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
31private static CryptographicException AlgorithmKdfRequiresChars(string algId)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
311catch (CryptographicException) 401catch (CryptographicException)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PqcBlobHelpers.cs (1)
287static CryptographicException Fail(KeyBlobMagicNumber other)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.cs (1)
27/// <exception cref="CryptographicException">if <paramref name="keySize" /> is not valid</exception>
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.ImportExport.cs (1)
21/// <exception cref="CryptographicException">
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (1)
368catch (Exception e) when (!(e is CryptographicException))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (39)
125/// <exception cref="CryptographicException"> 173/// <exception cref="CryptographicException"> 213/// <exception cref="CryptographicException"> 261/// <exception cref="CryptographicException"> 305/// <exception cref="CryptographicException"> 361/// <exception cref="CryptographicException"> 412/// <exception cref="CryptographicException"> 470/// <exception cref="CryptographicException"> 502/// <exception cref="CryptographicException"> 531/// <exception cref="CryptographicException"> 552/// <exception cref="CryptographicException"> 573/// <exception cref="CryptographicException"> 605/// <exception cref="CryptographicException"> 648/// <exception cref="CryptographicException"> 698/// <exception cref="CryptographicException"> 726/// <exception cref="CryptographicException"> 771/// <exception cref="CryptographicException"> 838/// <exception cref="CryptographicException"> 896/// <exception cref="CryptographicException"> 963/// <exception cref="CryptographicException"> 1012/// <exception cref="CryptographicException"> 1067/// <exception cref="CryptographicException"> 1097/// <exception cref="CryptographicException"> 1120/// <exception cref="CryptographicException"> 1148/// <exception cref="CryptographicException"> 1175/// <exception cref="CryptographicException"> 1199/// <exception cref="CryptographicException"> 1262/// <exception cref="CryptographicException"> 1332/// <exception cref="CryptographicException"> 1386/// <exception cref="CryptographicException"> 1451/// <exception cref="CryptographicException"> 1513/// <exception cref="CryptographicException"> 1582/// <exception cref="CryptographicException"> 1673/// <exception cref="CryptographicException"> 1723/// <exception cref="CryptographicException"> 1780/// <exception cref="CryptographicException"> 1800/// <exception cref="CryptographicException"> 1821/// <exception cref="CryptographicException"> 1844/// <exception cref="CryptographicException">
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellman.cs (39)
74/// <exception cref="CryptographicException"> 107/// <exception cref="CryptographicException"> 141/// <exception cref="CryptographicException"> 178/// <exception cref="CryptographicException"> 203/// <exception cref="CryptographicException"> 222/// <exception cref="CryptographicException"> 244/// <exception cref="CryptographicException"> 267/// <exception cref="CryptographicException"> 289/// <exception cref="CryptographicException"> 322/// <exception cref="CryptographicException"> 338/// <exception cref="CryptographicException"> 365/// <exception cref="CryptographicException"> 399/// <exception cref="CryptographicException"> 428/// <exception cref="CryptographicException"> 444/// <exception cref="CryptographicException"> 478/// <exception cref="CryptographicException"> 527/// <exception cref="CryptographicException"> 576/// <exception cref="CryptographicException"> 609/// <exception cref="CryptographicException"> 645/// <exception cref="CryptographicException"> 681/// <exception cref="CryptographicException"> 711/// <exception cref="CryptographicException"> 750/// <exception cref="CryptographicException"> 787/// <exception cref="CryptographicException"> 808/// <exception cref="CryptographicException"> 823/// <exception cref="CryptographicException"> 858/// <exception cref="CryptographicException"> 878/// <exception cref="CryptographicException"> 903/// <exception cref="CryptographicException"> 934/// <exception cref="CryptographicException"> 959/// <exception cref="CryptographicException"> 984/// <exception cref="CryptographicException"> 1054/// <exception cref="CryptographicException"> 1107/// <exception cref="CryptographicException"> 1157/// <exception cref="CryptographicException"> 1205/// <exception cref="CryptographicException"> 1256/// <exception cref="CryptographicException"> 1316/// <exception cref="CryptographicException"> 1362/// <exception cref="CryptographicException">
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (1)
20private static partial CryptographicException GetExceptionForLastError();
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (5)
232catch (CryptographicException) 758catch (CryptographicException) 1033catch (CryptographicException e) 1131catch (CryptographicException) 1159catch (CryptographicException)
System\Security\Cryptography\Aes.cs (14)
99/// <exception cref="CryptographicException">An error occurred during the cryptographic operation.</exception> 124/// <exception cref="CryptographicException"> 167/// <exception cref="CryptographicException"> 214/// <exception cref="CryptographicException"> 247/// <exception cref="CryptographicException"> 301/// <exception cref="CryptographicException"> 343/// <exception cref="CryptographicException">An error occurred during the cryptographic operation.</exception> 413/// <exception cref="CryptographicException">An error occurred during the cryptographic operation.</exception> 428/// <exception cref="CryptographicException">An error occurred during the cryptographic operation.</exception> 451/// <exception cref="CryptographicException"> 537/// <exception cref="CryptographicException"> 575/// <exception cref="CryptographicException"> 667/// <exception cref="CryptographicException"> 740/// <exception cref="CryptographicException">An error occurred during the cryptographic operation.</exception>
System\Security\Cryptography\AesCng.Windows.cs (1)
60/// <exception cref="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)
72catch (CryptographicException) 93catch (CryptographicException)
System\Security\Cryptography\CapiHelper.Windows.cs (2)
1421public static CryptographicException GetBadDataException() 1427public static CryptographicException GetEFailException()
System\Security\Cryptography\CngAlgorithmCore.cs (1)
119catch (CryptographicException e)
System\Security\Cryptography\CryptoConfig.cs (1)
560catch (CryptographicException) { }
System\Security\Cryptography\CryptographicOperations.cs (21)
126/// <exception cref="CryptographicException"> 151/// <exception cref="CryptographicException"> 184/// <exception cref="CryptographicException"> 220/// <exception cref="CryptographicException"> 261/// <exception cref="CryptographicException"> 297/// <exception cref="CryptographicException"> 340/// <exception cref="CryptographicException"> 389/// <exception cref="CryptographicException"> 428/// <exception cref="CryptographicException"> 455/// <exception cref="CryptographicException"> 489/// <exception cref="CryptographicException"> 530/// <exception cref="CryptographicException"> 577/// <exception cref="CryptographicException"> 609/// <exception cref="CryptographicException"> 647/// <exception cref="CryptographicException"> 686/// <exception cref="CryptographicException"> 731/// <exception cref="CryptographicException"> 778/// <exception cref="CryptographicException"> 817/// <exception cref="CryptographicException"> 912/// <exception cref="CryptographicException"> 1002/// <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\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\ECDiffieHellmanCngPublicKey.cs (2)
107/// <exception cref="CryptographicException"> 130/// <exception cref="CryptographicException">
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\ECParameters.cs (1)
29/// <exception cref="CryptographicException">
System\Security\Cryptography\HashAlgorithmName.cs (1)
185/// <exception cref="CryptographicException">
System\Security\Cryptography\IncrementalHash.cs (6)
277/// <exception cref="CryptographicException">An error occurred during the operation.</exception> 301/// <exception cref="CryptographicException">An error occurred during the operation.</exception> 332/// <exception cref="CryptographicException">An error occurred during the operation.</exception> 384/// <exception cref="CryptographicException"><paramref name="hashAlgorithm"/> is not a known hash algorithm.</exception> 414/// <exception cref="CryptographicException"><paramref name="hashAlgorithm"/> is not a known hash algorithm.</exception> 443/// <exception cref="CryptographicException"><paramref name="hashAlgorithm"/> is not a known hash algorithm.</exception>
System\Security\Cryptography\Kmac128.cs (21)
40/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 55/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 109/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 129/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 150/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 169/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 184/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 204/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 242/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 296/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 324/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 350/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 382/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 419/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 451/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 492/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 539/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 580/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 616/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 660/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 724/// <exception cref="CryptographicException">An error has occurred during the operation.</exception>
System\Security\Cryptography\Kmac256.cs (21)
40/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 55/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 109/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 129/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 150/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 169/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 184/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 204/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 242/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 296/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 324/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 350/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 382/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 419/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 451/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 492/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 539/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 580/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 616/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 660/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 724/// <exception cref="CryptographicException">An error has occurred during the operation.</exception>
System\Security\Cryptography\KmacXof128.cs (21)
40/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 55/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 109/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 129/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 150/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 169/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 184/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 204/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 242/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 296/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 324/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 350/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 382/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 419/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 451/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 492/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 539/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 580/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 616/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 660/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 724/// <exception cref="CryptographicException">An error has occurred during the operation.</exception>
System\Security\Cryptography\KmacXof256.cs (21)
40/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 55/// <exception cref="CryptographicException">An error has occurred creating an instance of the algorithm.</exception> 109/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 129/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 150/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 169/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 184/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 204/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 242/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 296/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 324/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 350/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 382/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 419/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 451/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 492/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 539/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 580/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 616/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 660/// <exception cref="CryptographicException">An error has occurred during the operation.</exception> 724/// <exception cref="CryptographicException">An error has occurred during the operation.</exception>
System\Security\Cryptography\MLDsaOpenSsl.cs (1)
39/// <exception cref="CryptographicException">
System\Security\Cryptography\MLKemOpenSsl.cs (1)
39/// <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"> 1074/// <exception cref="CryptographicException"> 1145/// <exception cref="CryptographicException"> 1203/// <exception cref="CryptographicException"> 1240/// <exception cref="CryptographicException"> 1276/// <exception cref="CryptographicException"> 1322/// <exception cref="CryptographicException">
System\Security\Cryptography\RSACryptoServiceProvider.Windows.cs (1)
682private static CryptographicException PaddingModeNotSupported()
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\X25519DiffieHellmanOpenSsl.cs (1)
34/// <exception cref="CryptographicException">
System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (4)
13private static partial CryptographicException GetExceptionForLastError() => 45catch (CryptographicException) 127catch (CryptographicException) 160catch (CryptographicException)
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (5)
431catch (CryptographicException) { } 448catch (CryptographicException) { } 456catch (CryptographicException) { } 463catch (CryptographicException) { } 470catch (CryptographicException) { }
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (7)
441/// <exception cref="CryptographicException"> 496/// <exception cref="CryptographicException"> 590/// <exception cref="CryptographicException"> 643/// <exception cref="CryptographicException"> 676/// <exception cref="CryptographicException"> 956/// <exception cref="CryptographicException">Any error occurs during the signing operation.</exception> 1001/// <exception cref="CryptographicException">Any error occurs during the signing operation.</exception>
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (1)
424catch (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\PublicKey.cs (14)
47/// <exception cref="CryptographicException"> 67/// <exception cref="CryptographicException"> 83/// <exception cref="CryptographicException"> 99/// <exception cref="CryptographicException"> 116/// <exception cref="CryptographicException"> 212/// <exception cref="CryptographicException"> 233/// <exception cref="CryptographicException"> 262/// <exception cref="CryptographicException"> 293/// <exception cref="CryptographicException"> 323/// <exception cref="CryptographicException"> 356/// <exception cref="CryptographicException"> 378/// <exception cref="CryptographicException"> 400/// <exception cref="CryptographicException"> 420/// <exception cref="CryptographicException">
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (1)
57/// <exception cref="CryptographicException">
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (1)
78/// <exception cref="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 (25)
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"> 811/// <exception cref="CryptographicException"> 891/// <exception cref="CryptographicException"> 913/// <exception cref="CryptographicException"> 993/// <exception cref="CryptographicException"> 1014/// <exception cref="CryptographicException"> 1092/// <exception cref="CryptographicException"> 1116/// <exception cref="CryptographicException"> 1196/// <exception cref="CryptographicException"> 1263/// <exception cref="CryptographicException"> 1323/// <exception cref="CryptographicException"> 1407/// <exception cref="CryptographicException"> 1509/// <exception cref="CryptographicException"> 1551catch (CryptographicException) 1572/// <exception cref="CryptographicException"> 1601/// <exception cref="CryptographicException"> 1701/// <exception cref="CryptographicException"> 2042catch (CryptographicException ce) 2125catch (CryptographicException ce)
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.Cose (26)
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 (11)
366/// <exception cref="CryptographicException"> 409/// <exception cref="CryptographicException"> 452/// <exception cref="CryptographicException"> 493/// <exception cref="CryptographicException"> 538/// <exception cref="CryptographicException"> 575/// <exception cref="CryptographicException"> 618/// <exception cref="CryptographicException"> 667/// <exception cref="CryptographicException"> 729/// <exception cref="CryptographicException"> 823/// <exception cref="CryptographicException"> 886/// <exception cref="CryptographicException">
System\Security\Cryptography\Cose\CoseSignature.cs (11)
81/// <exception cref="CryptographicException"> 124/// <exception cref="CryptographicException"> 164/// <exception cref="CryptographicException"> 208/// <exception cref="CryptographicException"> 254/// <exception cref="CryptographicException"> 291/// <exception cref="CryptographicException"> 335/// <exception cref="CryptographicException"> 384/// <exception cref="CryptographicException"> 448/// <exception cref="CryptographicException"> 508/// <exception cref="CryptographicException"> 572/// <exception cref="CryptographicException">
System.Security.Cryptography.Pkcs (32)
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\Pal\Windows\DecryptorPalWindows.Decrypt.cs (3)
122private static CryptographicException? TryGetKeySpecForCertificate(X509Certificate2 cert, out CryptKeySpec keySpec) 165private unsafe CryptographicException? TryDecryptTrans(KeyTransRecipientInfo recipientInfo, SafeProvOrNCryptKeyHandle hKey, CryptKeySpec keySpec) 260private CryptographicException? TryExecuteDecryptAgree(ref CMSG_CTRL_KEY_AGREE_DECRYPT_PARA decryptPara)
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (1)
22public static CryptographicException ToCryptographicException(this ErrorCode errorCode)
Internal\Cryptography\PkcsHelpers.cs (1)
402catch (CryptographicException e)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoThrowHelper.Windows.cs (1)
17public static CryptographicException ToCryptographicException(this int hr)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (2)
217internal static CryptographicException CreateAlgorithmUnknownException(ref readonly ValueAlgorithmIdentifierAsn identifier) 228internal static CryptographicException CreateAlgorithmUnknownException(string algorithmId)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (4)
178catch (CryptographicException e) 395catch (CryptographicException e) 428catch (CryptographicException e) 464catch (CryptographicException e)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
31private static CryptographicException AlgorithmKdfRequiresChars(string algId)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
311catch (CryptographicException) 401catch (CryptographicException)
System\Security\Cryptography\Pkcs\CmsSignature.cs (1)
224catch (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\runtime\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)
702catch (CryptographicException) { }
System.ServiceModel.Primitives (2)
System\IdentityModel\Tokens\X509IssuerSerialKeyIdentifierClause.cs (1)
99catch (CryptographicException)
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
635|| e is System.Security.Cryptography.CryptographicException