Updated SM2 WWMM (2) (markdown)

Sun Yimin 2024-03-01 09:49:32 +08:00
parent 18799b4d2c
commit e888037e48

@ -463,7 +463,8 @@ $T_3=t_7 \ast 2^{448} + t_6 \ast 2^{384} + t_5 \ast 2^{320} + (t_4+Y-Y>>32) \ast
ADDQ AX, acc0 // (carry1, acc0) = acc0 + L(t0 * ord0)acc0 可以被释放了。
ADCQ t1, acc1 // (carry2, acc1) = acc1 + H(t0 * ord0) + carry1
// calculate the negative part: [acc0, acc3, acc2, acc1] - [0, 0x100000000, 1, 0] * t0
// calculate the negative part: [t0, acc3, acc2, acc1] - [0, 0x100000000, 1, 0] * t0
// [t0 - t0>>32, acc3-t0<<32, acc2-t0, acc1]
// 处理减法
MOVQ t0, acc0 // acc0 = t0
MOVQ t0, AX