87 references to CryptographicException
System.Security.Cryptography (34)
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
235throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, algName.Name);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (1)
21throw new CryptographicException(
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (2)
275throw new CryptographicException( 340throw new CryptographicException(
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (1)
204throw new CryptographicException(
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (5)
20return new CryptographicException(SR.Cryptography_AlgKdfRequiresChars, algId); 46throw new CryptographicException( 61throw new CryptographicException( 301throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, prf.Name); 682throw new CryptographicException(SR.Cryptography_UnknownAlgorithmIdentifier, algId);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
101throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (2)
157throw new CryptographicException( 178throw new CryptographicException(
System\Security\Cryptography\DES.cs (2)
57throw new CryptographicException(SR.Cryptography_InvalidKey_Weak, "DES"); 60throw new CryptographicException(SR.Cryptography_InvalidKey_SemiWeak, "DES");
System\Security\Cryptography\DesImplementation.cs (2)
69throw new CryptographicException(SR.Cryptography_InvalidKey_Weak, "DES"); 71throw new CryptographicException(SR.Cryptography_InvalidKey_SemiWeak, "DES");
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (11)
104throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 112throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 120throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 206throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 214throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 222throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 239throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, str); 256throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, str); 264throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 272throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 280throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
System\Security\Cryptography\PasswordDeriveBytes.cs (3)
77throw new CryptographicException(SR.Cryptography_PasswordDerivedBytes_ValuesFixed, nameof(HashName)); 91throw new CryptographicException(SR.Cryptography_PasswordDerivedBytes_ValuesFixed, nameof(IterationCount)); 106throw new CryptographicException(SR.Cryptography_PasswordDerivedBytes_ValuesFixed, nameof(Salt));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (1)
291throw new CryptographicException(SR.Cryptography_NoPemOfLabel, PemLabels.X509CertificateRevocationList);
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (1)
383throw new CryptographicException(
System\Security\Cryptography\X509Certificates\X509Store.cs (1)
134throw new CryptographicException(SR.Cryptography_InvalidHandle, "pCertContext");
System.Security.Cryptography.Pkcs (18)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
197throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, algorithmIdentifier);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (1)
84exception = new CryptographicException(
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (1)
114_ => throw new CryptographicException(
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (3)
54exception = new CryptographicException( 86exception = new CryptographicException( 135throw new CryptographicException(
Internal\Cryptography\PkcsHelpers.cs (2)
67throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, oidValue); 396exception = new CryptographicException(
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
235throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, algName.Name);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (1)
21throw new CryptographicException(
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (5)
20return new CryptographicException(SR.Cryptography_AlgKdfRequiresChars, algId); 46throw new CryptographicException( 61throw new CryptographicException( 301throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, prf.Name); 682throw new CryptographicException(SR.Cryptography_UnknownAlgorithmIdentifier, algId);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
101throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
System\Security\Cryptography\Pkcs\SignerInfo.cs (2)
703throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, SignatureAlgorithm.Value); 727throw new CryptographicException(SR.Cryptography_Cms_TrustFailure, status.StatusInformation);
System.Security.Cryptography.Xml (35)
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
234throw new CryptographicException(SR.Cryptography_Xml_UriNotResolved, cipherData.CipherReference.Uri);
System\Security\Cryptography\Xml\KeyInfo.cs (2)
70throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfo"); 85throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfo/KeyValue");
System\Security\Cryptography\Xml\KeyInfoEncryptedKey.cs (2)
31throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfoEncryptedKey"); 38throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfoEncryptedKey");
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (2)
289throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "X509Data"); 302throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "IssuerSerial");
System\Security\Cryptography\Xml\Reference.cs (12)
217throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference"); 230throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms"); 236throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms"); 243throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms"); 247throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms"); 314throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/DigestMethod"); 318throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/DigestMethod"); 324throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/DigestValue"); 328throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/DigestValue"); 332throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference"); 467throw new CryptographicException(SR.Cryptography_Xml_UriNotResolved, _uri); 476throw new CryptographicException(SR.Cryptography_Xml_UriNotResolved, _uri);
System\Security\Cryptography\Xml\Signature.cs (7)
141throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Signature"); 146throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Signature"); 155throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo"); 165throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignatureValue"); 171throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignatureValue"); 180throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfo"); 221throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Signature");
System\Security\Cryptography\Xml\SignedInfo.cs (8)
212throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo"); 221throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo"); 226throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo/CanonicalizationMethod"); 231throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo/CanonicalizationMethod"); 239throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo/SignatureMethod"); 244throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo/SignatureMethod"); 260throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo/Reference"); 273throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo");
System\Security\Cryptography\Xml\TransformChain.cs (1)
181throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Transforms");