271 references to SR
System.Security.Cryptography.Xml (271)
System\Security\Cryptography\Xml\CanonicalXmlNodeList.cs (3)
37throw new ArgumentException(SR.Cryptography_Xml_IncorrectObjectType, "node"); 59throw new ArgumentException(SR.Cryptography_Xml_IncorrectObjectType, nameof(value)); 89throw new ArgumentException(SR.Cryptography_Xml_IncorrectObjectType, nameof(value));
System\Security\Cryptography\Xml\CipherData.cs (5)
45throw new CryptographicException(SR.Cryptography_Xml_CipherValueElementRequired); 61throw new CryptographicException(SR.Cryptography_Xml_CipherValueElementRequired); 91throw new CryptographicException(SR.Cryptography_Xml_CipherValueElementRequired); 111throw new CryptographicException(SR.Cryptography_Xml_CipherValueElementRequired); 121throw new CryptographicException(SR.Cryptography_Xml_CipherValueElementRequired);
System\Security\Cryptography\Xml\CipherReference.cs (2)
55throw new CryptographicException(SR.Cryptography_Xml_ReferenceTypeRequired); 77Uri = uri ?? throw new CryptographicException(SR.Cryptography_Xml_UriRequired);
System\Security\Cryptography\Xml\CryptoHelpers.cs (1)
57throw new NotSupportedException(SR.Cryptography_Xml_XsltRequiresDynamicCode);
System\Security\Cryptography\Xml\DSAKeyValue.cs (10)
155throw new CryptographicException(SR.Format(SR.WrongRootElement, KeyValueElementName, SignedXml.XmlDsigNamespaceUrl)); 165throw new CryptographicException(SR.Format(SR.MustContainChildElement, KeyValueElementName, DSAKeyValueElementName)); 170throw new CryptographicException(SR.Format(SR.ElementMissing, YElementName)); 176throw new CryptographicException(SR.Format(SR.ElementCombinationMissing, PElementName, QElementName)); 185throw new CryptographicException(SR.Format(SR.ElementCombinationMissing, SeedElementName, PgenCounterElementName));
System\Security\Cryptography\Xml\EncryptedData.cs (2)
42throw new CryptographicException(SR.Cryptography_Xml_MissingCipherData); 102throw new CryptographicException(SR.Cryptography_Xml_MissingCipherData);
System\Security\Cryptography\Xml\EncryptedKey.cs (2)
82throw new CryptographicException(SR.Cryptography_Xml_MissingCipherData); 179throw new CryptographicException(SR.Cryptography_Xml_MissingCipherData);
System\Security\Cryptography\Xml\EncryptedReference.cs (3)
39throw new ArgumentNullException(SR.Cryptography_Xml_UriRequired); 91throw new CryptographicException(SR.Cryptography_Xml_ReferenceTypeRequired); 115throw new ArgumentNullException(SR.Cryptography_Xml_UriRequired);
System\Security\Cryptography\Xml\EncryptedXml.cs (22)
200throw new CryptographicException(SR.Cryptography_Xml_UriNotSupported); 210throw new CryptographicException(SR.Cryptography_Xml_UriNotSupported); 221throw new CryptographicException(SR.Cryptography_Xml_UriNotSupported); 228throw new CryptographicException(SR.Cryptography_Xml_UriNotSupported); 234throw new CryptographicException(SR.Cryptography_Xml_UriNotResolved, cipherData.CipherReference.Uri); 253throw new CryptographicException(SR.Cryptography_Xml_MissingCipherData); 276throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 292throw new CryptographicException(SR.Cryptography_Xml_UriNotSupported); 369throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 374throw new CryptographicException(SR.Cryptography_Xml_MissingDecryptionKey); 379throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 417throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 441throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 488throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 493throw new CryptographicException(SR.Cryptography_Xml_MissingAlgorithm); 515throw new CryptographicException(SR.Cryptography_Xml_NotSupportedCryptographicTransform); 536throw new NotSupportedException(SR.NotSupported_KeyAlgorithm); 578throw new CryptographicException(SR.Cryptography_Xml_MissingEncryptionKey); 621throw new CryptographicException(SR.Cryptography_Xml_NotSupportedCryptographicTransform); 661throw new CryptographicException(SR.Cryptography_Xml_MissingDecryptionKey); 875throw new CryptographicException(SR.Cryptography_Xml_NotSupportedCryptographicTransform); 917throw new CryptographicException(SR.Cryptography_Xml_NotSupportedCryptographicTransform);
System\Security\Cryptography\Xml\EncryptionMethod.cs (1)
41throw new ArgumentOutOfRangeException(nameof(value), SR.Cryptography_Xml_InvalidKeySize);
System\Security\Cryptography\Xml\EncryptionProperty.cs (3)
24throw new CryptographicException(SR.Cryptography_Xml_InvalidEncryptionProperty); 49throw new CryptographicException(SR.Cryptography_Xml_InvalidEncryptionProperty); 84throw new CryptographicException(SR.Cryptography_Xml_InvalidEncryptionProperty);
System\Security\Cryptography\Xml\EncryptionPropertyCollection.cs (6)
31throw new ArgumentException(SR.Cryptography_Xml_IncorrectObjectType, nameof(value)); 50throw new ArgumentException(SR.Cryptography_Xml_IncorrectObjectType, nameof(value)); 64throw new ArgumentException(SR.Cryptography_Xml_IncorrectObjectType, nameof(value)); 78throw new ArgumentException(SR.Cryptography_Xml_IncorrectObjectType, nameof(value)); 92throw new ArgumentException(SR.Cryptography_Xml_IncorrectObjectType, nameof(value)); 142throw new ArgumentException(SR.Cryptography_Xml_IncorrectObjectType, nameof(value));
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 (7)
68throw new CryptographicException(SR.Cryptography_Partial_Chain); 89throw new CryptographicException(SR.Cryptography_Partial_Chain); 156throw new ArgumentException(SR.Arg_EmptyOrNullString, nameof(issuerName)); 159throw new ArgumentException(SR.Arg_EmptyOrNullString, nameof(serialNumber)); 163throw new ArgumentException(SR.Cryptography_Xml_InvalidX509IssuerSerialNumber, nameof(serialNumber)); 289throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "X509Data"); 302throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "IssuerSerial");
System\Security\Cryptography\Xml\Reference.cs (22)
187throw new CryptographicException(SR.Cryptography_Xml_DigestMethodRequired); 196throw new CryptographicException(SR.Cryptography_Xml_DigestValueRequired); 217throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference"); 230throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms"); 236throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms"); 243throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms"); 247throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/Transforms"); 255throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 260throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 314throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/DigestMethod"); 318throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/DigestMethod"); 324throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/DigestValue"); 328throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference/DigestValue"); 332throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Reference"); 361throw new CryptographicException(SR.Cryptography_Xml_CreateHashAlgorithmFailed); 397throw new CryptographicException(SR.Format(SR.Cryptography_Xml_SelfReferenceRequiresContext, _uri)); 413throw new CryptographicException(SR.Format(SR.Cryptography_Xml_SelfReferenceRequiresContext, _uri)); 446throw new CryptographicException(SR.Cryptography_Xml_InvalidReference); 467throw new CryptographicException(SR.Cryptography_Xml_UriNotResolved, _uri); 476throw new CryptographicException(SR.Cryptography_Xml_UriNotResolved, _uri);
System\Security\Cryptography\Xml\ReferenceList.cs (3)
33throw new ArgumentException(SR.Cryptography_Xml_IncorrectObjectType, nameof(value)); 59throw new ArgumentException(SR.Cryptography_Xml_IncorrectObjectType, nameof(value)); 103throw new ArgumentException(SR.Cryptography_Xml_IncorrectObjectType, nameof(value));
System\Security\Cryptography\Xml\RSAKeyValue.cs (4)
110throw new CryptographicException(SR.Format(SR.WrongRootElement, KeyValueElementName, SignedXml.XmlDsigNamespaceUrl)); 120throw new CryptographicException(SR.Format(SR.MustContainChildElement, KeyValueElementName, RSAKeyValueElementName));
System\Security\Cryptography\Xml\Signature.cs (9)
101throw new CryptographicException(SR.Cryptography_Xml_SignedInfoRequired); 107throw new CryptographicException(SR.Cryptography_Xml_SignatureValueRequired); 141throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Signature"); 146throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Signature"); 155throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo"); 165throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignatureValue"); 171throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignatureValue"); 180throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "KeyInfo"); 221throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Signature");
System\Security\Cryptography\Xml\SignedInfo.cs (12)
103throw new CryptographicException(SR.Format(SR.Cryptography_Xml_CreateTransformFailed, CanonicalizationMethod)); 177throw new CryptographicException(SR.Cryptography_Xml_SignatureMethodRequired); 194throw new CryptographicException(SR.Cryptography_Xml_ReferenceElementRequired); 212throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo"); 221throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo"); 226throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo/CanonicalizationMethod"); 231throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo/CanonicalizationMethod"); 239throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo/SignatureMethod"); 244throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo/SignatureMethod"); 260throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo/Reference"); 273throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "SignedInfo");
System\Security\Cryptography\Xml\SignedXml.cs (24)
292SignedXmlDebugLog.LogVerificationFailure(this, SR.Log_VerificationFailed_SignedInfo); 299SignedXmlDebugLog.LogVerificationFailure(this, SR.Log_VerificationFailed_References); 316SignedXmlDebugLog.LogVerificationFailure(this, SR.Log_VerificationFailed_SignedInfo); 322SignedXmlDebugLog.LogVerificationFailure(this, SR.Log_VerificationFailed_References); 348SignedXmlDebugLog.LogVerificationFailure(this, SR.Log_VerificationFailed_X509KeyUsage); 363SignedXmlDebugLog.LogVerificationFailure(this, SR.Log_VerificationFailed_X509Chain); 391throw new CryptographicException(SR.Cryptography_Xml_LoadKeyFailed); 407throw new CryptographicException(SR.Cryptography_Xml_CreatedKeyFailed); 414throw new CryptographicException(SR.Cryptography_Xml_SignatureDescriptionNotCreated); 417throw new CryptographicException(SR.Cryptography_Xml_CreateHashAlgorithmFailed); 435throw new CryptographicException(SR.Cryptography_Xml_SignatureMethodKeyMismatch); 444throw new CryptographicException(SR.Cryptography_Xml_InvalidSignatureLength); 446throw new CryptographicException(SR.Cryptography_Xml_InvalidSignatureLength2); 457_ => throw new CryptographicException(SR.Cryptography_Xml_SignatureMethodKeyMismatch), 473throw new CryptographicException(SR.Cryptography_Xml_KeyInfoRequired); 588SR.Cryptography_Xml_InvalidReference); 843throw new CryptographicException(SR.Cryptography_Xml_InvalidReference); 1016throw new CryptographicException(SR.Cryptography_Xml_SignatureDescriptionNotCreated); 1025throw new CryptographicException(SR.Cryptography_Xml_CreateHashAlgorithmFailed); 1053throw new CryptographicException(SR.Cryptography_Xml_InvalidSignatureLength); 1055throw new CryptographicException(SR.Cryptography_Xml_InvalidSignatureLength2); 1057throw new CryptographicException(SR.Cryptography_Xml_SignatureValueRequired); 1059throw new CryptographicException(SR.Cryptography_Xml_InvalidSignatureLength); 1095throw new CryptographicException(SR.Cryptography_Xml_InvalidReference);
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (72)
286string logMessage = SR.Format(CultureInfo.InvariantCulture, 287SR.Log_BeginCanonicalization, 298string canonicalizationSettings = SR.Format(CultureInfo.InvariantCulture, 299SR.Log_CanonicalizationSettings, 323string logMessage = SR.Format(CultureInfo.InvariantCulture, 324SR.Log_CheckSignatureFormat, 344string logMessage = SR.Format(CultureInfo.InvariantCulture, 345SR.Log_CheckSignedInfo, 365SR.Log_BeginSignatureComputation); 370string contextData = SR.Format(CultureInfo.InvariantCulture, 371SR.Log_XmlContext, 395SR.Log_BeginSignatureVerification); 400string contextData = SR.Format(CultureInfo.InvariantCulture, 401SR.Log_XmlContext, 425string logMessage = SR.Format(CultureInfo.InvariantCulture, 426SR.Log_CanonicalizedOutput, 447string logMessage = result ? SR.Log_FormatValidationSuccessful : 448SR.Log_FormatValidationNotSuccessful; 478string logMessage = SR.Format(CultureInfo.InvariantCulture, 479SR.Log_UnsafeCanonicalizationMethod, 528string logMessage = SR.Format(CultureInfo.InvariantCulture, 529SR.Log_UnsafeTransformMethod, 552string propagationMessage = SR.Format(CultureInfo.InvariantCulture, 553SR.Log_PropagatingNamespace, 568SR.Log_NoNamespacesPropagated); 603string logMessage = SR.Format(CultureInfo.InvariantCulture, 604SR.Log_TransformedReferenceContents, 642string logMessage = SR.Format(CultureInfo.InvariantCulture, 643SR.Log_SigningAsymmetric, 668string logMessage = SR.Format(CultureInfo.InvariantCulture, 669SR.Log_SigningHmac, 694string logMessage = SR.Format(CultureInfo.InvariantCulture, 695SR.Log_SigningReference, 719string logMessage = SR.Format(CultureInfo.InvariantCulture, 720SR.Log_VerificationFailed, 743string resource = verified ? SR.Log_VerificationWithKeySuccessful : 744SR.Log_VerificationWithKeyNotSuccessful; 769string logMessage = SR.Format(CultureInfo.InvariantCulture, 770SR.Log_KeyUsages, 794string logMessage = SR.Format(CultureInfo.InvariantCulture, 795SR.Log_VerifyReference, 830string logMessage = SR.Format(CultureInfo.InvariantCulture, 831SR.Log_ReferenceHash, 871string logMessage = SR.Format(CultureInfo.InvariantCulture, 872SR.Log_VerifySignedInfoAsymmetric, 885string hashLog = SR.Format(CultureInfo.InvariantCulture, 886SR.Log_ActualHashValue, 890string signatureLog = SR.Format(CultureInfo.InvariantCulture, 891SR.Log_RawSignatureValue, 915string logMessage = SR.Format(CultureInfo.InvariantCulture, 916SR.Log_VerifySignedInfoHmac, 926string hashLog = SR.Format(CultureInfo.InvariantCulture, 927SR.Log_ActualHashValue, 931string signatureLog = SR.Format(CultureInfo.InvariantCulture, 932SR.Log_RawSignatureValue, 952string buildMessage = SR.Format(CultureInfo.InvariantCulture, 953SR.Log_BuildX509Chain, 964string revocationMode = SR.Format(CultureInfo.InvariantCulture, 965SR.Log_RevocationMode, 969string revocationFlag = SR.Format(CultureInfo.InvariantCulture, 970SR.Log_RevocationFlag, 974string verificationFlags = SR.Format(CultureInfo.InvariantCulture, 975SR.Log_VerificationFlag, 979string verificationTime = SR.Format(CultureInfo.InvariantCulture, 980SR.Log_VerificationTime, 984string urlTimeout = SR.Format(CultureInfo.InvariantCulture, 985SR.Log_UrlTimeout, 997string logMessage = SR.Format(CultureInfo.InvariantCulture, 998SR.Log_X509ChainError, 1014chainElements.Append(SR.Log_CertificateChain); 1045string logMessage = SR.Format(CultureInfo.InvariantCulture, 1046SR.Log_SignedXmlRecursionLimit,
System\Security\Cryptography\Xml\SymmetricKeyWrap.cs (6)
76throw new CryptographicException(SR.Cryptography_Xml_KW_BadKeySize); 108throw new CryptographicException(SR.Cryptography_Xml_BadWrappedKeySize); 126throw new CryptographicException(SR.Cryptography_Xml_KW_BadKeySize); 188throw new CryptographicException(SR.Cryptography_Xml_KW_BadKeySize); 210throw new CryptographicException(SR.Cryptography_Xml_BadWrappedKeySize); 241throw new CryptographicException(SR.Cryptography_Xml_BadWrappedKeySize);
System\Security\Cryptography\Xml\TransformChain.cs (8)
55throw new ArgumentException(SR.ArgumentOutOfRange_IndexMustBeLess, nameof(index)); 95throw new CryptographicException(SR.Cryptography_Xml_TransformIncorrectInputType); 111throw new CryptographicException(SR.Cryptography_Xml_TransformIncorrectInputType); 127throw new CryptographicException(SR.Cryptography_Xml_TransformIncorrectInputType); 130throw new CryptographicException(SR.Cryptography_Xml_TransformIncorrectInputType); 151throw new CryptographicException(SR.Cryptography_Xml_TransformIncorrectInputType); 181throw new CryptographicException(SR.Cryptography_Xml_InvalidElement, "Transforms"); 190throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform);
System\Security\Cryptography\Xml\Utils.cs (4)
321throw new CryptographicException(SR.Cryptography_Xml_InvalidReference); 340throw new CryptographicException(SR.Cryptography_Xml_InvalidReference); 613throw new ArgumentException(SR.Arg_EmptyOrNullString, nameof(issuerName)); 615throw new ArgumentException(SR.Arg_EmptyOrNullString, nameof(serialNumber));
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (6)
89throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 101throw new CryptographicException(SR.Cryptography_Xml_UriRequired); 104throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 111throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 207throw new CryptographicException(SR.Cryptography_Xml_MissingDecryptionKey); 272throw new ArgumentException(SR.Cryptography_Xml_TransformIncorrectInputType, nameof(type));
System\Security\Cryptography\Xml\XmlDsigBase64Transform.cs (1)
127throw new ArgumentException(SR.Cryptography_Xml_TransformIncorrectInputType, nameof(type));
System\Security\Cryptography\Xml\XmlDsigC14NTransform.cs (3)
40throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 67throw new ArgumentException(SR.Cryptography_Xml_IncorrectObjectType, nameof(obj)); 79throw new ArgumentException(SR.Cryptography_Xml_TransformIncorrectInputType, nameof(type));
System\Security\Cryptography\Xml\XmlDsigEnvelopedSignatureTransform.cs (6)
50throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 87throw new CryptographicException(SR.Cryptography_Xml_EnvelopedSignatureRequiresContext); 98throw new CryptographicException(SR.Cryptography_Xml_EnvelopedSignatureRequiresContext); 117throw new CryptographicException(SR.Cryptography_Xml_EnvelopedSignatureRequiresContext); 181if (_inputNodeList != null) throw new ArgumentException(SR.Cryptography_Xml_TransformIncorrectInputType, nameof(type)); 186throw new ArgumentException(SR.Cryptography_Xml_TransformIncorrectInputType, nameof(type));
System\Security\Cryptography\Xml\XmlDsigExcC14NTransform.cs (4)
61throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 68throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 91throw new ArgumentException(SR.Cryptography_Xml_IncorrectObjectType, nameof(obj)); 116throw new ArgumentException(SR.Cryptography_Xml_TransformIncorrectInputType, nameof(type));
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (5)
39throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 56throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 77throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 83throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 194throw new ArgumentException(SR.Cryptography_Xml_TransformIncorrectInputType, nameof(type));
System\Security\Cryptography\Xml\XmlDsigXsltTransform.cs (4)
52throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 63throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 72throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 146throw new ArgumentException(SR.Cryptography_Xml_TransformIncorrectInputType, nameof(type));
System\Security\Cryptography\Xml\XmlLicenseTransform.cs (7)
85throw new CryptographicException(SR.Cryptography_Xml_XrmlUnableToDecryptGrant); 117throw new ArgumentException(SR.Cryptography_Xml_TransformIncorrectInputType, nameof(type)); 126throw new CryptographicException(SR.Cryptography_Xml_UnknownTransform); 133throw new CryptographicException(SR.Cryptography_Xml_XrmlMissingContext); 149throw new CryptographicException(SR.Cryptography_Xml_XrmlMissingIssuer); 157throw new CryptographicException(SR.Cryptography_Xml_XrmlMissingLicence); 177throw new CryptographicException(SR.Cryptography_Xml_XrmlMissingIRelDecryptor);