mirror of
https://github.com/emmansun/gmsm.git
synced 2025-05-19 23:46:18 +08:00
Updated SM2 MFMM (2) (markdown)
parent
75d0ce1057
commit
6dbffdac4e
@ -58,11 +58,9 @@ $t_3=t_3 + t_0 \ast p_3$
|
||||
使用MULXQ/ADCXQ/ADOXQ:
|
||||
```asm
|
||||
MOVQ t0, DX
|
||||
XORQ BX, BX
|
||||
XORQ SI, SI
|
||||
|
||||
MULXQ p1, AX, DI
|
||||
ADCXQ BX, AX
|
||||
ADOXQ AX, t1
|
||||
|
||||
MULXQ p2, AX, BX
|
||||
@ -77,7 +75,7 @@ $t_3=t_3 + t_0 \ast p_3$
|
||||
ADOXQ SI, t0
|
||||
```
|
||||
乘法: 3
|
||||
加法:8
|
||||
加法:7
|
||||
|
||||
### 方案二:(移位、加法、减法)
|
||||
$T_2=T_1 \ast P=t_0 \ast P= t_0 \ast (2^{256}-(2^{32} \ast 2^{192} + 0 \ast 2^{128} + (2^{32} - 1) \ast 2^{64} + 1))$
|
||||
|
Loading…
x
Reference in New Issue
Block a user