mirror of
https://github.com/emmansun/gmsm.git
synced 2025-05-11 03:26:17 +08:00
Updated Armv8.2 SM3和SM4 (markdown)
parent
2a26029737
commit
dcc2985f40
@ -56,7 +56,7 @@ AESE指令相当于:
|
||||
```
|
||||
2. 修改arm64asm/plan9x.go,noSuffixOpSet里加上SM4E和SM4EKEY,这个是可选的,加了的话,plan9x的指令就不会出现V前缀。
|
||||
3. 写测试,testDecodeLine()方法是从decode_test.go的testDecode()方法中抽出来的。看了那个Decode()方法就能编码出那些32位的code了。
|
||||
```
|
||||
```golang
|
||||
|
||||
func TestDecodeSM4Codes(t *testing.T) {
|
||||
//gnu syntax, load 16 bytes plaintext to v8 (need to reverse byte order first), 32 round keys to v0-v7, the final result should be reverse byte order again
|
||||
|
Loading…
x
Reference in New Issue
Block a user