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)
109
private sealed class OpenSslCryptographicException :
CryptographicException
System.Net.Security (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
109
private sealed class OpenSslCryptographicException :
CryptographicException
System.Security.Cryptography (3)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AuthenticationTagMismatchException.cs (1)
10
public sealed class AuthenticationTagMismatchException :
CryptographicException
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\Pkcs12LoadLimitExceededException.cs (1)
10
public sealed class Pkcs12LoadLimitExceededException :
CryptographicException
System\Security\Cryptography\CryptographicUnexpectedOperationException.cs (1)
12
public class CryptographicUnexpectedOperationException :
CryptographicException
1689 instantiations of CryptographicException
dotnet-sourcelink (1)
HashAlgorithmGuids.cs (1)
23
=> TryGetName(guid) ?? throw new
CryptographicException
("unknown HashAlgorithm " + guid);
Microsoft.AspNetCore.Cryptography.Internal (5)
CryptoUtil.cs (1)
62
throw new
CryptographicException
("Assertion failed: " + message);
SafeHandles\BCryptAlgorithmHandle.cs (1)
145
throw new
CryptographicException
(message);
UnsafeNativeMethods.cs (3)
473
throw new
CryptographicException
(message);
482
throw new
CryptographicException
(message);
499
throw new
CryptographicException
(message);
Microsoft.AspNetCore.DataProtection (10)
Cng\DpapiSecretSerializerHelper.cs (2)
99
throw new
CryptographicException
(errorCode);
242
throw new
CryptographicException
(errorCode);
Error.cs (8)
31
return new
CryptographicException
(Resources.CryptCommon_GenericError, inner);
37
return new
CryptographicException
(message);
54
return new
CryptographicException
(Resources.Common_EncryptionFailed, inner);
60
return new
CryptographicException
(message);
66
return new
CryptographicException
(message);
76
return new
CryptographicException
(Resources.Common_DecryptionFailed, inner);
81
return new
CryptographicException
(Resources.ProtectionProvider_BadMagicHeader);
86
return new
CryptographicException
(Resources.ProtectionProvider_BadVersion);
Microsoft.AspNetCore.DataProtection.Abstractions (3)
CryptoUtil.cs (1)
22
throw new
CryptographicException
("Assertion failed: " + message);
Error.cs (2)
14
return new
CryptographicException
(Resources.CryptCommon_GenericError, inner);
20
return new
CryptographicException
(message);
Microsoft.AspNetCore.DataProtection.Extensions (3)
TimeLimitedDataProtector.cs (3)
78
throw new
CryptographicException
(Resources.TimeLimitedDataProtector_PayloadInvalid);
88
throw new
CryptographicException
(Resources.FormatTimeLimitedDataProtector_PayloadExpired(embeddedExpiration));
100
throw new
CryptographicException
(Resources.CryptCommon_GenericError, ex);
Microsoft.Build.Tasks.Core (12)
ManifestUtil\mansign2.cs (12)
406
throw new
CryptographicException
(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
426
throw new
CryptographicException
(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
441
throw new
CryptographicException
(hr);
517
throw new
CryptographicException
(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
522
throw new
CryptographicException
(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
533
throw new
CryptographicException
(Win32.NTE_BAD_KEY);
557
throw new
CryptographicException
(hr);
604
throw new
CryptographicException
(Win32.TRUST_E_BAD_DIGEST);
624
throw new
CryptographicException
(Win32.TRUST_E_BAD_DIGEST);
832
throw new
CryptographicException
(Marshal.GetLastWin32Error());
904
throw new
CryptographicException
(hr);
946
throw new
CryptographicException
(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
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)
449
throw new
CryptographicException
(SR.Argument_InvalidOidValue);
451
throw new
CryptographicException
(SR.Argument_InvalidOidValue);
453
throw new
CryptographicException
(SR.Argument_InvalidOidValue);
469
throw new
CryptographicException
(SR.Argument_InvalidOidValue);
789
throw new
CryptographicException
(SR.Cryptography_Invalid_IA5String);
1000
throw new
CryptographicException
(SR.Argument_InvalidOidValue);
Signing\DerEncoding\DerGeneralizedTime.cs (5)
27
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
56
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
62
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
92
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
Signing\DerEncoding\DerSequenceReader.cs (23)
68
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
95
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
101
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
139
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
160
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
207
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
246
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
251
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
277
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
406
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
448
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
506
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
526
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
535
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
543
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
556
throw new
CryptographicException
(
583
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
592
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
603
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
610
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
614
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
631
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
635
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
Signing\Signatures\PrimarySignature.cs (1)
167
throw new
CryptographicException
(Strings.UnexpectedPackageSignatureVerificationError, ex);
Signing\Timestamp\Accuracy.cs (4)
56
throw new
CryptographicException
(Strings.InvalidAsn1);
66
throw new
CryptographicException
(Strings.InvalidAsn1);
76
throw new
CryptographicException
(Strings.InvalidAsn1);
82
throw new
CryptographicException
(Strings.InvalidAsn1);
Signing\Timestamp\Extension.cs (1)
53
throw new
CryptographicException
(Strings.InvalidAsn1);
Signing\Timestamp\Extensions.cs (1)
46
throw new
CryptographicException
(Strings.InvalidAsn1);
Signing\Timestamp\MessageImprint.cs (2)
45
throw new
CryptographicException
(Strings.InvalidAsn1);
50
throw new
CryptographicException
(Strings.InvalidAsn1);
Signing\Timestamp\Rfc3161TimestampRequestNetstandard21Wrapper.cs (1)
63
throw new
CryptographicException
(
Signing\Timestamp\Rfc3161TimestampTokenInfoNetstandard21Wrapper.cs (1)
22
throw new
CryptographicException
(Strings.InvalidAsn1);
Signing\Timestamp\Rfc3161TimestampTokenNetstandard21Wrapper.cs (1)
28
throw new
CryptographicException
(Strings.InvalidAsn1);
Signing\Timestamp\TstInfo.cs (3)
89
throw new
CryptographicException
(Strings.InvalidAsn1);
141
throw new
CryptographicException
(Strings.InvalidAsn1);
147
throw new
CryptographicException
(Strings.InvalidAsn1);
Signing\Utility\AttributeUtility.cs (1)
339
throw new
CryptographicException
(string.Format(CultureInfo.CurrentCulture, Strings.MultipleAttributesDisallowed, oid));
System.IO.Compression (1)
System\IO\Compression\WinZipAesStream.cs (1)
352
throw new
CryptographicException
();
System.Net.Http.WinHttpHandler (1)
src\runtime\src\libraries\Common\src\System\Net\Security\CertificateValidation.Windows.cs (1)
32
throw new
CryptographicException
(Marshal.GetLastPInvokeError());
System.Net.Quic (3)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs (1)
95
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
120
return new
CryptographicException
();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
73
return new
CryptographicException
();
System.Net.Security (3)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs (1)
95
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
120
return new
CryptographicException
();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
73
return new
CryptographicException
();
System.Private.CoreLib (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetRandomBytes.cs (1)
26
throw new
CryptographicException
();
System.Security.Cryptography (904)
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (11)
70
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
91
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
98
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
120
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
127
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
135
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
235
throw new
CryptographicException
(SR.Cryptography_Cms_UnknownAlgorithm, algName.Name);
310
throw new
CryptographicException
(ex.Message, ex);
326
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
333
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
404
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\AesBCryptModes.cs (1)
50
throw new
CryptographicException
(SR.Cryptography_FeedbackSizeNotSupported, ex);
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptExportKey.cs (1)
73
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptGetProperty.cs (1)
42
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\TripleDesBCryptModes.cs (1)
53
throw new
CryptographicException
(SR.Cryptography_FeedbackSizeNotSupported, ex);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AesAEAD.cs (1)
12
throw new
CryptographicException
(SR.Cryptography_InvalidKeySize);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (8)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
43
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
67
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
84
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
141
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
153
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
176
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
193
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (9)
33
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
45
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
70
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
87
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
144
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
153
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
174
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
191
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
204
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\CurveAsn.xml.cs (2)
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
82
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (4)
48
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
129
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
146
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (11)
64
throw new
CryptographicException
();
73
throw new
CryptographicException
();
82
throw new
CryptographicException
();
89
throw new
CryptographicException
();
99
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
107
throw new
CryptographicException
();
116
throw new
CryptographicException
();
124
throw new
CryptographicException
();
140
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
152
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
187
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DssParms.xml.cs (2)
49
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
66
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (7)
69
throw new
CryptographicException
();
78
throw new
CryptographicException
();
86
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
93
throw new
CryptographicException
();
108
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
120
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
143
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\ECPrivateKey.xml.cs (2)
87
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
104
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (2)
57
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
74
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (4)
48
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
129
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
146
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\FieldID.xml.cs (4)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
41
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
62
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
79
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (17)
72
throw new
CryptographicException
();
81
throw new
CryptographicException
();
90
throw new
CryptographicException
();
99
throw new
CryptographicException
();
106
throw new
CryptographicException
();
116
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
124
throw new
CryptographicException
();
133
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
142
throw new
CryptographicException
();
151
throw new
CryptographicException
();
160
throw new
CryptographicException
();
169
throw new
CryptographicException
();
177
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
184
throw new
CryptographicException
();
200
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
212
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
282
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLDsaPrivateKeyAsn.xml.cs (7)
93
throw new
CryptographicException
();
102
throw new
CryptographicException
();
111
throw new
CryptographicException
();
119
throw new
CryptographicException
();
134
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
146
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
194
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLDsaPrivateKeyBothAsn.xml.cs (2)
47
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyAsn.xml.cs (7)
93
throw new
CryptographicException
();
102
throw new
CryptographicException
();
111
throw new
CryptographicException
();
119
throw new
CryptographicException
();
134
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
146
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
194
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyBothAsn.xml.cs (2)
47
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (4)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
41
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
81
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (2)
47
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (2)
47
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (2)
84
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
101
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (6)
80
throw new
CryptographicException
();
89
throw new
CryptographicException
();
97
throw new
CryptographicException
();
112
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
124
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
158
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (4)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
41
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
81
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (4)
84
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
101
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
201
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
218
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (3)
49
throw new
CryptographicException
(
55
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
83
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (4)
55
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
72
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
156
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
173
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (4)
34
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
43
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
79
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
96
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (4)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
41
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
81
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (17)
64
throw new
CryptographicException
();
71
throw new
CryptographicException
();
81
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
89
throw new
CryptographicException
();
96
throw new
CryptographicException
();
106
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
114
throw new
CryptographicException
();
121
throw new
CryptographicException
();
131
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
139
throw new
CryptographicException
();
146
throw new
CryptographicException
();
156
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
164
throw new
CryptographicException
();
172
throw new
CryptographicException
();
188
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
200
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
241
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (8)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
41
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
81
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
127
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
137
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
159
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
176
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncapsulatedContentInfoAsn.xml.cs (4)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
44
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
69
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
86
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (3)
33
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
62
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
79
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (2)
63
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
80
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\IssuerAndSerialNumberAsn.xml.cs (5)
31
throw new
CryptographicException
();
41
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
81
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
95
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\OtherCertificateFormat.xml.cs (4)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
40
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
62
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
79
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignedDataAsn.xml.cs (3)
67
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
102
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
119
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (6)
58
throw new
CryptographicException
();
67
throw new
CryptographicException
();
75
throw new
CryptographicException
();
91
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
103
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
137
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (4)
43
throw new
CryptographicException
();
53
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
92
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
109
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (5)
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
82
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
179
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
202
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
219
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (5)
15
throw new
CryptographicException
(SR.Cryptography_Pkcs_InvalidSignatureParameters);
20
throw new
CryptographicException
(
27
throw new
CryptographicException
(SR.Cryptography_Pkcs_InvalidSignatureParameters);
37
throw new
CryptographicException
(
53
throw new
CryptographicException
(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (2)
150
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
167
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (4)
48
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
134
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
151
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml.cs (2)
61
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
78
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml.cs (2)
47
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml.cs (3)
62
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
85
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
102
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (4)
48
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
129
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
146
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (6)
50
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
86
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
103
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
165
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
200
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
217
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AsnWriter\AsnWriterExtensions.cs (2)
20
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
34
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (2)
81
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
95
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngPkcs8.cs (10)
112
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
135
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
146
throw new
CryptographicException
();
180
throw new
CryptographicException
(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
189
throw new
CryptographicException
(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
199
throw new
CryptographicException
(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
235
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
247
throw new
CryptographicException
(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
257
throw new
CryptographicException
(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
267
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (20)
153
throw new
CryptographicException
();
168
throw new
CryptographicException
();
229
throw new
CryptographicException
();
679
throw new
CryptographicException
(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(CompositeMLDsa)));
684
throw new
CryptographicException
(SR.Argument_PublicKeyWrongSizeForAlgorithm);
877
throw new
CryptographicException
(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(CompositeMLDsa)));
882
throw new
CryptographicException
(SR.Argument_PrivateKeyWrongSizeForAlgorithm);
933
throw new
CryptographicException
(SR.Argument_PublicKeyWrongSizeForAlgorithm);
983
throw new
CryptographicException
(SR.Argument_PrivateKeyWrongSizeForAlgorithm);
1518
throw new
CryptographicException
();
1552
throw new
CryptographicException
(SR.Argument_DestinationTooShort);
1557
throw new
CryptographicException
(SR.Argument_DestinationTooShort);
1600
throw new
CryptographicException
();
1640
throw new
CryptographicException
();
1677
throw new
CryptographicException
(SR.Argument_DestinationTooShort);
1682
throw new
CryptographicException
(SR.Argument_DestinationTooShort);
1730
throw new
CryptographicException
();
1821
throw new
CryptographicException
(SR.Argument_PrivateKeyWrongSizeForAlgorithm);
1909
throw new
CryptographicException
();
1952
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaAlgorithm.cs (1)
523
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaCng.Windows.cs (5)
57
throw new
CryptographicException
();
96
throw new
CryptographicException
();
145
throw new
CryptographicException
();
213
throw new
CryptographicException
();
225
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaImplementation.Windows.cs (8)
44
throw new
CryptographicException
(SR.Cryptography_NoPrivateKeyAvailable);
60
throw new
CryptographicException
();
86
throw new
CryptographicException
();
108
throw new
CryptographicException
();
127
throw new
CryptographicException
(SR.Cryptography_NoPrivateKeyAvailable);
140
throw new
CryptographicException
(SR.Cryptography_NoPrivateKeyAvailable);
171
throw new
CryptographicException
();
183
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKem.cs (18)
194
throw new
CryptographicException
(SR.Cryptography_OverlappingBuffers);
411
throw new
CryptographicException
(SR.Argument_PublicKeyWrongSizeForAlgorithm);
489
throw new
CryptographicException
(SR.Argument_PrivateKeyWrongSizeForAlgorithm);
581
throw new
CryptographicException
(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(CompositeMLKem)));
586
throw new
CryptographicException
(SR.Argument_PublicKeyWrongSizeForAlgorithm);
680
throw new
CryptographicException
(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(CompositeMLKem)));
685
throw new
CryptographicException
(SR.Argument_PrivateKeyWrongSizeForAlgorithm);
1821
throw new
CryptographicException
();
1855
throw new
CryptographicException
(SR.Argument_DestinationTooShort);
1860
throw new
CryptographicException
(SR.Argument_DestinationTooShort);
1903
throw new
CryptographicException
();
1959
throw new
CryptographicException
();
1998
throw new
CryptographicException
(SR.Argument_DestinationTooShort);
2003
throw new
CryptographicException
(SR.Argument_DestinationTooShort);
2053
throw new
CryptographicException
();
2126
throw new
CryptographicException
(SR.Argument_PrivateKeyWrongSizeForAlgorithm);
2211
throw new
CryptographicException
();
2259
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKemAlgorithm.cs (3)
351
throw new
CryptographicException
();
465
throw new
CryptographicException
();
558
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
63
throw new
CryptographicException
(SR.Cryptography_Pkcs9_MultipleSigningTimeNotAllowed);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoThrowHelper.Windows.cs (1)
29
return new
CryptographicException
(message)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.ImportExport.cs (2)
432
throw new
CryptographicException
(SR.Cryptography_NotValidPrivateKey);
437
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.SignVerify.cs (2)
62
throw new
CryptographicException
(
98
throw new
CryptographicException
(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (8)
25
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
39
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
47
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
67
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
91
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
105
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
110
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
130
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.HashAlgorithm.cs (1)
30
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, name.Value.Name);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.cs (2)
298
throw new
CryptographicException
(SR.Cryptography_NotValidPrivateKey);
305
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs (1)
122
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.ImportExport.cs (1)
162
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.SignVerify.cs (1)
64
throw new
CryptographicException
(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (7)
138
throw new
CryptographicException
(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashOid));
154
throw new
CryptographicException
(SR.Cryptography_HashLengthMismatch);
170
throw new
CryptographicException
(SR.Cryptography_HashLengthMismatch, ae);
213
throw new
CryptographicException
(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmName), ex);
230
throw new
CryptographicException
(
267
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, ace);
272
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyBlobHelpers.cs (1)
52
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (8)
48
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
53
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
78
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
84
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
126
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
135
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
154
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
162
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (11)
143
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
173
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
180
throw new
CryptographicException
(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
325
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
350
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
375
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
398
throw new
CryptographicException
(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
417
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
430
throw new
CryptographicException
(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
453
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
466
throw new
CryptographicException
(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (12)
322
throw new
CryptographicException
(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmOid));
327
throw new
CryptographicException
(SR.Format(
335
throw new
CryptographicException
(SR.Cryptography_HashLengthMismatch);
440
throw new
CryptographicException
(SR.Cryptography_HashLengthMismatch);
1372
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
2163
throw new
CryptographicException
();
2188
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
2197
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
2209
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
2226
throw new
CryptographicException
(SR.Cryptography_MLDsaPkcs8KeyMismatch);
2241
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
2248
throw new
CryptographicException
(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.Windows.cs (11)
61
throw new
CryptographicException
(SR.Cryptography_ArgMLDsaRequiresMLDsaKey);
89
throw new
CryptographicException
();
134
throw new
CryptographicException
(SR.Argument_PrivateSeedWrongSizeForAlgorithm);
141
throw new
CryptographicException
(SR.Cryptography_NotValidPrivateKey);
179
throw new
CryptographicException
(SR.Argument_PrivateKeyWrongSizeForAlgorithm);
192
throw new
CryptographicException
(SR.Argument_PrivateSeedWrongSizeForAlgorithm);
202
throw new
CryptographicException
(SR.Cryptography_NotValidPrivateKey);
372
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
390
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
467
throw new
CryptographicException
();
495
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.Windows.cs (6)
44
throw new
CryptographicException
(SR.Cryptography_NoPrivateKeyAvailable);
52
throw new
CryptographicException
();
67
throw new
CryptographicException
(SR.Cryptography_NoPrivateKeyAvailable);
185
throw new
CryptographicException
(SR.Cryptography_NoPrivateKeyAvailable);
198
throw new
CryptographicException
(SR.Cryptography_PqcNoSeed);
250
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaPkcs8.cs (1)
49
throw new
CryptographicException
(SR.Cryptography_NotValidPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (10)
127
throw new
CryptographicException
(SR.Cryptography_OverlappingBuffers);
1198
throw new
CryptographicException
(SR.Argument_KemInvalidEncapsulationKeyLength);
1702
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
1711
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
1723
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
1740
throw new
CryptographicException
(SR.Cryptography_KemPkcs8KeyMismatch);
1755
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
1817
throw new
CryptographicException
();
1829
throw new
CryptographicException
(SR.Cryptography_PqcNoSeed);
1837
throw new
CryptographicException
(SR.Cryptography_KemNoDecapsulationKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.Windows.cs (3)
26
throw new
CryptographicException
();
34
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
44
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemCng.Windows.cs (7)
53
throw new
CryptographicException
(SR.Cryptography_ArgMLKemRequiresMLKemKey);
81
return new
CryptographicException
();
138
throw new
CryptographicException
(SR.Cryptography_KeyNotExtractable);
154
throw new
CryptographicException
(SR.Cryptography_KeyNotExtractable);
176
throw new
CryptographicException
(SR.Cryptography_KeyNotExtractable);
204
throw new
CryptographicException
(SR.Cryptography_KeyNotExtractable);
229
throw new
CryptographicException
(SR.Cryptography_KeyNotExtractable);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemPkcs8.cs (1)
49
throw new
CryptographicException
(SR.Cryptography_NotValidPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (38)
33
return new
CryptographicException
(SR.Cryptography_AlgKdfRequiresChars, algId);
59
throw new
CryptographicException
(
74
throw new
CryptographicException
(
107
throw new
CryptographicException
(
170
throw new
CryptographicException
(
270
throw new
CryptographicException
(
302
throw new
CryptographicException
(
329
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, prf.Name);
416
throw new
CryptographicException
();
445
throw new
CryptographicException
();
545
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
552
throw new
CryptographicException
(
604
throw new
CryptographicException
(
628
throw new
CryptographicException
();
633
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
656
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
674
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
681
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
692
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
711
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
723
throw new
CryptographicException
(SR.Cryptography_UnknownAlgorithmIdentifier, algId);
733
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
749
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
756
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
768
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
777
throw new
CryptographicException
(
786
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
795
_ => throw new
CryptographicException
(
806
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
834
throw new
CryptographicException
(SR.Argument_InvalidValue, e);
857
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
864
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
869
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
908
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
918
throw new
CryptographicException
();
1038
throw new
CryptographicException
();
1051
throw new
CryptographicException
();
1137
throw new
CryptographicException
(SR.Argument_InvalidValue);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
215
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (2)
95
throw new
CryptographicException
(SR.Argument_InvalidOidValue);
112
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (4)
66
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
98
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
104
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
150
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (6)
70
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
231
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
239
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
244
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
358
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
560
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (3)
91
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
192
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
223
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (4)
101
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
186
throw new
CryptographicException
();
284
throw new
CryptographicException
();
301
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PqcBlobHelpers.cs (5)
102
throw new
CryptographicException
();
126
throw new
CryptographicException
();
152
throw new
CryptographicException
();
175
throw new
CryptographicException
();
290
return new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.EncryptDecrypt.cs (8)
45
throw new
CryptographicException
(SR.Cryptography_RSA_DecryptWrongSize);
52
throw new
CryptographicException
(
75
throw new
CryptographicException
(SR.Cryptography_UnsupportedPaddingMode);
112
throw new
CryptographicException
(SR.Cryptography_UnsupportedPaddingMode);
127
throw new
CryptographicException
(SR.Cryptography_RSA_DecryptWrongSize);
134
throw new
CryptographicException
(
157
throw new
CryptographicException
(SR.Cryptography_UnsupportedPaddingMode);
192
throw new
CryptographicException
(SR.Cryptography_UnsupportedPaddingMode);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.ImportExport.cs (1)
87
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.SignVerify.cs (5)
51
throw new
CryptographicException
(SR.Cryptography_SignHash_WrongSize);
73
throw new
CryptographicException
(SR.Cryptography_UnsupportedPaddingMode);
94
throw new
CryptographicException
(SR.Cryptography_SignHash_WrongSize);
111
throw new
CryptographicException
(SR.Cryptography_UnsupportedPaddingMode);
159
throw new
CryptographicException
(SR.Cryptography_UnsupportedPaddingMode);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (3)
25
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
51
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
113
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.Pkcs1.cs (4)
27
throw new
CryptographicException
(
101
throw new
CryptographicException
(SR.Cryptography_InvalidRsaParameters);
117
throw new
CryptographicException
(SR.Cryptography_InvalidRsaParameters);
127
throw new
CryptographicException
(SR.Cryptography_NotValidPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (13)
103
throw new
CryptographicException
();
130
throw new
CryptographicException
(SR.Cryptography_KeyTooSmall);
265
throw new
CryptographicException
(SR.Cryptography_SignHash_WrongSize);
273
throw new
CryptographicException
(SR.Cryptography_KeyTooSmall);
310
throw new
CryptographicException
(
333
throw new
CryptographicException
();
371
throw new
CryptographicException
();
393
throw new
CryptographicException
(SR.Cryptography_SignHash_WrongSize);
405
throw new
CryptographicException
(SR.Cryptography_KeyTooSmall);
442
throw new
CryptographicException
();
570
throw new
CryptographicException
();
606
throw new
CryptographicException
();
620
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (3)
1235
throw new
CryptographicException
(SR.Argument_PublicKeyWrongSizeForAlgorithm);
1297
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
1972
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsaAlgorithm.cs (1)
262
throw new
CryptographicException
(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (1)
566
throw new
CryptographicException
(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmName));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdfImplementationCng.cs (2)
83
throw new
CryptographicException
();
212
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellman.cs (7)
350
throw new
CryptographicException
();
377
throw new
CryptographicException
();
1023
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
1028
throw new
CryptographicException
(SR.Argument_PublicKeyWrongSizeForAlgorithm);
1492
throw new
CryptographicException
();
1590
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
1599
throw new
CryptographicException
(SR.Argument_PrivateKeyWrongSizeForAlgorithm);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (4)
116
throw new
CryptographicException
();
123
throw new
CryptographicException
();
245
throw new
CryptographicException
(SR.Cryptography_NotValidPrivateKey);
255
throw new
CryptographicException
(SR.Cryptography_NotValidPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanImplementation.Windows.cs (3)
88
throw new
CryptographicException
();
98
throw new
CryptographicException
();
276
throw new
CryptographicException
(SR.Cryptography_CSP_NoPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519WindowsHelpers.cs (3)
35
throw new
CryptographicException
();
44
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
56
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (1)
69
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (4)
662
throw new
CryptographicException
(SR.Arg_CryptographyException, e);
666
throw new
CryptographicException
(SR.Arg_CryptographyException, e);
674
throw new
CryptographicException
(message)
695
throw new
CryptographicException
(message, innerException)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (15)
83
throw new
CryptographicException
(SR.Cryptography_Pfx_NoCertificates);
149
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
257
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
512
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
520
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
525
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
558
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
567
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
594
throw new
CryptographicException
(
602
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
612
throw new
CryptographicException
(
1128
throw new
CryptographicException
();
1156
throw new
CryptographicException
();
1186
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
1264
throw new
CryptographicException
();
System\Security\Cryptography\Aes.cs (9)
143
throw new
CryptographicException
(SR.Cryptography_OverlappingBuffers);
192
throw new
CryptographicException
();
268
throw new
CryptographicException
(SR.Cryptography_OverlappingBuffers);
288
throw new
CryptographicException
();
331
throw new
CryptographicException
(SR.Cryptography_KeyWrap_DecryptFailed);
473
throw new
CryptographicException
(SR.Cryptography_OverlappingBuffers);
603
throw new
CryptographicException
(SR.Cryptography_OverlappingBuffers);
619
throw new
CryptographicException
();
728
throw new
CryptographicException
(SR.Cryptography_KeyWrap_DecryptFailed);
System\Security\Cryptography\AesCng.Windows.cs (2)
302
throw new
CryptographicException
(SR.Cryptography_InvalidKeySize);
330
throw new
CryptographicException
(SR.Cryptography_InvalidCipherMode);
System\Security\Cryptography\AesImplementation.cs (1)
303
throw new
CryptographicException
(SR.Format(SR.Cryptography_CipherModeFeedbackNotSupported, feedback, CipherMode.CFB));
System\Security\Cryptography\AsymmetricAlgorithm.cs (1)
35
throw new
CryptographicException
(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (2)
26
throw new
CryptographicException
(
47
throw new
CryptographicException
(
System\Security\Cryptography\BasicSymmetricCipherLiteBCrypt.cs (1)
78
throw new
CryptographicException
(SR.Cryptography_UnexpectedTransformTruncation);
System\Security\Cryptography\BasicSymmetricCipherLiteNCrypt.cs (2)
48
_ => throw new
CryptographicException
(SR.Cryptography_InvalidCipherMode),
88
throw new
CryptographicException
(SR.Cryptography_UnexpectedTransformTruncation);
System\Security\Cryptography\CapiHelper.DSA.Windows.cs (1)
48
throw new
CryptographicException
(SR.Cryptography_InvalidDSASignatureSize);
System\Security\Cryptography\CapiHelper.Windows.cs (8)
540
throw new
CryptographicException
(SR.Cryptography_OpenInvalidHandle);
614
throw new
CryptographicException
(SR.CryptSetKeyParam_Failed, GetErrorCode().ToString());
639
throw new
CryptographicException
(SR.CryptSetKeyParam_Failed, GetErrorCode().ToString());
755
throw new
CryptographicException
(SR.Format(SR.Cryptography_CSP_WrongKeySpec, keyType));
836
throw new
CryptographicException
("Cryptography_OAEP_XPPlus_Only");
840
throw new
CryptographicException
("Cryptography_OAEPDecoding");
1039
throw new
CryptographicException
(SR.Cryptography_InvalidOID);
1284
throw new
CryptographicException
(SR.Cryptography_PasswordDerivedBytes_InvalidIV);
System\Security\Cryptography\ChaCha20Poly1305.cs (1)
46
throw new
CryptographicException
(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\CngHelpers.cs (12)
78
throw new
CryptographicException
(SR.Cryptography_KeyBlobParsingError);
82
throw new
CryptographicException
(SR.Cryptography_KeyBlobParsingError);
90
throw new
CryptographicException
(SR.Format(SR.Cryptography_CngKeyWrongAlgorithm, algorithmName, algorithm));
94
throw new
CryptographicException
(SR.Cryptography_KeyBlobParsingError);
99
throw new
CryptographicException
(SR.Cryptography_KeyBlobParsingError);
103
throw new
CryptographicException
(SR.Cryptography_KeyBlobParsingError);
115
throw new
CryptographicException
(SR.Cryptography_InvalidRsaParameters);
128
throw new
CryptographicException
(SR.Cryptography_InvalidRsaParameters);
141
throw new
CryptographicException
(SR.Cryptography_InvalidRsaParameters);
160
throw new
CryptographicException
(SR.Cryptography_InvalidRsaParameters);
283
throw new
CryptographicException
(SR.Cryptography_NotValidPrivateKey);
293
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
System\Security\Cryptography\CngSymmetricAlgorithmCore.cs (6)
47
throw new
CryptographicException
(SR.Format(SR.Cryptography_CngKeyWrongAlgorithm, actualAlgorithm.Algorithm, algorithm));
62
throw new
CryptographicException
(
178
throw new
CryptographicException
(SR.Cryptography_MissingIV);
298
throw new
CryptographicException
(SR.Format(SR.Cryptography_CipherModeFeedbackNotSupported, feedbackSizeInBits, CipherMode.CFB));
305
throw new
CryptographicException
(SR.Format(SR.Cryptography_CipherModeFeedbackNotSupported, feedbackSizeInBits, CipherMode.CFB));
321
throw new
CryptographicException
(
System\Security\Cryptography\ConcurrencyBlock.cs (1)
19
throw new
CryptographicException
(SR.Cryptography_ConcurrentUseNotSupported);
System\Security\Cryptography\CryptographicOperations.cs (3)
848
throw new
CryptographicException
();
940
throw new
CryptographicException
();
1134
throw new
CryptographicException
(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name));
System\Security\Cryptography\CspKeyContainerInfo.Windows.cs (2)
211
throw new
CryptographicException
(SR.Cryptography_CSP_NotFound);
244
throw new
CryptographicException
(SR.Cryptography_CSP_NotFound);
System\Security\Cryptography\DES.cs (4)
57
throw new
CryptographicException
(SR.Cryptography_InvalidKey_Weak, "DES");
60
throw new
CryptographicException
(SR.Cryptography_InvalidKey_SemiWeak, "DES");
69
throw new
CryptographicException
(SR.Cryptography_InvalidKeySize);
87
throw new
CryptographicException
(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\DESCryptoServiceProvider.Windows.cs (3)
74
throw new
CryptographicException
(SR.Cryptography_InvalidKey_Weak, "DES");
76
throw new
CryptographicException
(SR.Cryptography_InvalidKey_SemiWeak, "DES");
93
throw new
CryptographicException
(SR.Cryptography_InvalidIVSize);
System\Security\Cryptography\DesImplementation.cs (3)
69
throw new
CryptographicException
(SR.Cryptography_InvalidKey_Weak, "DES");
71
throw new
CryptographicException
(SR.Cryptography_InvalidKey_SemiWeak, "DES");
237
throw new
CryptographicException
(SR.Format(SR.Cryptography_CipherModeFeedbackNotSupported, feedback, CipherMode.CFB));
System\Security\Cryptography\DSA.Xml.cs (2)
22
throw new
CryptographicException
(
67
throw new
CryptographicException
(
System\Security\Cryptography\DSACryptoServiceProvider.Windows.cs (4)
454
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
468
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
485
throw new
CryptographicException
(SR.Cryptography_CSP_NoPrivateKey);
490
throw new
CryptographicException
(SR.Format(SR.Cryptography_InvalidHashSize, "SHA1", SHA1.HashSizeInBytes));
System\Security\Cryptography\EccKeyFormatHelper.cs (28)
86
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
108
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
120
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
127
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
133
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
175
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
182
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
189
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
195
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
223
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
239
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
253
throw new
CryptographicException
(SR.Cryptography_ECC_NamedCurvesOnly);
274
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
287
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
292
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
313
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
333
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
346
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
367
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
374
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
395
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
426
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
487
throw new
CryptographicException
(SR.Cryptography_CSP_NoPrivateKey);
530
throw new
CryptographicException
(
641
throw new
CryptographicException
(SR.Cryptography_InvalidECCharacteristic2Curve);
692
throw new
CryptographicException
(SR.Cryptography_InvalidECCharacteristic2Curve);
705
throw new
CryptographicException
(SR.Cryptography_InvalidECCharacteristic2Curve);
714
throw new
CryptographicException
(SR.Cryptography_InvalidECCharacteristic2Curve);
System\Security\Cryptography\ECCurve.cs (5)
189
throw new
CryptographicException
(SR.Cryptography_InvalidECNamedCurve);
195
throw new
CryptographicException
(SR.Format(SR.Cryptography_InvalidCurveOid, Oid?.Value));
223
throw new
CryptographicException
(SR.Cryptography_InvalidECPrimeCurve);
236
throw new
CryptographicException
(SR.Cryptography_InvalidECCharacteristic2Curve);
245
throw new
CryptographicException
(SR.Format(SR.Cryptography_CurveNotSupported, CurveType.ToString()));
System\Security\Cryptography\ECDsa.cs (2)
159
throw new
CryptographicException
();
441
throw new
CryptographicException
();
System\Security\Cryptography\ECParameters.cs (1)
58
throw new
CryptographicException
(SR.Cryptography_InvalidCurveKeyParameters);
System\Security\Cryptography\HashAlgorithmName.cs (1)
195
throw new
CryptographicException
(SR.Format(SR.Cryptography_InvalidHashAlgorithmOid, oidValue));
System\Security\Cryptography\HashProviderDispenser.Windows.cs (4)
137
throw new
CryptographicException
();
173
throw new
CryptographicException
();
266
throw new
CryptographicException
();
272
throw new
CryptographicException
();
System\Security\Cryptography\Helpers.cs (14)
45
throw new
CryptographicException
(SR.Cryptography_MissingIV);
175
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
190
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
197
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
313
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
320
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
336
throw new
CryptographicException
();
357
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
435
_ => throw new
CryptographicException
(),
460
throw new
CryptographicException
(SR.Cryptography_HashAlgorithmNameNullOrEmpty);
463
throw new
CryptographicException
(SR.Format(SR.Cryptography_UnknownAlgorithmIdentifier, exportParameters.HashAlgorithm.Name));
473
throw new
CryptographicException
(SR.Cryptography_HashAlgorithmNameNullOrEmpty);
475
throw new
CryptographicException
(SR.Format(SR.Cryptography_UnknownAlgorithmIdentifier, exportParameters.HashAlgorithm.Name));
479
throw new
CryptographicException
(SR.Format(SR.Cryptography_UnknownAlgorithmIdentifier, exportParameters.EncryptionAlgorithm));
System\Security\Cryptography\HKDF.Windows.cs (1)
224
throw new
CryptographicException
();
System\Security\Cryptography\HMACCommon.cs (1)
101
throw new
CryptographicException
(SR.Format(SR.Cryptography_UnknownHashAlgorithm, _hashAlgorithmId));
System\Security\Cryptography\KeyBlobHelpers.cs (2)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
55
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
System\Security\Cryptography\LiteHash.Windows.cs (4)
91
return new
CryptographicException
();
106
throw new
CryptographicException
();
211
return new
CryptographicException
();
226
throw new
CryptographicException
();
System\Security\Cryptography\MD5CryptoServiceProvider.cs (1)
31
throw new
CryptographicException
();
System\Security\Cryptography\Oid.cs (2)
46
throw new
CryptographicException
(SR.Cryptography_Oid_InvalidName);
57
throw new
CryptographicException
(SR.Cryptography_Oid_InvalidValue);
System\Security\Cryptography\PasswordDeriveBytes.cs (4)
77
throw new
CryptographicException
(SR.Cryptography_PasswordDerivedBytes_ValuesFixed, nameof(HashName));
91
throw new
CryptographicException
(SR.Cryptography_PasswordDerivedBytes_ValuesFixed, nameof(IterationCount));
106
throw new
CryptographicException
(SR.Cryptography_PasswordDerivedBytes_ValuesFixed, nameof(Salt));
263
throw new
CryptographicException
(SR.Cryptography_PasswordDerivedBytes_TooManyBytes);
System\Security\Cryptography\PasswordDeriveBytes.Windows.cs (4)
18
throw new
CryptographicException
(SR.Cryptography_InvalidKeySize);
22
throw new
CryptographicException
(SR.Cryptography_PasswordDerivedBytes_InvalidAlgorithm);
26
throw new
CryptographicException
(SR.Cryptography_PasswordDerivedBytes_InvalidAlgorithm);
29
throw new
CryptographicException
(SR.Cryptography_PasswordDerivedBytes_InvalidIV);
System\Security\Cryptography\Pbkdf2Implementation.Windows.cs (3)
78
throw new
CryptographicException
();
194
throw new
CryptographicException
();
219
throw new
CryptographicException
();
System\Security\Cryptography\PemEncoding.cs (1)
722
throw new
CryptographicException
();
System\Security\Cryptography\PKCS1MaskGenerationMethod.cs (1)
33
throw new
CryptographicException
(SR.Format(SR.Cryptography_UnknownHashAlgorithm, _hashNameValue));
System\Security\Cryptography\RC2.cs (4)
45
throw new
CryptographicException
(SR.Cryptography_RC2_EKSKS);
63
throw new
CryptographicException
(SR.Cryptography_RC2_EKSKS);
67
throw new
CryptographicException
(SR.Cryptography_RC2_EKS40);
73
throw new
CryptographicException
(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\RC2CryptoServiceProvider.Windows.cs (1)
103
throw new
CryptographicException
(SR.Cryptography_InvalidIVSize);
System\Security\Cryptography\RC2Implementation.cs (3)
188
throw new
CryptographicException
(SR.Format(SR.Cryptography_CipherModeNotSupported, CipherMode.CFB));
199
throw new
CryptographicException
(SR.Format(SR.Cryptography_CipherModeNotSupported, CipherMode.CFB));
205
throw new
CryptographicException
(SR.Format(SR.Cryptography_CipherModeFeedbackNotSupported, feedback, CipherMode.CFB));
System\Security\Cryptography\Rfc2898DeriveBytes.cs (3)
251
throw new
CryptographicException
(SR.Cryptography_HashAlgorithmNameNullOrEmpty);
263
throw new
CryptographicException
(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name));
287
throw new
CryptographicException
(SR.Cryptography_ExceedKdfExtractLimit);
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (1)
348
throw new
CryptographicException
(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmName));
System\Security\Cryptography\RijndaelImplementation.cs (1)
43
throw new
CryptographicException
(SR.Cryptography_Rijndael_BlockSize);
System\Security\Cryptography\RijndaelManaged.cs (1)
39
throw new
CryptographicException
(SR.Cryptography_Rijndael_BlockSize);
System\Security\Cryptography\RSA.cs (5)
80
throw new
CryptographicException
(SR.Cryptography_InvalidKeySize);
905
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
932
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
1398
throw new
CryptographicException
(SR.Argument_DestinationTooShort);
1417
throw new
CryptographicException
(SR.Argument_DestinationTooShort);
System\Security\Cryptography\RSA.Xml.cs (1)
19
throw new
CryptographicException
(
System\Security\Cryptography\RSABCrypt.cs (9)
192
throw new
CryptographicException
(SR.Cryptography_RSA_DecryptWrongSize);
210
throw new
CryptographicException
(SR.Cryptography_UnsupportedPaddingMode);
237
throw new
CryptographicException
(
255
throw new
CryptographicException
(SR.Cryptography_UnsupportedPaddingMode);
274
throw new
CryptographicException
(SR.Cryptography_SignHash_WrongSize);
301
throw new
CryptographicException
(SR.Cryptography_UnsupportedPaddingMode);
351
throw new
CryptographicException
(SR.Cryptography_UnsupportedPaddingMode);
426
throw new
CryptographicException
();
439
throw new
CryptographicException
(SR.Cryptography_CSP_NoPrivateKey);
System\Security\Cryptography\RSACryptoServiceProvider.Windows.cs (4)
462
throw new
CryptographicException
(SR.Cryptography_CSP_NoPrivateKey);
560
_ => throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name),
624
throw new
CryptographicException
(SR.Cryptography_RSA_DecryptWrongSize);
684
return new
CryptographicException
(SR.Cryptography_InvalidPaddingMode);
System\Security\Cryptography\SHA1CryptoServiceProvider.cs (1)
34
throw new
CryptographicException
();
System\Security\Cryptography\SHA256CryptoServiceProvider.cs (1)
34
throw new
CryptographicException
();
System\Security\Cryptography\SHA384CryptoServiceProvider.cs (1)
34
throw new
CryptographicException
();
System\Security\Cryptography\SHA512CryptoServiceProvider.cs (1)
34
throw new
CryptographicException
();
System\Security\Cryptography\SymmetricAlgorithm.cs (14)
36
throw new
CryptographicException
(SR.Cryptography_InvalidFeedbackSize);
52
throw new
CryptographicException
(SR.Cryptography_InvalidBlockSize);
76
throw new
CryptographicException
(SR.Cryptography_InvalidIVSize);
97
throw new
CryptographicException
(SR.Cryptography_InvalidKeySize);
115
throw new
CryptographicException
(SR.Cryptography_InvalidKeySize);
150
throw new
CryptographicException
(SR.Cryptography_InvalidCipherMode);
166
throw new
CryptographicException
(SR.Cryptography_InvalidPaddingMode);
232
throw new
CryptographicException
(SR.Cryptography_InvalidKeySize);
531
throw new
CryptographicException
(SR.Argument_DestinationTooShort);
651
throw new
CryptographicException
(SR.Format(SR.Cryptography_EncryptedIncorrectLength, nameof(TryEncryptEcbCore)));
781
throw new
CryptographicException
(SR.Argument_DestinationTooShort);
938
throw new
CryptographicException
(SR.Format(SR.Cryptography_EncryptedIncorrectLength, nameof(TryEncryptCbcCore)));
1132
throw new
CryptographicException
(SR.Argument_DestinationTooShort);
1374
throw new
CryptographicException
(SR.Format(SR.Cryptography_EncryptedIncorrectLength, nameof(TryEncryptCfbCore)));
System\Security\Cryptography\SymmetricPadding.cs (11)
21
throw new
CryptographicException
(SR.Cryptography_PartialBlock);
32
throw new
CryptographicException
(SR.Cryptography_UnknownPaddingMode);
45
throw new
CryptographicException
(SR.Cryptography_PartialBlock);
128
throw new
CryptographicException
(SR.Cryptography_UnknownPaddingMode);
146
throw new
CryptographicException
(SR.Cryptography_UnknownPaddingMode);
163
throw new
CryptographicException
(SR.Cryptography_InvalidPadding);
169
throw new
CryptographicException
(SR.Cryptography_InvalidPadding);
180
throw new
CryptographicException
(SR.Cryptography_InvalidPadding);
191
throw new
CryptographicException
(SR.Cryptography_InvalidPadding);
197
throw new
CryptographicException
(SR.Cryptography_InvalidPadding);
210
throw new
CryptographicException
(SR.Cryptography_UnknownPaddingMode);
System\Security\Cryptography\TripleDES.cs (3)
57
throw new
CryptographicException
(SR.Format(SR.Cryptography_InvalidKey_Weak, "TripleDES"));
66
throw new
CryptographicException
(SR.Cryptography_InvalidKeySize); // .NET Framework compat: Strange exception for a null value, but this is what we threw in classic CLR.
69
throw new
CryptographicException
(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\TripleDesImplementation.cs (1)
234
throw new
CryptographicException
(SR.Format(SR.Cryptography_CipherModeFeedbackNotSupported, feedback, CipherMode.CFB));
System\Security\Cryptography\UniversalCryptoDecryptor.cs (1)
72
throw new
CryptographicException
(SR.Cryptography_PartialBlock);
System\Security\Cryptography\UniversalCryptoOneShot.cs (2)
21
throw new
CryptographicException
(SR.Cryptography_PartialBlock);
29
throw new
CryptographicException
(SR.Cryptography_InvalidPadding);
System\Security\Cryptography\X509Certificates\Asn1\AccessDescriptionAsn.xml.cs (3)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
55
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
72
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\BasicConstraintsAsn.xml.cs (2)
82
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
99
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\CertificateAsn.xml.cs (2)
50
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
67
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\CertificatePolicyMappingAsn.xml.cs (4)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
40
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
62
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
79
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\CertificateTemplateAsn.xml.cs (3)
33
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
62
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
79
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestAsn.xml.cs (2)
50
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
67
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (12)
35
throw new
CryptographicException
();
45
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
76
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
93
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
109
throw new
CryptographicException
();
160
throw new
CryptographicException
();
171
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
181
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
202
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
219
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
231
throw new
CryptographicException
();
239
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
System\Security\Cryptography\X509Certificates\Asn1\PolicyConstraintsAsn.xml.cs (2)
58
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
75
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml.cs (4)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
43
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
67
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
84
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.manual.cs (3)
35
throw new
CryptographicException
();
41
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
48
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (8)
79
throw new
CryptographicException
();
89
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
97
throw new
CryptographicException
();
107
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
157
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
174
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
217
throw new
CryptographicException
();
225
throw new
CryptographicException
();
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (7)
58
throw new
CryptographicException
();
67
throw new
CryptographicException
();
75
throw new
CryptographicException
();
91
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
103
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
122
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
128
throw new
CryptographicException
();
System\Security\Cryptography\X509Certificates\Asn1\ValidityAsn.xml.cs (2)
48
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (1)
195
throw new
CryptographicException
(SR.Format(SR.Cryptography_InvalidHandle, nameof(handle)));
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.Import.cs (1)
102
throw new
CryptographicException
(
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
710
throw new
CryptographicException
();
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (10)
79
throw new
CryptographicException
(
163
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
170
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
178
throw new
CryptographicException
(
194
throw new
CryptographicException
(SR.Cryptography_CertReq_SignatureVerificationFailed);
214
throw new
CryptographicException
(
227
throw new
CryptographicException
(
237
throw new
CryptographicException
(SR.Cryptography_CertReq_Load_DuplicateExtensionRequests);
286
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
296
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.CdpExtension.cs (1)
96
throw new
CryptographicException
(SR.Cryptography_Invalid_IA5String, e);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (1)
317
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (7)
54
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
103
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
119
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
163
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
192
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
289
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
296
throw new
CryptographicException
(SR.Cryptography_NoPemOfLabel, PemLabels.X509CertificateRevocationList);
System\Security\Cryptography\X509Certificates\ChainPal.Windows.cs (1)
30
throw new
CryptographicException
(SR.Cryptography_InvalidContextHandle, nameof(chainContext));
System\Security\Cryptography\X509Certificates\FindPal.cs (3)
155
throw new
CryptographicException
(SR.Cryptography_X509_InvalidFindType);
167
throw new
CryptographicException
(SR.Cryptography_X509_InvalidFindValue);
205
throw new
CryptographicException
(SR.Cryptography_X509_InvalidFindValue);
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
468
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs (1)
32
throw new
CryptographicException
(SR.Cryptography_InvalidPaddingMode);
System\Security\Cryptography\X509Certificates\StorePal.Windows.cs (2)
26
throw new
CryptographicException
(SR.Cryptography_InvalidStoreHandle, nameof(storeHandle));
98
throw new
CryptographicException
(SR.Cryptography_X509_StoreNotOpen);
System\Security\Cryptography\X509Certificates\StorePal.Windows.Export.cs (3)
87
throw new
CryptographicException
(SR.Cryptography_X509_InvalidContentType);
178
throw new
CryptographicException
();
199
throw new
CryptographicException
();
System\Security\Cryptography\X509Certificates\StorePal.Windows.Import.cs (1)
90
throw new
CryptographicException
(
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (1)
115
throw new
CryptographicException
(SR.Cryptography_Invalid_IA5String);
System\Security\Cryptography\X509Certificates\X500DirectoryStringHelper.cs (4)
16
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
33
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
43
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
60
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (1)
155
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\X500RelativeDistinguishedName.cs (1)
149
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (2)
270
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
300
throw new
CryptographicException
(SR.Cryptography_Invalid_IA5String, e);
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (2)
474
throw new
CryptographicException
(SR.Cryptography_X509_AKID_NoSKID);
584
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\X509Certificate.cs (6)
328
throw new
CryptographicException
(ErrorCode.E_POINTER); // Not the greatest error, but needed for backward compat.
342
throw new
CryptographicException
(ErrorCode.E_POINTER); // Not the greatest error, but needed for backward compat.
373
throw new
CryptographicException
(ErrorCode.E_POINTER); // Consistent with existing Export method.
415
throw new
CryptographicException
(ErrorCode.E_POINTER); // Consistent with existing Export method.
727
throw new
CryptographicException
(SR.Format(SR.Cryptography_InvalidHandle, "m_safeCertContext")); // Keeping "m_safeCertContext" string for backward compat sake.
767
throw 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)),
1539
throw new
CryptographicException
(SR.Cryptography_X509_NoPemCertificate);
1553
throw new
CryptographicException
(SR.Cryptography_X509_NoPemCertificate);
1563
throw new
CryptographicException
(SR.Cryptography_X509_NoPemCertificate);
1737
throw new
CryptographicException
(SR.Cryptography_X509_TooManySANs);
1909
throw new
CryptographicException
(SR.Cryptography_X509_NoOrMismatchedPemKey);
1925
throw new
CryptographicException
(SR.Cryptography_X509_NoOrMismatchedPemKey, ae);
1950
throw new
CryptographicException
(SR.Cryptography_X509_NoOrMismatchedPemKey, ae);
1956
throw new
CryptographicException
(SR.Cryptography_X509_NoOrMismatchedPemKey);
2044
throw new
CryptographicException
(SR.Cryptography_X509_NoOrMismatchedPemKey, ce);
2057
throw new
CryptographicException
(SR.Cryptography_X509_NoOrMismatchedPemKey);
2127
throw new
CryptographicException
(SR.Cryptography_X509_NoOrMismatchedPemKey, ce);
2135
throw new
CryptographicException
(SR.Cryptography_X509_NoOrMismatchedPemKey);
2170
throw new
CryptographicException
();
2187
throw new
CryptographicException
();
2220
throw new
CryptographicException
(SR.Cryptography_X509_NoOrMismatchedPemKey);
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (7)
456
throw new
CryptographicException
(SR.Cryptography_X509_NoPemCertificate);
468
throw new
CryptographicException
(SR.Cryptography_X509_NoPemCertificate);
503
throw new
CryptographicException
(SR.Cryptography_X509_ExportFailed);
530
throw new
CryptographicException
(SR.Cryptography_X509_ExportFailed);
571
throw new
CryptographicException
();
626
throw new
CryptographicException
();
745
throw new
CryptographicException
();
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Windows.cs (2)
135
throw new
CryptographicException
(SR.Cryptography_Pfx_NoCertificates);
214
throw new
CryptographicException
();
System\Security\Cryptography\X509Certificates\X509Chain.cs (3)
106
throw new
CryptographicException
(SR.Cryptography_CustomTrustCertsInSystemMode);
112
throw new
CryptographicException
(SR.Cryptography_InvalidTrustCertificate);
187
throw new
CryptographicException
(SR.Cryptography_X509_ChainBuildingFailed);
System\Security\Cryptography\X509Certificates\X509EnhancedKeyUsageExtension.cs (1)
102
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\X509KeyUsageExtension.cs (1)
76
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\X509Store.cs (4)
90
throw new
CryptographicException
(SR.Cryptography_X509_StoreNotOpen);
131
throw new
CryptographicException
(SR.Cryptography_X509_StoreNotOpen);
134
throw new
CryptographicException
(SR.Cryptography_InvalidHandle, "pCertContext");
169
throw new
CryptographicException
(SR.Cryptography_X509_StoreNotOpen);
System\Security\Cryptography\X509Certificates\X509SubjectAlternativeNameExtension.cs (2)
132
throw new
CryptographicException
(
144
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (2)
114
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
119
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\XmlKeyHelper.cs (2)
25
throw new
CryptographicException
(SR.Cryptography_FromXmlParseError, e);
149
throw new
CryptographicException
();
System.Security.Cryptography.Cose (40)
System\Security\Cryptography\Cose\CborReaderExtensions.cs (1)
18
throw 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)));
193
throw 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));
119
throw new
CryptographicException
(SR.Format(SR.Sign1UnknownCoseAlgorithm, alg));
144
throw new
CryptographicException
(SR.Format(SR.Sign1UnknownCoseAlgorithm, alg));
168
_ => throw new
CryptographicException
(SR.Format(SR.Sign1UnknownCoseAlgorithm, algString))
186
throw new
CryptographicException
(SR.Format(SR.Sign1UnsupportedKey, KeyType.ToString()));
211
throw new
CryptographicException
(SR.Format(SR.Sign1UnsupportedKey, KeyType.ToString()));
220
throw new
CryptographicException
();
231
throw new
CryptographicException
();
System\Security\Cryptography\Cose\CoseMessage.cs (21)
127
throw new
CryptographicException
(SR.Format(SR.DecodeSign1IncorrectTag, tag));
134
throw new
CryptographicException
(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeMessageContainedTrailingData));
143
throw new
CryptographicException
(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeSign1ArrayLengthMustBeFour));
154
throw new
CryptographicException
(SR.Sign1SignHeaderDuplicateLabels);
167
throw new
CryptographicException
(SR.DecodeErrorWhileDecodingSeeInnerEx, ex);
212
throw new
CryptographicException
(SR.Format(SR.DecodeMultiSignIncorrectTag, tag));
219
throw new
CryptographicException
(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeMessageContainedTrailingData));
228
throw new
CryptographicException
(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeMultiSignArrayLengthMustBeFour));
239
throw new
CryptographicException
(SR.Sign1SignHeaderDuplicateLabels);
252
throw new
CryptographicException
(SR.DecodeErrorWhileDecodingSeeInnerEx, ex);
278
throw new
CryptographicException
(SR.Format(SR.CriticalHeaderMissing, labelName));
285
throw new
CryptographicException
(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeSign1EncodedProtectedMapIncorrect));
312
_ => throw new
CryptographicException
(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeSign1MapLabelWasIncorrect))
326
throw new
CryptographicException
(e.Message, e.InnerException);
330
throw new
CryptographicException
(SR.DecodeErrorWhileDecodingSeeInnerEx, e);
348
throw new
CryptographicException
(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeSign1PayloadWasIncorrect));
371
throw new
CryptographicException
(SR.Format(SR.DecodeErrorWhileDecoding, SR.MultiSignMessageMustCarryAtLeastOneSignature));
385
throw new
CryptographicException
(SR.Format(SR.DecodeErrorWhileDecoding, SR.DecodeCoseSignatureMustBeArrayOfThree));
396
throw new
CryptographicException
(SR.Sign1SignHeaderDuplicateLabels);
607
_ => throw new
CryptographicException
(SR.CriticalHeadersLabelWasIncorrect)
619
throw new
CryptographicException
(SR.CriticalHeadersMustBeArrayOfAtLeastOne);
System\Security\Cryptography\Cose\CoseSign1Message.cs (2)
1036
throw new
CryptographicException
(SR.Sign1VerifyAlgHeaderWasIncorrect);
1048
throw new
CryptographicException
(SR.Format(SR.Sign1VerifyAlgDoesNotMatchKeyAlgorithm, algorithm, key.Algorithm));
System\Security\Cryptography\Cose\CoseSignature.cs (2)
686
throw new
CryptographicException
(SR.Sign1VerifyAlgHeaderWasIncorrect);
698
throw new
CryptographicException
(SR.Format(SR.Sign1VerifyAlgDoesNotMatchKeyAlgorithm, algorithm, key.Algorithm));
System.Security.Cryptography.Pkcs (476)
Internal\Cryptography\Pal\AnyOS\AsnHelpers.cs (2)
120
throw new
CryptographicException
();
127
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Asn.cs (1)
30
throw new
CryptographicException
(SR.Cryptography_Cms_InvalidMessageType);
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (7)
59
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
63
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
105
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
120
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
130
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
135
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
201
throw new
CryptographicException
(SR.Cryptography_Cms_UnknownAlgorithm, algorithmIdentifier);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (2)
74
throw new
CryptographicException
();
89
throw new
CryptographicException
(SR.Cryptography_Cms_InvalidMessageType);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (3)
51
exception = new
CryptographicException
(SR.Cryptography_Cms_Ktri_RSARequired);
84
exception = new
CryptographicException
(
168
throw new
CryptographicException
(SR.Cryptography_Cms_InvalidSymmetricKey, ce);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (2)
114
_ => throw new
CryptographicException
(
195
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Exceptions.cs (2)
13
return new
CryptographicException
(SR.Cryptography_Cms_RecipientNotFound);
34
return new
CryptographicException
(SR.Cryptography_Cms_InvalidMessageType);
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (7)
47
exception = new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
54
exception = new
CryptographicException
(
86
exception = new
CryptographicException
(
135
throw new
CryptographicException
(
169
throw new
CryptographicException
(SR.Cryptography_Cms_UnknownAlgorithm);
189
exception = new
CryptographicException
(SR.Cryptography_Cms_Signing_RequiresPrivateKey);
204
exception = new
CryptographicException
();
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decrypt.cs (2)
35
exception = new
CryptographicException
(SR.Cryptography_Cms_Ktri_RSARequired);
246
return new
CryptographicException
(SR.Format(SR.Cryptography_Cms_Invalid_Originator_Identifier_Choice, originatorChoice));
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (4)
215
throw new
CryptographicException
(SR.Format(SR.Cryptography_Cms_Invalid_Subject_Identifier_Type, certId.dwIdChoice));
237
throw new
CryptographicException
(SR.Format(SR.Cryptography_Cms_Invalid_Subject_Identifier_Type, subjectIdentifierType));
385
throw new
CryptographicException
();
399
throw 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)
73
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
96
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
Internal\Cryptography\PkcsHelpers.cs (8)
67
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, oidValue);
210
throw new
CryptographicException
();
311
throw new
CryptographicException
(); // This just keeps the compiler happy. We don't expect to reach this.
347
exception = new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
360
exception = new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
368
exception = new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
377
exception = new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
396
exception = new
CryptographicException
(
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (14)
70
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
91
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
98
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
120
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
127
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
135
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
185
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
200
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
207
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
235
throw new
CryptographicException
(SR.Cryptography_Cms_UnknownAlgorithm, algName.Name);
310
throw new
CryptographicException
(ex.Message, ex);
326
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
333
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
404
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (8)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
43
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
67
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
84
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
141
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
153
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
176
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
193
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (9)
33
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
45
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
70
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
87
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
144
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
153
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
174
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
191
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
204
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (4)
48
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
129
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
146
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (11)
64
throw new
CryptographicException
();
73
throw new
CryptographicException
();
82
throw new
CryptographicException
();
89
throw new
CryptographicException
();
99
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
107
throw new
CryptographicException
();
116
throw new
CryptographicException
();
124
throw new
CryptographicException
();
140
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
152
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
187
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (2)
57
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
74
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (4)
48
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
129
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
146
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (17)
72
throw new
CryptographicException
();
81
throw new
CryptographicException
();
90
throw new
CryptographicException
();
99
throw new
CryptographicException
();
106
throw new
CryptographicException
();
116
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
124
throw new
CryptographicException
();
133
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
142
throw new
CryptographicException
();
151
throw new
CryptographicException
();
160
throw new
CryptographicException
();
169
throw new
CryptographicException
();
177
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
184
throw new
CryptographicException
();
200
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
212
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
282
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\OaepParamsAsn.xml.cs (2)
119
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
136
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (4)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
41
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
81
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (2)
47
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (2)
47
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (2)
84
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
101
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (6)
80
throw new
CryptographicException
();
89
throw new
CryptographicException
();
97
throw new
CryptographicException
();
112
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
124
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
158
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (4)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
41
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
81
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (4)
84
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
101
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
201
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
218
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (3)
49
throw new
CryptographicException
(
55
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
83
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (4)
55
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
72
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
156
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
173
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (4)
34
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
43
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
79
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
96
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (4)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
41
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
81
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (17)
64
throw new
CryptographicException
();
71
throw new
CryptographicException
();
81
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
89
throw new
CryptographicException
();
96
throw new
CryptographicException
();
106
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
114
throw new
CryptographicException
();
121
throw new
CryptographicException
();
131
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
139
throw new
CryptographicException
();
146
throw new
CryptographicException
();
156
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
164
throw new
CryptographicException
();
172
throw new
CryptographicException
();
188
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
200
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
241
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (8)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
41
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
81
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
127
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
137
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
159
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
176
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncapsulatedContentInfoAsn.xml.cs (4)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
44
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
69
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
86
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (3)
33
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
62
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
79
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (2)
63
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
80
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\IssuerAndSerialNumberAsn.xml.cs (5)
31
throw new
CryptographicException
();
41
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
64
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
81
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
95
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\OtherCertificateFormat.xml.cs (4)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
40
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
62
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
79
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignedDataAsn.xml.cs (3)
67
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
102
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
119
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (6)
58
throw new
CryptographicException
();
67
throw new
CryptographicException
();
75
throw new
CryptographicException
();
91
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
103
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
137
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (4)
43
throw new
CryptographicException
();
53
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
92
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
109
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (5)
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
82
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
179
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
202
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
219
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (5)
15
throw new
CryptographicException
(SR.Cryptography_Pkcs_InvalidSignatureParameters);
20
throw new
CryptographicException
(
27
throw new
CryptographicException
(SR.Cryptography_Pkcs_InvalidSignatureParameters);
37
throw new
CryptographicException
(
53
throw new
CryptographicException
(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (2)
150
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
167
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (4)
48
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
134
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
151
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (4)
48
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
129
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
146
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (6)
50
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
86
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
103
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
165
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
200
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
217
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AsnWriter\AsnWriterExtensions.cs (2)
20
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
34
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
63
throw new
CryptographicException
(SR.Cryptography_Pkcs9_MultipleSigningTimeNotAllowed);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoThrowHelper.Windows.cs (1)
29
return new
CryptographicException
(message)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (5)
138
throw new
CryptographicException
(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashOid));
213
throw new
CryptographicException
(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmName), ex);
230
throw new
CryptographicException
(
267
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, ace);
272
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (8)
48
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
53
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
78
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
84
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
126
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
135
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
154
throw new
CryptographicException
(SR.Cryptography_NotValidPublicOrPrivateKey);
162
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (11)
143
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
173
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
180
throw new
CryptographicException
(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
325
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
350
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
375
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
398
throw new
CryptographicException
(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
417
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
430
throw new
CryptographicException
(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
453
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
466
throw new
CryptographicException
(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (38)
33
return new
CryptographicException
(SR.Cryptography_AlgKdfRequiresChars, algId);
59
throw new
CryptographicException
(
74
throw new
CryptographicException
(
107
throw new
CryptographicException
(
170
throw new
CryptographicException
(
270
throw new
CryptographicException
(
302
throw new
CryptographicException
(
329
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, prf.Name);
416
throw new
CryptographicException
();
445
throw new
CryptographicException
();
545
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
552
throw new
CryptographicException
(
604
throw new
CryptographicException
(
628
throw new
CryptographicException
();
633
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
656
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
674
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
681
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
692
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
711
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
723
throw new
CryptographicException
(SR.Cryptography_UnknownAlgorithmIdentifier, algId);
733
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
749
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
756
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
768
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
777
throw new
CryptographicException
(
786
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
795
_ => throw new
CryptographicException
(
806
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
834
throw new
CryptographicException
(SR.Argument_InvalidValue, e);
857
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
864
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
869
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
908
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
918
throw new
CryptographicException
();
1038
throw new
CryptographicException
();
1051
throw new
CryptographicException
();
1137
throw new
CryptographicException
(SR.Argument_InvalidValue);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
215
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (2)
95
throw new
CryptographicException
(SR.Argument_InvalidOidValue);
112
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (4)
66
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
98
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
104
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
150
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (6)
70
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
231
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
239
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
244
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
358
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
560
throw new
CryptographicException
();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (3)
91
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
192
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
223
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (4)
101
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
186
throw new
CryptographicException
();
284
throw new
CryptographicException
();
301
throw new
CryptographicException
();
System\Security\Cryptography\Pkcs\Asn1\CadesIssuerSerial.xml.cs (2)
56
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
73
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\EnvelopedDataAsn.xml.cs (2)
79
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
96
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\EssCertId.xml.cs (2)
53
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
70
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\EssCertIdV2.xml.cs (2)
84
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
101
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (6)
58
throw new
CryptographicException
();
67
throw new
CryptographicException
();
75
throw new
CryptographicException
();
91
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
103
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
128
throw new
CryptographicException
();
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (2)
71
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
88
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\KeyTransRecipientInfoAsn.xml.cs (2)
52
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
69
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\MessageImprint.xml.cs (5)
48
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
115
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
137
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
154
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (7)
60
throw new
CryptographicException
();
69
throw new
CryptographicException
();
78
throw new
CryptographicException
();
86
throw new
CryptographicException
();
102
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
114
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
155
throw new
CryptographicException
();
System\Security\Cryptography\Pkcs\Asn1\OriginatorInfoAsn.xml.cs (3)
53
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
80
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
97
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\OriginatorPublicKeyAsn.xml.cs (2)
48
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\OtherKeyAttributeAsn.xml.cs (4)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
43
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
67
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
84
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\PkiStatusInfo.xml.cs (4)
36
throw new
CryptographicException
();
46
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
76
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
93
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\PolicyInformation.xml.cs (3)
33
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
68
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
85
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\PolicyQualifierInfo.xml.cs (4)
32
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
40
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
62
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
79
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\RecipientEncryptedKeyAsn.xml.cs (2)
48
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (6)
58
throw new
CryptographicException
();
67
throw new
CryptographicException
();
75
throw new
CryptographicException
();
91
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
103
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
137
throw new
CryptographicException
();
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (6)
58
throw new
CryptographicException
();
67
throw new
CryptographicException
();
75
throw new
CryptographicException
();
91
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
103
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
128
throw new
CryptographicException
();
System\Security\Cryptography\Pkcs\Asn1\RecipientKeyIdentifier.xml.cs (2)
60
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
77
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161Accuracy.xml.cs (2)
65
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
82
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (3)
59
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
115
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
132
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampResp.xml.cs (3)
36
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
60
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
77
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (8)
59
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
130
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
147
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
300
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
341
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
356
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
379
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
396
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (5)
57
throw new
CryptographicException
();
72
throw new
CryptographicException
();
88
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
100
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
131
throw new
CryptographicException
();
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateAsn.xml.cs (2)
68
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
85
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateV2Asn.xml.cs (2)
68
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
85
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\CmsRecipient.cs (2)
59
throw new
CryptographicException
(SR.Format(SR.Cryptography_Cms_Invalid_Subject_Identifier_Type, recipientIdentifierType));
83
throw new
CryptographicException
(SR.Cryptography_Cms_Recipient_RSARequired_RSAPaddingModeSupplied);
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (1)
58
throw new
CryptographicException
(
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (1)
60
throw new
CryptographicException
(
System\Security\Cryptography\Pkcs\CmsSignature.MLDsa.cs (1)
49
throw new
CryptographicException
(
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (4)
61
throw new
CryptographicException
(
206
throw new
CryptographicException
(SR.Cryptography_Pkcs_InvalidSignatureParameters);
311
throw new
CryptographicException
(SR.Cryptography_Pkcs_PssParametersMissing);
321
throw new
CryptographicException
(
System\Security\Cryptography\Pkcs\CmsSignature.SlhDsa.cs (1)
60
throw new
CryptographicException
(
System\Security\Cryptography\Pkcs\CmsSigner.cs (5)
238
throw new
CryptographicException
(SR.Cryptography_Cms_Signing_RequiresPrivateKey);
379
throw new
CryptographicException
();
405
throw new
CryptographicException
(SR.Cryptography_Cms_CannotDetermineSignatureAlgorithm);
429
throw new
CryptographicException
(SR.Cryptography_Cms_CannotDetermineSignatureAlgorithm);
474
throw new
CryptographicException
(SR.Cryptography_Cms_IncompleteCertChain);
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (9)
70
throw new
CryptographicException
();
107
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
119
throw new
CryptographicException
(
134
throw new
CryptographicException
(SR.Cryptography_TimestampReq_BadResponse);
396
throw new
CryptographicException
(SR.Cryptography_BadHashValue);
409
throw new
CryptographicException
(SR.Cryptography_TimestampReq_BadResponse);
432
throw new
CryptographicException
(SR.Cryptography_TimestampReq_BadNonce);
453
throw new
CryptographicException
(SR.Cryptography_TimestampReq_NoCertFound);
468
throw new
CryptographicException
(SR.Cryptography_TimestampReq_UnexpectedCertFound);
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (2)
67
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
291
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding);
System\Security\Cryptography\Pkcs\SignedCms.cs (11)
221
throw new
CryptographicException
(SR.Cryptography_Cms_InvalidMessageType);
259
throw new
CryptographicException
();
269
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
298
throw new
CryptographicException
(SR.Cryptography_Cms_Sign_Empty_Content);
307
throw new
CryptographicException
(SR.Cryptography_Cms_Sign_No_Signature_First_Signer);
403
throw new
CryptographicException
(SR.Cryptography_Cms_SignerNotFound);
434
throw new
CryptographicException
(SR.Cryptography_Der_Invalid_Encoding, e);
610
throw new
CryptographicException
(SR.Cryptography_Cms_NoSignerAtIndex);
636
throw new
CryptographicException
(SR.Cryptography_Cms_NoSignerAtIndex);
670
throw new
CryptographicException
(SR.Cryptography_Cms_CertificateAlreadyInCollection);
719
throw new
CryptographicException
(SR.Cryptography_Cms_NoCertificateFound);
System\Security\Cryptography\Pkcs\SignerInfo.cs (24)
112
throw new
CryptographicException
(SR.Cryptography_Cms_SignerNotFound);
130
throw new
CryptographicException
(SR.Cryptography_Cms_NoSignerAtIndex);
138
throw new
CryptographicException
(SR.Cryptography_Cms_NoSignerAtIndex);
174
throw new
CryptographicException
(SR.Cryptography_Cms_NoSignerAtIndex);
243
throw new
CryptographicException
(SR.Cryptography_Cms_NoAttributeFound);
295
throw new
CryptographicException
(SR.Cryptography_Cms_NoCounterCounterSigner);
305
throw new
CryptographicException
(SR.Cryptography_Cms_SignerNotFound);
363
throw new
CryptographicException
(SR.Cryptography_Cms_SignerNotFound);
371
throw new
CryptographicException
(SR.Cryptography_Cms_NoSignerAtIndex);
404
throw new
CryptographicException
(SR.Cryptography_Cms_NoSignerAtIndex);
435
throw new
CryptographicException
(SR.Cryptography_Cms_SignerNotFound);
443
throw new
CryptographicException
(SR.Cryptography_Cms_SignerNotFound);
464
throw new
CryptographicException
(SR.Cryptography_Cms_SignerNotFound);
475
throw new
CryptographicException
(SR.Cryptography_Pkcs_InvalidSignatureParameters);
480
throw new
CryptographicException
(SR.Cryptography_BadSignature);
643
throw new
CryptographicException
(SR.Cryptography_BadHashValue);
650
throw new
CryptographicException
(SR.Cryptography_BadHashValue);
665
throw new
CryptographicException
(SR.Cryptography_Cms_MissingAuthenticatedAttribute);
731
throw new
CryptographicException
(SR.Cryptography_Cms_MissingAuthenticatedAttribute);
781
throw new
CryptographicException
(SR.Cryptography_Cms_MissingAuthenticatedAttribute);
850
throw new
CryptographicException
(SR.Cryptography_Cms_UnknownAlgorithm, SignatureAlgorithm.Value);
859
throw new
CryptographicException
(SR.Cryptography_BadSignature);
874
throw new
CryptographicException
(SR.Cryptography_Cms_TrustFailure, status.StatusInformation);
904
throw new
CryptographicException
(SR.Cryptography_Cms_WrongKeyUsage);
System\Security\Cryptography\Pkcs\SubjectIdentifier.cs (3)
94
throw new
CryptographicException
();
132
throw new
CryptographicException
();
167
throw new
CryptographicException
();
System.Security.Cryptography.ProtectedData (2)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoThrowHelper.Windows.cs (1)
29
return new
CryptographicException
(message)
System\Security\Cryptography\ProtectedData.cs (1)
368
throw new
CryptographicException
(SR.Cryptography_DpApi_ProfileMayNotBeLoaded);
System.Security.Cryptography.Xml (160)
System\Security\Cryptography\Xml\CanonicalizationDispatcher.cs (2)
21
throw new
CryptographicException
(SR.Cryptography_Xml_MaxDepthExceeded);
58
throw new
CryptographicException
(SR.Cryptography_Xml_MaxDepthExceeded);
System\Security\Cryptography\Xml\CipherData.cs (5)
45
throw new
CryptographicException
(SR.Cryptography_Xml_CipherValueElementRequired);
61
throw new
CryptographicException
(SR.Cryptography_Xml_CipherValueElementRequired);
91
throw new
CryptographicException
(SR.Cryptography_Xml_CipherValueElementRequired);
111
throw new
CryptographicException
(SR.Cryptography_Xml_CipherValueElementRequired);
121
throw new
CryptographicException
(SR.Cryptography_Xml_CipherValueElementRequired);
System\Security\Cryptography\Xml\CipherReference.cs (2)
55
throw new
CryptographicException
(SR.Cryptography_Xml_ReferenceTypeRequired);
77
Uri = uri ?? throw new
CryptographicException
(SR.Cryptography_Xml_UriRequired);
System\Security\Cryptography\Xml\DSAKeyValue.cs (6)
155
throw new
CryptographicException
(SR.Format(SR.WrongRootElement, KeyValueElementName, SignedXml.XmlDsigNamespaceUrl));
165
throw new
CryptographicException
(SR.Format(SR.MustContainChildElement, KeyValueElementName, DSAKeyValueElementName));
170
throw new
CryptographicException
(SR.Format(SR.ElementMissing, YElementName));
176
throw new
CryptographicException
(SR.Format(SR.ElementCombinationMissing, PElementName, QElementName));
185
throw new
CryptographicException
(SR.Format(SR.ElementCombinationMissing, SeedElementName, PgenCounterElementName));
202
throw new
CryptographicException
($"An error occurred parsing the key components", ex);
System\Security\Cryptography\Xml\EncryptedData.cs (2)
45
throw new
CryptographicException
(SR.Cryptography_Xml_MissingCipherData);
110
throw new
CryptographicException
(SR.Cryptography_Xml_MissingCipherData);
System\Security\Cryptography\Xml\EncryptedKey.cs (2)
81
throw new
CryptographicException
(SR.Cryptography_Xml_MissingCipherData);
183
throw new
CryptographicException
(SR.Cryptography_Xml_MissingCipherData);
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
90
throw new
CryptographicException
(SR.Cryptography_Xml_ReferenceTypeRequired);
System\Security\Cryptography\Xml\EncryptedType.cs (1)
85
throw new
CryptographicException
(SR.Cryptography_Xml_MaxDepthExceeded);
System\Security\Cryptography\Xml\EncryptedXml.cs (23)
215
throw new
CryptographicException
(SR.Cryptography_Xml_UriNotSupported);
225
throw new
CryptographicException
(SR.Cryptography_Xml_UriNotSupported);
229
throw new
CryptographicException
(SR.Cryptography_Xml_NotSupportedCryptographicTransform);
241
throw new
CryptographicException
(SR.Cryptography_Xml_UriNotSupported);
248
throw new
CryptographicException
(SR.Cryptography_Xml_UriNotSupported);
252
throw new
CryptographicException
(SR.Cryptography_Xml_NotSupportedCryptographicTransform);
259
throw new
CryptographicException
(SR.Cryptography_Xml_UriNotResolved, cipherData.CipherReference.Uri);
278
throw new
CryptographicException
(SR.Cryptography_Xml_MissingCipherData);
301
throw new
CryptographicException
(SR.Cryptography_Xml_MissingAlgorithm);
317
throw new
CryptographicException
(SR.Cryptography_Xml_UriNotSupported);
394
throw new
CryptographicException
(SR.Cryptography_Xml_MissingAlgorithm);
399
throw new
CryptographicException
(SR.Cryptography_Xml_MissingDecryptionKey);
404
throw new
CryptographicException
(SR.Cryptography_Xml_MissingAlgorithm);
442
throw new
CryptographicException
(SR.Cryptography_Xml_MissingAlgorithm);
466
throw new
CryptographicException
(SR.Cryptography_Xml_MissingAlgorithm);
513
throw new
CryptographicException
(SR.Cryptography_Xml_MissingAlgorithm);
518
throw new
CryptographicException
(SR.Cryptography_Xml_MissingAlgorithm);
540
throw new
CryptographicException
(SR.Cryptography_Xml_NotSupportedCryptographicTransform);
603
throw new
CryptographicException
(SR.Cryptography_Xml_MissingEncryptionKey);
646
throw new
CryptographicException
(SR.Cryptography_Xml_NotSupportedCryptographicTransform);
686
throw new
CryptographicException
(SR.Cryptography_Xml_MissingDecryptionKey);
900
throw new
CryptographicException
(SR.Cryptography_Xml_NotSupportedCryptographicTransform);
942
throw new
CryptographicException
(SR.Cryptography_Xml_NotSupportedCryptographicTransform);
System\Security\Cryptography\Xml\EncryptionProperty.cs (3)
24
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidEncryptionProperty);
49
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidEncryptionProperty);
84
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidEncryptionProperty);
System\Security\Cryptography\Xml\KeyInfo.cs (2)
73
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "KeyInfo");
88
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "KeyInfo/KeyValue");
System\Security\Cryptography\Xml\KeyInfoEncryptedKey.cs (2)
31
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "KeyInfoEncryptedKey");
38
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "KeyInfoEncryptedKey");
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (4)
68
throw new
CryptographicException
(SR.Cryptography_Partial_Chain);
89
throw new
CryptographicException
(SR.Cryptography_Partial_Chain);
289
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "X509Data");
302
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "IssuerSerial");
System\Security\Cryptography\Xml\Reference.cs (20)
187
throw new
CryptographicException
(SR.Cryptography_Xml_DigestMethodRequired);
196
throw new
CryptographicException
(SR.Cryptography_Xml_DigestValueRequired);
217
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Reference");
230
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms");
236
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms");
243
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms");
247
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms");
255
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
260
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
314
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Reference/DigestMethod");
318
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Reference/DigestMethod");
324
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Reference/DigestValue");
328
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Reference/DigestValue");
332
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Reference");
361
throw new
CryptographicException
(SR.Cryptography_Xml_CreateHashAlgorithmFailed);
397
throw new
CryptographicException
(SR.Format(SR.Cryptography_Xml_SelfReferenceRequiresContext, _uri));
413
throw new
CryptographicException
(SR.Format(SR.Cryptography_Xml_SelfReferenceRequiresContext, _uri));
446
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidReference);
467
throw new
CryptographicException
(SR.Cryptography_Xml_UriNotResolved, _uri);
476
throw new
CryptographicException
(SR.Cryptography_Xml_UriNotResolved, _uri);
System\Security\Cryptography\Xml\RSAKeyValue.cs (3)
110
throw new
CryptographicException
(SR.Format(SR.WrongRootElement, KeyValueElementName, SignedXml.XmlDsigNamespaceUrl));
120
throw new
CryptographicException
(SR.Format(SR.MustContainChildElement, KeyValueElementName, RSAKeyValueElementName));
133
throw new
CryptographicException
($"An error occurred parsing the {ModulusElementName} and {ExponentElementName} elements", ex);
System\Security\Cryptography\Xml\Signature.cs (9)
101
throw new
CryptographicException
(SR.Cryptography_Xml_SignedInfoRequired);
107
throw new
CryptographicException
(SR.Cryptography_Xml_SignatureValueRequired);
141
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Signature");
146
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Signature");
155
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "SignedInfo");
165
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "SignatureValue");
171
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "SignatureValue");
180
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "KeyInfo");
221
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Signature");
System\Security\Cryptography\Xml\SignedInfo.cs (11)
103
throw new
CryptographicException
(SR.Format(SR.Cryptography_Xml_CreateTransformFailed, CanonicalizationMethod));
177
throw new
CryptographicException
(SR.Cryptography_Xml_SignatureMethodRequired);
194
throw new
CryptographicException
(SR.Cryptography_Xml_ReferenceElementRequired);
212
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "SignedInfo");
221
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "SignedInfo");
226
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "SignedInfo/CanonicalizationMethod");
231
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "SignedInfo/CanonicalizationMethod");
239
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "SignedInfo/SignatureMethod");
244
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "SignedInfo/SignatureMethod");
260
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "SignedInfo/Reference");
273
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "SignedInfo");
System\Security\Cryptography\Xml\SignedXml.cs (18)
391
throw new
CryptographicException
(SR.Cryptography_Xml_LoadKeyFailed);
407
throw new
CryptographicException
(SR.Cryptography_Xml_CreatedKeyFailed);
414
throw new
CryptographicException
(SR.Cryptography_Xml_SignatureDescriptionNotCreated);
417
throw new
CryptographicException
(SR.Cryptography_Xml_CreateHashAlgorithmFailed);
435
throw new
CryptographicException
(SR.Cryptography_Xml_SignatureMethodKeyMismatch);
444
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidSignatureLength);
446
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidSignatureLength2);
457
_ => throw new
CryptographicException
(SR.Cryptography_Xml_SignatureMethodKeyMismatch),
473
throw new
CryptographicException
(SR.Cryptography_Xml_KeyInfoRequired);
587
throw new
CryptographicException
(
843
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidReference);
1016
throw new
CryptographicException
(SR.Cryptography_Xml_SignatureDescriptionNotCreated);
1025
throw new
CryptographicException
(SR.Cryptography_Xml_CreateHashAlgorithmFailed);
1053
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidSignatureLength);
1055
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidSignatureLength2);
1057
throw new
CryptographicException
(SR.Cryptography_Xml_SignatureValueRequired);
1059
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidSignatureLength);
1095
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidReference);
System\Security\Cryptography\Xml\SymmetricKeyWrap.cs (6)
76
throw new
CryptographicException
(SR.Cryptography_Xml_KW_BadKeySize);
108
throw new
CryptographicException
(SR.Cryptography_Xml_BadWrappedKeySize);
126
throw new
CryptographicException
(SR.Cryptography_Xml_KW_BadKeySize);
188
throw new
CryptographicException
(SR.Cryptography_Xml_KW_BadKeySize);
210
throw new
CryptographicException
(SR.Cryptography_Xml_BadWrappedKeySize);
241
throw new
CryptographicException
(SR.Cryptography_Xml_BadWrappedKeySize);
System\Security\Cryptography\Xml\TransformChain.cs (8)
97
throw new
CryptographicException
(SR.Cryptography_Xml_TransformIncorrectInputType);
114
throw new
CryptographicException
(SR.Cryptography_Xml_TransformIncorrectInputType);
131
throw new
CryptographicException
(SR.Cryptography_Xml_TransformIncorrectInputType);
134
throw new
CryptographicException
(SR.Cryptography_Xml_TransformIncorrectInputType);
155
throw new
CryptographicException
(SR.Cryptography_Xml_TransformIncorrectInputType);
185
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Transforms");
189
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Transforms");
198
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
System\Security\Cryptography\Xml\Utils.cs (3)
321
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidReference);
333
throw new
CryptographicException
(SR.Cryptography_Xml_UriRequired);
343
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidReference);
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (7)
90
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
102
throw new
CryptographicException
(SR.Cryptography_Xml_UriRequired);
105
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
112
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
208
throw new
CryptographicException
(SR.Cryptography_Xml_MissingDecryptionKey);
240
throw new
CryptographicException
(SR.Cryptography_Xml_MaxDecryptableDataElementsExceeded);
258
throw new
CryptographicException
(SR.Cryptography_Xml_MaxDepthExceeded);
System\Security\Cryptography\Xml\XmlDsigC14NTransform.cs (1)
40
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
System\Security\Cryptography\Xml\XmlDsigEnvelopedSignatureTransform.cs (4)
50
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
87
throw new
CryptographicException
(SR.Cryptography_Xml_EnvelopedSignatureRequiresContext);
98
throw new
CryptographicException
(SR.Cryptography_Xml_EnvelopedSignatureRequiresContext);
117
throw new
CryptographicException
(SR.Cryptography_Xml_EnvelopedSignatureRequiresContext);
System\Security\Cryptography\Xml\XmlDsigExcC14NTransform.cs (2)
61
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
68
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (4)
39
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
56
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
77
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
83
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
System\Security\Cryptography\Xml\XmlDsigXsltTransform.cs (3)
52
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
63
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
72
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
System\Security\Cryptography\Xml\XmlLicenseTransform.cs (6)
85
throw new
CryptographicException
(SR.Cryptography_Xml_XrmlUnableToDecryptGrant);
132
throw new
CryptographicException
(SR.Cryptography_Xml_UnknownTransform);
139
throw new
CryptographicException
(SR.Cryptography_Xml_XrmlMissingContext);
155
throw new
CryptographicException
(SR.Cryptography_Xml_XrmlMissingIssuer);
163
throw new
CryptographicException
(SR.Cryptography_Xml_XrmlMissingLicence);
183
throw new
CryptographicException
(SR.Cryptography_Xml_XrmlMissingIRelDecryptor);
System.ServiceModel.Primitives (3)
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (3)
211
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CryptographicException
(SRP.Format(SRP.UnsupportedAlgorithmForCryptoOperation,
261
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CryptographicException
(SRP.Format(SRP.UnsupportedAlgorithmForCryptoOperation,
336
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CryptographicException
(SRP.Format(SRP.UnsupportedAlgorithmForCryptoOperation,
System.Windows.Extensions (6)
System\Security\Cryptography\X509Certificates\X509Certificate2UI.cs (4)
50
throw new
CryptographicException
(SR.Format(SR.Cryptography_InvalidHandle, nameof(safeCertContext)));
86
throw new
CryptographicException
(dwErrorCode);
117
Exception e = new
CryptographicException
(Marshal.GetLastPInvokeError());
169
throw new
CryptographicException
(dwErrorCode);
System\Security\Cryptography\X509Certificates\X509Utils.cs (2)
36
Exception e = new
CryptographicException
(Marshal.GetLastPInvokeError());
53
throw new
CryptographicException
(Marshal.GetLastPInvokeError());
831 references to CryptographicException
aspire (5)
Certificates\CertificateGeneration\UnixCertificateManager.cs (1)
141
catch (Exception ex) when (ex is
CryptographicException
or IOException or UnauthorizedAccessException)
Certificates\CertificateGeneration\WindowsCertificateManager.cs (1)
96
catch (
CryptographicException
exception) when (exception.HResult == UserCancelledHResult || exception.HResult == UserCancelledErrorCode)
Certificates\NativeCertificateToolRunner.cs (1)
189
catch (
CryptographicException
ex) when (ex.HResult == UserCancelledHResult || ex.HResult == UserCancelledErrorCode)
Utils\EnvironmentChecker\DevCertsCheck.cs (2)
317
catch (Exception ex) when (ex is
CryptographicException
or IOException or UnauthorizedAccessException)
402
catch (Exception ex) when (ex is
CryptographicException
or IOException or UnauthorizedAccessException)
Aspire.Hosting (1)
ApplicationModel\HttpsCertificateAnnotation.cs (1)
45
catch (
CryptographicException
ex)
dotnet-dev-certs (1)
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
99
catch (
CryptographicException
exception) when (exception.HResult == UserCancelledHResult)
Infrastructure.Common (3)
CertificateManager.cs (3)
57
catch(
CryptographicException
)
114
catch (
CryptographicException
inner)
157
catch (
CryptographicException
inner)
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\OpaqueRedirection.cs (1)
81
catch (
CryptographicException
ex)
Microsoft.AspNetCore.DataProtection (10)
Error.cs (8)
29
public static
CryptographicException
CryptCommon_GenericError(Exception? inner = null)
34
public static
CryptographicException
CryptCommon_PayloadInvalid()
52
public static
CryptographicException
Common_EncryptionFailed(Exception? inner = null)
57
public static
CryptographicException
Common_KeyNotFound(Guid id)
63
public static
CryptographicException
Common_KeyRevoked(Guid id)
74
public static
CryptographicException
DecryptionFailed(Exception inner)
79
public static
CryptographicException
ProtectionProvider_BadMagicHeader()
84
public static
CryptographicException
ProtectionProvider_BadVersion()
src\aspnetcore\src\DataProtection\shared\src\ExceptionExtensions.cs (1)
17
return !(ex is
CryptographicException
);
XmlEncryption\CertificateResolver.cs (1)
46
catch (
CryptographicException
)
Microsoft.AspNetCore.DataProtection.Abstractions (5)
DataProtectionCommonExtensions.cs (1)
180
/// <exception cref="System.Security.Cryptography.
CryptographicException
">
Error.cs (2)
12
public static
CryptographicException
CryptCommon_GenericError(Exception? inner = null)
17
public static
CryptographicException
CryptCommon_PayloadInvalid()
IDataProtector.cs (1)
25
/// <exception cref="System.Security.Cryptography.
CryptographicException
">
src\aspnetcore\src\DataProtection\shared\src\ExceptionExtensions.cs (1)
17
return !(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)
17
return !(ex is
CryptographicException
);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
99
catch (
CryptographicException
exception) when (exception.HResult == UserCancelledHResult)
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\ClientCertLoader.cs (1)
282
catch (
CryptographicException
exception)
RequestProcessing\Request.cs (1)
393
catch (
CryptographicException
ce)
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Middleware\HttpsConnectionMiddleware.cs (2)
296
catch (Exception exception) when (exception is
CryptographicException
|| exception is SecurityException)
337
catch (
CryptographicException
ex)
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
99
catch (
CryptographicException
exception) when (exception.HResult == UserCancelledHResult)
TlsConfigurationLoader.cs (1)
168
catch (
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)
2175
catch (System.Security.Cryptography.
CryptographicException
)
ManifestUtil\mansign2.cs (1)
880
catch (
CryptographicException
)
SignFile.cs (1)
88
catch (
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)
64
catch (
CryptographicException
ex) when (ex.InnerException is FileNotFoundException)
72
catch (
CryptographicException
ex)
244
catch (
CryptographicException
ex)
SignCommand\SignCommandRunner.cs (1)
46
if (e is System.Security.Cryptography.
CryptographicException
ce)
NuGet.Packaging (7)
Signing\Authoring\X509SignatureProvider.cs (2)
140
catch (
CryptographicException
ex) when (ex.HResult == INVALID_PROVIDER_TYPE_HRESULT)
176
catch (
CryptographicException
ex) when (ex.HResult == INVALID_PROVIDER_TYPE_HRESULT)
Signing\TrustStore\CertificateBundleX509ChainFactory.cs (1)
53
ex 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)
526
catch (System.Security.Cryptography.
CryptographicException
exception)
575
catch (System.Security.Cryptography.
CryptographicException
exception)
Signing\Verification\PackageSignatureVerifier.cs (1)
72
catch (
CryptographicException
e)
PresentationUI (4)
MS\Internal\Documents\DocumentSignatureManager.cs (4)
499
catch (
CryptographicException
)
590
catch (
CryptographicException
e)
1200
private int GetErrorCode(
CryptographicException
ce)
1205
Type t = typeof(
CryptographicException
);
RepoTasks (1)
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
99
catch (
CryptographicException
exception) when (exception.HResult == UserCancelledHResult)
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\AuthenticablePrincipal.cs (1)
557
catch (System.Security.Cryptography.
CryptographicException
)
System.Net.Quic (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
117
static
CryptographicException
Fail(int result)
System.Net.Security (4)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
117
static
CryptographicException
Fail(int result)
System\Net\CertificateValidationPal.cs (1)
74
if (exception is
CryptographicException
|| exception is SecurityException)
System\Net\Security\SslStream.Protocol.cs (2)
242
catch (
CryptographicException
)
269
catch (
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)
48
catch (
CryptographicException
ex)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Cng.cs (1)
120
private static
CryptographicException
CreateCryptographicException(NTSTATUS ntStatus)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\TripleDesBCryptModes.cs (1)
51
catch (
CryptographicException
ex)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeCertContextHandleWithKeyContainerDeletion.cs (1)
67
catch (
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)
15
internal static
CryptographicException
ToCryptographicException(this Interop.NCrypt.ErrorCode errorCode)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngPkcs8.cs (6)
122
catch (
CryptographicException
)
174
catch (
CryptographicException
e)
187
catch (
CryptographicException
)
224
catch (
CryptographicException
)
241
catch (
CryptographicException
e)
255
catch (
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)
17
public 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)
217
internal static
CryptographicException
CreateAlgorithmUnknownException(ref readonly ValueAlgorithmIdentifierAsn identifier)
228
internal static
CryptographicException
CreateAlgorithmUnknownException(string algorithmId)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (4)
178
catch (
CryptographicException
e)
395
catch (
CryptographicException
e)
428
catch (
CryptographicException
e)
464
catch (
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)
41
catch (
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)
191
catch (
CryptographicException
)
202
catch (
CryptographicException
)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemImplementation.cs (1)
32
catch (
CryptographicException
)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
31
private static
CryptographicException
AlgorithmKdfRequiresChars(string algId)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
311
catch (
CryptographicException
)
401
catch (
CryptographicException
)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PqcBlobHelpers.cs (1)
287
static
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)
368
catch (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)
20
private 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)
232
catch (
CryptographicException
)
758
catch (
CryptographicException
)
1033
catch (
CryptographicException
e)
1131
catch (
CryptographicException
)
1159
catch (
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)
72
catch (
CryptographicException
)
93
catch (
CryptographicException
)
System\Security\Cryptography\CapiHelper.Windows.cs (2)
1421
public static
CryptographicException
GetBadDataException()
1427
public static
CryptographicException
GetEFailException()
System\Security\Cryptography\CngAlgorithmCore.cs (1)
119
catch (
CryptographicException
e)
System\Security\Cryptography\CryptoConfig.cs (1)
560
catch (
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)
134
catch (
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)
682
private 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)
56
catch (
CryptographicException
)
157
catch (
CryptographicException
)
System\Security\Cryptography\X25519DiffieHellmanOpenSsl.cs (1)
34
/// <exception cref="
CryptographicException
">
System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (4)
13
private static partial
CryptographicException
GetExceptionForLastError() =>
45
catch (
CryptographicException
)
127
catch (
CryptographicException
)
160
catch (
CryptographicException
)
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (5)
431
catch (
CryptographicException
) { }
448
catch (
CryptographicException
) { }
456
catch (
CryptographicException
) { }
463
catch (
CryptographicException
) { }
470
catch (
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)
424
catch (
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>
605
catch (
CryptographicException
)
634
catch (
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
">
1551
catch (
CryptographicException
)
1572
/// <exception cref="
CryptographicException
">
1601
/// <exception cref="
CryptographicException
">
1701
/// <exception cref="
CryptographicException
">
2042
catch (
CryptographicException
ce)
2125
catch (
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
">
466
catch (
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)
28
catch (
CryptographicException
)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (2)
166
catch (
CryptographicException
ce)
174
catch (
CryptographicException
ce)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Exceptions.cs (1)
31
private static
CryptographicException
CreateInvalidMessageTypeException()
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (1)
211
catch (
CryptographicException
e)
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decrypt.cs (3)
122
private static
CryptographicException
? TryGetKeySpecForCertificate(X509Certificate2 cert, out CryptKeySpec keySpec)
165
private unsafe
CryptographicException
? TryDecryptTrans(KeyTransRecipientInfo recipientInfo, SafeProvOrNCryptKeyHandle hKey, CryptKeySpec keySpec)
260
private
CryptographicException
? TryExecuteDecryptAgree(ref CMSG_CTRL_KEY_AGREE_DECRYPT_PARA decryptPara)
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (1)
22
public static
CryptographicException
ToCryptographicException(this ErrorCode errorCode)
Internal\Cryptography\PkcsHelpers.cs (1)
402
catch (
CryptographicException
e)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoThrowHelper.Windows.cs (1)
17
public static
CryptographicException
ToCryptographicException(this int hr)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (2)
217
internal static
CryptographicException
CreateAlgorithmUnknownException(ref readonly ValueAlgorithmIdentifierAsn identifier)
228
internal static
CryptographicException
CreateAlgorithmUnknownException(string algorithmId)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (4)
178
catch (
CryptographicException
e)
395
catch (
CryptographicException
e)
428
catch (
CryptographicException
e)
464
catch (
CryptographicException
e)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
31
private static
CryptographicException
AlgorithmKdfRequiresChars(string algId)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
311
catch (
CryptographicException
)
401
catch (
CryptographicException
)
System\Security\Cryptography\Pkcs\CmsSignature.cs (1)
224
catch (
CryptographicException
)
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (1)
136
/// <exception cref="
CryptographicException
">
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (2)
93
catch (
CryptographicException
) when (!shouldThrow)
373
catch (
CryptographicException
)
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (5)
282
catch (
CryptographicException
)
417
catch (
CryptographicException
)
532
catch (
CryptographicException
)
609
catch (
CryptographicException
)
636
catch (
CryptographicException
)
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (2)
39
/// <exception cref="
CryptographicException
">ASN.1 corrupted data.</exception>
305
catch (
CryptographicException
)
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
129
catch (
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)
17
public 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)
702
catch (
CryptographicException
) { }
System.ServiceModel.Primitives (2)
System\IdentityModel\Tokens\X509IssuerSerialKeyIdentifierClause.cs (1)
99
catch (
CryptographicException
)
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
635
|| e is System.Security.Cryptography.
CryptographicException