86 references to CryptographicException
System.Security.Cryptography (32)
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
235throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, algName.Name);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (1)
20throw new CryptographicException(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.SignVerify.cs (2)
62throw new CryptographicException( 98throw new CryptographicException(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.HashAlgorithm.cs (1)
30throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, name.Value.Name);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.SignVerify.cs (1)
64throw new CryptographicException(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (5)
33return new CryptographicException(SR.Cryptography_AlgKdfRequiresChars, algId); 59throw new CryptographicException( 74throw new CryptographicException( 329throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, prf.Name); 723throw new CryptographicException(SR.Cryptography_UnknownAlgorithmIdentifier, algId);
src\runtime\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)
26throw new CryptographicException( 47throw new CryptographicException(
System\Security\Cryptography\CapiHelper.Windows.cs (2)
614throw new CryptographicException(SR.CryptSetKeyParam_Failed, GetErrorCode().ToString()); 639throw new CryptographicException(SR.CryptSetKeyParam_Failed, GetErrorCode().ToString());
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\DESCryptoServiceProvider.Windows.cs (2)
74throw new CryptographicException(SR.Cryptography_InvalidKey_Weak, "DES"); 76throw 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.Windows.cs (2)
454throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 468throw 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\RSACryptoServiceProvider.Windows.cs (1)
560_ => throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name),
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (1)
296throw new CryptographicException(SR.Cryptography_NoPemOfLabel, PemLabels.X509CertificateRevocationList);
System\Security\Cryptography\X509Certificates\ChainPal.Windows.cs (1)
30throw new CryptographicException(SR.Cryptography_InvalidContextHandle, nameof(chainContext));
System\Security\Cryptography\X509Certificates\StorePal.Windows.cs (1)
26throw new CryptographicException(SR.Cryptography_InvalidStoreHandle, nameof(storeHandle));
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)
201throw 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\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
235throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, algName.Name);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (1)
20throw new CryptographicException(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (5)
33return new CryptographicException(SR.Cryptography_AlgKdfRequiresChars, algId); 59throw new CryptographicException( 74throw new CryptographicException( 329throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, prf.Name); 723throw new CryptographicException(SR.Cryptography_UnknownAlgorithmIdentifier, algId);
src\runtime\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)
850throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, SignatureAlgorithm.Value); 874throw new CryptographicException(SR.Cryptography_Cms_TrustFailure, status.StatusInformation);
System.Security.Cryptography.Xml (36)
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
259throw new CryptographicException(SR.Cryptography_Xml_UriNotResolved, cipherData.CipherReference.Uri);
System\Security\Cryptography\Xml\KeyInfo.cs (2)
73throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfo"); 88throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfo/KeyValue");
System\Security\Cryptography\Xml\KeyInfoEncryptedKey.cs (2)
31throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfoEncryptedKey"); 38throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfoEncryptedKey");
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (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 (2)
185throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Transforms"); 189throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Transforms");