Updated Armv8.2 SM3和SM4 (markdown)

Sun Yimin 2022-07-22 16:49:31 +08:00
parent 2a26029737
commit dcc2985f40

@ -56,7 +56,7 @@ AESE指令相当于
```
2. 修改arm64asm/plan9x.gonoSuffixOpSet里加上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