Skip to content

Commit 92b336c

Browse files
committed
Add doc for sha512, sm3 and sm4 target features
1 parent acd0231 commit 92b336c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/attributes/codegen.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ Feature | Implicitly Enables | Description
224224
`rdrand` | | [`rdrand`] --- Read random number
225225
`rdseed` | | [`rdseed`] --- Read random seed
226226
`sha` | `sse2` | [SHA] --- Secure Hash Algorithm
227+
`sha512` | `avx2` | [SHA512] --- Secure Hash Algorithm with 512-bit digest
228+
`sm3` | `avx` | [SM3] --- ShangMi 3 Hash Algorithm
229+
`sm4` | `avx2` | [SM4] --- ShangMi 4 Cipher Algorithm
227230
`sse` | | [SSE] --- Streaming <abbr title="Single Instruction Multiple Data">SIMD</abbr> Extensions
228231
`sse2` | `sse` | [SSE2] --- Streaming SIMD Extensions 2
229232
`sse3` | `sse2` | [SSE3] --- Streaming SIMD Extensions 3
@@ -277,6 +280,9 @@ Feature | Implicitly Enables | Description
277280
[`rdrand`]: https://en.wikipedia.org/wiki/RdRand
278281
[`rdseed`]: https://en.wikipedia.org/wiki/RdRand
279282
[SHA]: https://en.wikipedia.org/wiki/Intel_SHA_extensions
283+
[SHA512]: https://en.wikipedia.org/wiki/Intel_SHA_extensions
284+
[SM3]: https://en.wikipedia.org/wiki/List_of_x86_cryptographic_instructions#Intel_SHA_and_SM3_instructions
285+
[SM4]: https://en.wikipedia.org/wiki/List_of_x86_cryptographic_instructions#Intel_SHA_and_SM3_instructions
280286
[SSE]: https://en.wikipedia.org/wiki/Streaming_SIMD_Extensions
281287
[SSE2]: https://en.wikipedia.org/wiki/SSE2
282288
[SSE3]: https://en.wikipedia.org/wiki/SSE3

0 commit comments

Comments
 (0)