Codebase list golang-github-minio-sha256-simd / 1c89766
Fix outlining of ARM SHA extensions frankw 7 years ago
1 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
4747 The 64-bit ARMv8 core has introduced new instructions for SHA1 and SHA2 acceleration as part of the [Cryptography Extensions](http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0501f/CHDFJBCJ.html). Below you can see a small excerpt highlighting one of the rounds as is done for the SHA256 calculation process (for full code see [sha256block_arm64.s](https://github.com/minio/sha256-simd/blob/master/sha256block_arm64.s)).
4848
4949 ```
50 sha256h q2, q3, v9.4s
51 sha256h2 q3, q4, v9.4s
50 sha256h q2, q3, v9.4s
51 sha256h2 q3, q4, v9.4s
5252 sha256su0 v5.4s, v6.4s
53 rev32 v8.16b, v8.16b
53 rev32 v8.16b, v8.16b
5454 add v9.4s, v7.4s, v18.4s
55 mov v4.16b, v2.16b
56 sha256h q2, q3, v10.4s
57 sha256h2 q3, q4, v10.4s
55 mov v4.16b, v2.16b
56 sha256h q2, q3, v10.4s
57 sha256h2 q3, q4, v10.4s
5858 sha256su0 v6.4s, v7.4s
5959 sha256su1 v5.4s, v7.4s, v8.4s
6060 ```