Skip to content

Commit da15915

Browse files
authored
Update DigestMethod default value to SHA256 (#4320)
Reference default DigestMethod has been changed to SHA256 in this commit: dotnet/runtime@f628235 Documentation still displays SHA1 as default value.
1 parent a557ad6 commit da15915

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Security.Cryptography.Xml/Reference.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,14 @@
284284
</ReturnValue>
285285
<Docs>
286286
<summary>Gets or sets the digest method Uniform Resource Identifier (URI) of the current <see cref="T:System.Security.Cryptography.Xml.Reference" />.</summary>
287-
<value>The digest method URI of the current <see cref="T:System.Security.Cryptography.Xml.Reference" />. The default value is <c>http://www.w3.org/2000/09/xmldsig#sha1</c>.</value>
287+
<value>The digest method URI of the current <see cref="T:System.Security.Cryptography.Xml.Reference" />. The default value is <c>http://www.w3.org/2001/04/xmlenc#sha256</c>.</value>
288288
<remarks>
289289
<format type="text/markdown"><![CDATA[
290290
291291
## Remarks
292292
The <xref:System.Security.Cryptography.Xml.Reference.DigestMethod%2A> property uses a URI string to represent the `<DigestMethod>` element of an XML digital signature.
293293
294-
The digest method is the algorithm used to hash the <xref:System.Security.Cryptography.Xml.Reference>. The default algorithm is <xref:System.Security.Cryptography.SHA1>.
294+
The digest method is the algorithm used to hash the <xref:System.Security.Cryptography.Xml.Reference>. The default algorithm is <xref:System.Security.Cryptography.SHA256>.
295295
296296
Due to collision problems with SHA1, Microsoft recommends a security model based on SHA256 or better. For more information about XML digital signatures, see the [W3C specification](https://www.w3.org/TR/xmldsig-core/).
297297

0 commit comments

Comments
 (0)