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\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\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\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,