1 type derived from SignedXml
Microsoft.Build.Tasks.Core (1)
ManifestUtil\mansign2.cs (1)
238internal class ManifestSignedXml2 : SignedXml
1 instantiation of SignedXml
Microsoft.DotNet.SignCheckLibrary (1)
Verification\XmlVerifier.cs (1)
55var signedXml = new SignedXml(xmlDoc);
151 references to SignedXml
Microsoft.Build.Tasks.Core (6)
ManifestUtil\mansign2.cs (6)
405nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl); 450nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl); 739signedXml.SignedInfo.CanonicalizationMethod = SignedXml.XmlDsigExcC14NTransformUrl; 900nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl); 952XmlElement dsObject = licenseDom.CreateElement("Object", SignedXml.XmlDsigNamespaceUrl); 995signedXml.SignedInfo.CanonicalizationMethod = SignedXml.XmlDsigExcC14NTransformUrl;
Microsoft.DotNet.SignCheckLibrary (2)
Verification\XmlVerifier.cs (2)
47XmlNodeList signatureNodes = xmlDoc.GetElementsByTagName("Signature", SignedXml.XmlDsigNamespaceUrl); 55var signedXml = new SignedXml(xmlDoc);
System.Security (1)
System.Security.cs (1)
66[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.Xml.SignedXml))]
System.Security.Cryptography.Xml (142)
System\Security\Cryptography\Xml\DataObject.cs (4)
118XmlElement objectElement = document.CreateElement("Object", SignedXml.XmlDsigNamespaceUrl); 145_id = Utils.GetAttribute(value, "Id", SignedXml.XmlDsigNamespaceUrl); 146_mimeType = Utils.GetAttribute(value, "MimeType", SignedXml.XmlDsigNamespaceUrl); 147_encoding = Utils.GetAttribute(value, "Encoding", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\DSAKeyValue.cs (12)
96XmlElement keyValueElement = xmlDocument.CreateElement(KeyValueElementName, SignedXml.XmlDsigNamespaceUrl); 97XmlElement dsaKeyValueElement = xmlDocument.CreateElement(DSAKeyValueElementName, SignedXml.XmlDsigNamespaceUrl); 99XmlElement pElement = xmlDocument.CreateElement(PElementName, SignedXml.XmlDsigNamespaceUrl); 103XmlElement qElement = xmlDocument.CreateElement(QElementName, SignedXml.XmlDsigNamespaceUrl); 107XmlElement gElement = xmlDocument.CreateElement(GElementName, SignedXml.XmlDsigNamespaceUrl); 111XmlElement yElement = xmlDocument.CreateElement(YElementName, SignedXml.XmlDsigNamespaceUrl); 118XmlElement jElement = xmlDocument.CreateElement(JElementName, SignedXml.XmlDsigNamespaceUrl); 125XmlElement seedElement = xmlDocument.CreateElement(SeedElementName, SignedXml.XmlDsigNamespaceUrl); 129XmlElement counterElement = xmlDocument.CreateElement(PgenCounterElementName, SignedXml.XmlDsigNamespaceUrl); 162|| value.NamespaceURI != SignedXml.XmlDsigNamespaceUrl) 164throw new CryptographicException(SR.Format(SR.WrongRootElement, KeyValueElementName, SignedXml.XmlDsigNamespaceUrl)); 169xmlNamespaceManager.AddNamespace(xmlDsigNamespacePrefix, SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedData.cs (1)
22nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedKey.cs (1)
61nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedReference.cs (2)
100referenceElement.AppendChild(TransformChain.GetXml(document, SignedXml.XmlDsigNamespaceUrl)); 123nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
266return SignedXml.DefaultGetIdElement(document, idValue);
System\Security\Cryptography\Xml\KeyInfo.cs (2)
44XmlElement keyInfoElement = xmlDocument.CreateElement("KeyInfo", SignedXml.XmlDsigNamespaceUrl); 71_id = Utils.GetAttribute(keyInfoElement, "Id", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\KeyInfoName.cs (1)
46XmlElement nameElement = xmlDocument.CreateElement("KeyName", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\KeyInfoRetrievalMethod.cs (3)
56XmlElement retrievalMethodElement = xmlDocument.CreateElement("RetrievalMethod", SignedXml.XmlDsigNamespaceUrl); 73_uri = Utils.GetAttribute(value, "URI", SignedXml.XmlDsigNamespaceUrl); 74_type = Utils.GetAttribute(value, "Type", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (9)
223XmlElement x509DataElement = xmlDocument.CreateElement("X509Data", SignedXml.XmlDsigNamespaceUrl); 229XmlElement issuerSerialElement = xmlDocument.CreateElement("X509IssuerSerial", SignedXml.XmlDsigNamespaceUrl); 230XmlElement issuerNameElement = xmlDocument.CreateElement("X509IssuerName", SignedXml.XmlDsigNamespaceUrl); 233XmlElement serialNumberElement = xmlDocument.CreateElement("X509SerialNumber", SignedXml.XmlDsigNamespaceUrl); 244XmlElement subjectKeyIdElement = xmlDocument.CreateElement("X509SKI", SignedXml.XmlDsigNamespaceUrl); 254XmlElement subjectNameElement = xmlDocument.CreateElement("X509SubjectName", SignedXml.XmlDsigNamespaceUrl); 264XmlElement x509Element = xmlDocument.CreateElement("X509Certificate", SignedXml.XmlDsigNamespaceUrl); 272XmlElement crlElement = xmlDocument.CreateElement("X509CRL", SignedXml.XmlDsigNamespaceUrl); 288nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\Reference.cs (15)
13internal const string DefaultDigestMethod = SignedXml.XmlDsigSHA256Url; 25private SignedXml? _signedXml; 138internal SignedXml? SignedXml 170XmlElement referenceElement = document.CreateElement("Reference", SignedXml.XmlDsigNamespaceUrl); 183referenceElement.AppendChild(TransformChain.GetXml(document, SignedXml.XmlDsigNamespaceUrl)); 189XmlElement digestMethodElement = document.CreateElement("DigestMethod", SignedXml.XmlDsigNamespaceUrl); 200XmlElement digestValueElement = document.CreateElement("DigestValue", SignedXml.XmlDsigNamespaceUrl); 216_id = Utils.GetAttribute(value, "Id", SignedXml.XmlDsigNamespaceUrl); 217_uri = Utils.GetAttribute(value, "URI", SignedXml.XmlDsigNamespaceUrl); 218_type = Utils.GetAttribute(value, "Type", SignedXml.XmlDsigNamespaceUrl); 223nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl); 255string? algorithm = Utils.GetAttribute(transformElement, "Algorithm", SignedXml.XmlDsigNamespaceUrl); 319_digestMethod = Utils.GetAttribute(digestMethodElement, "Algorithm", SignedXml.XmlDsigNamespaceUrl)!; 439if ((tempElem != null) && (Utils.HasAttribute(tempElem, "Id", SignedXml.XmlDsigNamespaceUrl)) 440&& (Utils.GetAttribute(tempElem, "Id", SignedXml.XmlDsigNamespaceUrl)!.Equals(idref)))
System\Security\Cryptography\Xml\RSAKeyValue.cs (7)
78XmlElement keyValueElement = xmlDocument.CreateElement(KeyValueElementName, SignedXml.XmlDsigNamespaceUrl); 79XmlElement rsaKeyValueElement = xmlDocument.CreateElement(RSAKeyValueElementName, SignedXml.XmlDsigNamespaceUrl); 81XmlElement modulusElement = xmlDocument.CreateElement(ModulusElementName, SignedXml.XmlDsigNamespaceUrl); 85XmlElement exponentElement = xmlDocument.CreateElement(ExponentElementName, SignedXml.XmlDsigNamespaceUrl); 117|| value.NamespaceURI != SignedXml.XmlDsigNamespaceUrl) 119throw new CryptographicException(SR.Format(SR.WrongRootElement, KeyValueElementName, SignedXml.XmlDsigNamespaceUrl)); 124xmlNamespaceManager.AddNamespace(xmlDsigNamespacePrefix, SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\Signature.cs (7)
19private SignedXml? _signedXml; 21internal SignedXml? SignedXml 95XmlElement signatureElement = (XmlElement)document.CreateElement("Signature", SignedXml.XmlDsigNamespaceUrl); 109XmlElement signatureValueElement = document.CreateElement("SignatureValue", SignedXml.XmlDsigNamespaceUrl); 147_id = Utils.GetAttribute(signatureElement, "Id", SignedXml.XmlDsigNamespaceUrl); 152nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl); 172_signatureValueId = Utils.GetAttribute(signatureValueElement, "Id", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\SignedInfo.cs (10)
20private SignedXml? _signedXml; 23internal SignedXml? SignedXml 85return SignedXml.XmlDsigC14NTransformUrl; 167XmlElement signedInfoElement = document.CreateElement("SignedInfo", SignedXml.XmlDsigNamespaceUrl); 179XmlElement signatureMethodElement = document.CreateElement("SignatureMethod", SignedXml.XmlDsigNamespaceUrl); 184XmlElement hmacLengthElement = document.CreateElement(null, "HMACOutputLength", SignedXml.XmlDsigNamespaceUrl); 218nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl); 222_id = Utils.GetAttribute(signedInfoElement, "Id", SignedXml.XmlDsigNamespaceUrl); 232_canonicalizationMethod = Utils.GetAttribute(canonicalizationMethodElement, "Algorithm", SignedXml.XmlDsigNamespaceUrl); 245_signatureMethod = Utils.GetAttribute(signatureMethodElement, "Algorithm", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\SignedXml.cs (9)
33private Func<SignedXml, bool> _signatureFormatValidator = DefaultSignatureFormatValidator; 164public Func<SignedXml, bool> SignatureFormatValidator 463"SHA1" => SignedXml.XmlDsigHMACSHA1Url, 464"SHA256" => SignedXml.XmlDsigMoreHMACSHA256Url, 465"SHA384" => SignedXml.XmlDsigMoreHMACSHA384Url, 466"SHA512" => SignedXml.XmlDsigMoreHMACSHA512Url, 467"MD5" => SignedXml.XmlDsigMoreHMACMD5Url, 468"RIPEMD160" => SignedXml.XmlDsigMoreHMACRIPEMD160Url, 625private static bool DefaultSignatureFormatValidator(SignedXml signedXml)
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (23)
279internal static void LogBeginCanonicalization(SignedXml signedXml, Transform canonicalizationTransform) 314internal static void LogBeginCheckSignatureFormat(SignedXml signedXml, Func<SignedXml, bool> formatValidator) 337internal static void LogBeginCheckSignedInfo(SignedXml signedXml, SignedInfo signedInfo) 356internal static void LogBeginSignatureComputation(SignedXml signedXml, XmlElement context) 386internal static void LogBeginSignatureVerification(SignedXml signedXml, XmlElement? context) 416internal static void LogCanonicalizedOutput(SignedXml signedXml, Transform canonicalizationTransform) 441internal static void LogFormatValidationResult(SignedXml signedXml, bool result) 460internal static void LogUnsafeCanonicalizationMethod(SignedXml signedXml, string algorithm, IEnumerable<string>? validAlgorithms) 496SignedXml signedXml, 542internal static void LogNamespacePropagation(SignedXml signedXml, XmlNodeList? namespaces) 629internal static void LogSigning(SignedXml signedXml, 661internal static void LogSigning(SignedXml signedXml, KeyedHashAlgorithm key) 685internal static void LogSigningReference(SignedXml signedXml, Reference reference) 715internal static void LogVerificationFailure(SignedXml signedXml, string failureLocation) 736internal static void LogVerificationResult(SignedXml signedXml, object key, bool verified) 762internal static void LogVerifyKeyUsage(SignedXml signedXml, X509Certificate certificate, X509KeyUsageExtension keyUsages) 787internal static void LogVerifyReference(SignedXml signedXml, Reference reference) 816internal static void LogVerifyReferenceHash(SignedXml signedXml, 856internal static void LogVerifySignedInfo(SignedXml signedXml, 905internal static void LogVerifySignedInfo(SignedXml signedXml, 944internal static void LogVerifyX509Chain(SignedXml signedXml, X509Chain chain, X509Certificate certificate) 1035internal static void LogSignedXmlRecursionLimit(SignedXml signedXml,
System\Security\Cryptography\Xml\Transform.cs (5)
29private SignedXml? _signedXml; 40internal SignedXml? SignedXml 130XmlElement transformElement = document.CreateElement(name, SignedXml.XmlDsigNamespaceUrl); 167SignedXml? signedXml = (reference == null ? SignedXml : reference.SignedXml); 187SignedXml? signedXml = (reference == null ? SignedXml : reference.SignedXml);
System\Security\Cryptography\Xml\TransformChain.cs (2)
180nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl); 190string? algorithm = Utils.GetAttribute(transformElement, "Algorithm", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (3)
34Algorithm = SignedXml.XmlDecryptionTransformUrl; 58SignedXml? signedXml = (reference == null ? SignedXml : reference.SignedXml); 125XmlElement element = document.CreateElement("Transform", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\XmlDsigBase64Transform.cs (1)
19Algorithm = SignedXml.XmlDsigBase64TransformUrl;
System\Security\Cryptography\Xml\XmlDsigC14NTransform.cs (3)
18Algorithm = SignedXml.XmlDsigC14NTransformUrl; 24Algorithm = (includeComments ? SignedXml.XmlDsigC14NWithCommentsTransformUrl : SignedXml.XmlDsigC14NTransformUrl);
System\Security\Cryptography\Xml\XmlDsigC14NWithCommentsTransform.cs (1)
11Algorithm = SignedXml.XmlDsigC14NWithCommentsTransformUrl;
System\Security\Cryptography\Xml\XmlDsigEnvelopedSignatureTransform.cs (5)
26Algorithm = SignedXml.XmlDsigEnvelopedSignatureTransformUrl; 33Algorithm = SignedXml.XmlDsigEnvelopedSignatureTransformUrl; 89_nsm.AddNamespace("dsig", SignedXml.XmlDsigNamespaceUrl); 104_nsm.AddNamespace("dsig", SignedXml.XmlDsigNamespaceUrl); 117_nsm.AddNamespace("dsig", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\XmlDsigExcC14NTransform.cs (7)
27Algorithm = (includeComments ? SignedXml.XmlDsigExcC14NWithCommentsTransformUrl : SignedXml.XmlDsigExcC14NTransformUrl); 56&& e.NamespaceURI.Equals(SignedXml.XmlDsigExcC14NTransformUrl) && 57Utils.HasAttribute(e, "PrefixList", SignedXml.XmlDsigNamespaceUrl)) 63this.InclusiveNamespacesPrefixList = Utils.GetAttribute(e, "PrefixList", SignedXml.XmlDsigNamespaceUrl); 99XmlElement element = document.CreateElement("Transform", SignedXml.XmlDsigNamespaceUrl); 102XmlElement prefixListElement = document.CreateElement("InclusiveNamespaces", SignedXml.XmlDsigExcC14NTransformUrl);
System\Security\Cryptography\Xml\XmlDsigExcC14NWithCommentsTransform.cs (2)
14Algorithm = SignedXml.XmlDsigExcC14NWithCommentsTransformUrl; 19Algorithm = SignedXml.XmlDsigExcC14NWithCommentsTransformUrl;
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (2)
22Algorithm = SignedXml.XmlDsigXPathTransformUrl; 89XmlElement element = document.CreateElement(null, "XPath", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\XmlDsigXsltTransform.cs (2)
24Algorithm = SignedXml.XmlDsigXsltTransformUrl; 30Algorithm = SignedXml.XmlDsigXsltTransformUrl;
System\Security\Cryptography\Xml\XmlLicenseTransform.cs (2)
29Algorithm = SignedXml.XmlLicenseTransformUrl; 138_namespaceManager.AddNamespace("dsig", SignedXml.XmlDsigNamespaceUrl);