Updated Armv8.2 SM3和SM4 (markdown)

Sun Yimin 2021-12-29 13:20:45 +08:00
parent 671d51d547
commit 33f6033a33

@ -16,9 +16,19 @@
和CPU指令级别的差距基本上是10倍
找不到相关CPU环境mark先。
## SM4 with AES
AESE指令相当于
1. AddRoundKey(state, RoudKey)
1. ShiftRows(State)
1. SubBytes(State)
所以如果RoudKey = 0, 那么AESE相当于执行了
1. ShiftRows(State)
1. SubBytes(State)
## Reference
SM3和SM4 CPU指令实现找不到相关CPU环境mark先。
1. [Summary of A64 cryptographic instructions](https://developer.arm.com/documentation/100076/0100/a64-instruction-set-reference/a64-cryptographic-algorithms/a64-cryptographic-instructions?lang=en)
1. [Arm A64 Instruction Set Architecture](https://developer.arm.com/documentation/100076/0100/a64-instruction-set-reference/a64-cryptographic-algorithms/a64-cryptographic-instructions?lang=en)
1. [linux arm64 crypto](http://www.dydata.cc/Admin/NavFolder/%60linux%60kernel%60linux-5%7C0%60arch%60arm64%60crypto%60) / (https://github.com/torvalds/linux/tree/master/arch/arm64/crypto)