86 references to CryptographicException
System.Security.Cryptography (32)
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
235
throw new
CryptographicException
(SR.Cryptography_Cms_UnknownAlgorithm, algName.Name);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (1)
20
throw new
CryptographicException
(
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\ECCng.HashAlgorithm.cs (1)
30
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, name.Value.Name);
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\PasswordBasedEncryption.cs (5)
33
return new
CryptographicException
(SR.Cryptography_AlgKdfRequiresChars, algId);
59
throw new
CryptographicException
(
74
throw new
CryptographicException
(
329
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, prf.Name);
723
throw new
CryptographicException
(SR.Cryptography_UnknownAlgorithmIdentifier, algId);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
101
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (2)
26
throw new
CryptographicException
(
47
throw new
CryptographicException
(
System\Security\Cryptography\CapiHelper.Windows.cs (2)
614
throw new
CryptographicException
(SR.CryptSetKeyParam_Failed, GetErrorCode().ToString());
639
throw new
CryptographicException
(SR.CryptSetKeyParam_Failed, GetErrorCode().ToString());
System\Security\Cryptography\DES.cs (2)
57
throw new
CryptographicException
(SR.Cryptography_InvalidKey_Weak, "DES");
60
throw new
CryptographicException
(SR.Cryptography_InvalidKey_SemiWeak, "DES");
System\Security\Cryptography\DESCryptoServiceProvider.Windows.cs (2)
74
throw new
CryptographicException
(SR.Cryptography_InvalidKey_Weak, "DES");
76
throw new
CryptographicException
(SR.Cryptography_InvalidKey_SemiWeak, "DES");
System\Security\Cryptography\DesImplementation.cs (2)
69
throw new
CryptographicException
(SR.Cryptography_InvalidKey_Weak, "DES");
71
throw new
CryptographicException
(SR.Cryptography_InvalidKey_SemiWeak, "DES");
System\Security\Cryptography\DSACryptoServiceProvider.Windows.cs (2)
454
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
468
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
System\Security\Cryptography\PasswordDeriveBytes.cs (3)
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));
System\Security\Cryptography\RSACryptoServiceProvider.Windows.cs (1)
560
_ => throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name),
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (1)
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\StorePal.Windows.cs (1)
26
throw new
CryptographicException
(SR.Cryptography_InvalidStoreHandle, nameof(storeHandle));
System\Security\Cryptography\X509Certificates\X509Store.cs (1)
134
throw new
CryptographicException
(SR.Cryptography_InvalidHandle, "pCertContext");
System.Security.Cryptography.Pkcs (18)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
201
throw new
CryptographicException
(SR.Cryptography_Cms_UnknownAlgorithm, algorithmIdentifier);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (1)
84
exception = new
CryptographicException
(
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (1)
114
_ => throw new
CryptographicException
(
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (3)
54
exception = new
CryptographicException
(
86
exception = new
CryptographicException
(
135
throw new
CryptographicException
(
Internal\Cryptography\PkcsHelpers.cs (2)
67
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, oidValue);
396
exception = new
CryptographicException
(
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
235
throw new
CryptographicException
(SR.Cryptography_Cms_UnknownAlgorithm, algName.Name);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (1)
20
throw new
CryptographicException
(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (5)
33
return new
CryptographicException
(SR.Cryptography_AlgKdfRequiresChars, algId);
59
throw new
CryptographicException
(
74
throw new
CryptographicException
(
329
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, prf.Name);
723
throw new
CryptographicException
(SR.Cryptography_UnknownAlgorithmIdentifier, algId);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
101
throw new
CryptographicException
(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
System\Security\Cryptography\Pkcs\SignerInfo.cs (2)
850
throw new
CryptographicException
(SR.Cryptography_Cms_UnknownAlgorithm, SignatureAlgorithm.Value);
874
throw new
CryptographicException
(SR.Cryptography_Cms_TrustFailure, status.StatusInformation);
System.Security.Cryptography.Xml (36)
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
259
throw new
CryptographicException
(SR.Cryptography_Xml_UriNotResolved, cipherData.CipherReference.Uri);
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 (2)
289
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "X509Data");
302
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "IssuerSerial");
System\Security\Cryptography\Xml\Reference.cs (12)
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");
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");
467
throw new
CryptographicException
(SR.Cryptography_Xml_UriNotResolved, _uri);
476
throw new
CryptographicException
(SR.Cryptography_Xml_UriNotResolved, _uri);
System\Security\Cryptography\Xml\Signature.cs (7)
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 (8)
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\TransformChain.cs (2)
185
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Transforms");
189
throw new
CryptographicException
(SR.Cryptography_Xml_InvalidElement, "Transforms");