Skip to content

Commit a8847b1

Browse files
carlossanlopRon Petrusha
andcommitted
Automatically port Reflection.AssemblyHashAlgorithm (#3183)
* Automatically port Reflection.AssemblyHashAlgorithm * Remove first line * suggestion by rpetrusha Co-Authored-By: Ron Petrusha <[email protected]>
1 parent b3254c4 commit a8847b1

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

xml/System.Reflection/AssemblyHashAlgorithm.xml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<BaseTypeName>System.Enum</BaseTypeName>
1919
</Base>
2020
<Docs>
21-
<summary>To be added.</summary>
21+
<summary>Specifies the hash algorithms used for hashing assembly files and for generating the strong name.</summary>
2222
<remarks>To be added.</remarks>
2323
</Docs>
2424
<Members>
@@ -44,8 +44,22 @@
4444
</ReturnValue>
4545
<MemberValue>32771</MemberValue>
4646
<Docs>
47-
<summary>To be added.</summary>
48-
<remarks>Due to collision problems with MD5, Microsoft recommends SHA256.</remarks>
47+
<summary>Retrieves the MD5 message-digest algorithm.</summary>
48+
<remarks>
49+
<format type="text/markdown">
50+
<![CDATA[
51+
52+
## Remarks
53+
54+
> [!IMPORTANT]
55+
> Due to collision problems with MD5, Microsoft recommends SHA256.
56+
57+
MD5 was developed by Rivest in 1991. It is basically MD4 with safety-belts and while it is slightly slower than MD4, it helps provide more security.
58+
59+
The algorithm consists of four distinct rounds, which has a slightly different design from that of MD4. Message-digest size, as well as padding requirements, remain the same.
60+
61+
]]></format>
62+
</remarks>
4963
</Docs>
5064
</Member>
5165
<Member MemberName="None">
@@ -70,7 +84,17 @@
7084
</ReturnValue>
7185
<MemberValue>0</MemberValue>
7286
<Docs>
73-
<summary>To be added.</summary>
87+
<summary>A mask indicating that there is no hash algorithm.</summary>
88+
<remarks>
89+
<format type="text/markdown">
90+
<![CDATA[
91+
92+
## Remarks
93+
94+
If you specify `None` for a multi-module assembly, the common language runtime defaults to the SHA1 algorithm, since multi-module assemblies need to generate a hash.
95+
96+
]]></format>
97+
</remarks>
7498
</Docs>
7599
</Member>
76100
<Member MemberName="Sha1">
@@ -95,7 +119,7 @@
95119
</ReturnValue>
96120
<MemberValue>32772</MemberValue>
97121
<Docs>
98-
<summary>To be added.</summary>
122+
<summary>Retrieves a revision of the Secure Hash Algorithm that corrects an unpublished flaw in SHA.</summary>
99123
<remarks>Due to collision problems with SHA1, Microsoft recommends SHA256.</remarks>
100124
</Docs>
101125
</Member>
@@ -121,7 +145,7 @@
121145
</ReturnValue>
122146
<MemberValue>32780</MemberValue>
123147
<Docs>
124-
<summary>To be added.</summary>
148+
<summary>Retrieves a version of the Secure Hash Algorithm with a hash size of 256 bits.</summary>
125149
</Docs>
126150
</Member>
127151
<Member MemberName="Sha384">
@@ -146,7 +170,7 @@
146170
</ReturnValue>
147171
<MemberValue>32781</MemberValue>
148172
<Docs>
149-
<summary>To be added.</summary>
173+
<summary>Retrieves a version of the Secure Hash Algorithm with a hash size of 384 bits.</summary>
150174
</Docs>
151175
</Member>
152176
<Member MemberName="Sha512">
@@ -171,7 +195,7 @@
171195
</ReturnValue>
172196
<MemberValue>32782</MemberValue>
173197
<Docs>
174-
<summary>To be added.</summary>
198+
<summary>Retrieves a version of the Secure Hash Algorithm with a hash size of 512 bits.</summary>
175199
</Docs>
176200
</Member>
177201
</Members>

0 commit comments

Comments
 (0)