mirror of
https://github.com/emmansun/gmsm.git
synced 2025-05-11 03:26:17 +08:00
Updated Armv8.2 SM3和SM4 (markdown)
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user