mirror of
https://github.com/emmansun/gmsm.git
synced 2025-10-14 07:10:45 +08:00
Updated sm2_z256_loong64.S 代码分析 (markdown)
parent
e677268cdf
commit
d54d300fdf
@ -78,5 +78,6 @@ $T_3=T + T_2=(t_4+t_0-t_0>>32) \ast 2^{256}+(t_3 - t_0<<32) \ast 2^{192} + (t_2
|
||||
1. 约简还没完成,也就是上一步 $T_2 + T$ 还没算完,就开始了下一个字的乘法,代码可读性降低,为了性能?
|
||||
1. 最后,依然使用加`1`来实现`mod P`,这里的`1`为 $2^{256} - P$ 。
|
||||
|
||||
|
||||
## __sm2_z256_modp_mont_sqr
|
||||
计算 `(t0, t1, t2, t3) = (t0, t1, t2, t3)^2`。
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user