mirror of
https://github.com/emmansun/gmsm.git
synced 2025-05-11 03:26:17 +08:00
Updated SM9实现及优化 (markdown)
parent
80a7430835
commit
3336c1da59
@ -14,6 +14,9 @@ https://github.com/emmansun/gmsm/blob/7254c055d7a353094a4d3b2c95d17505d2e8e82b/s
|
||||
这四步前后花了一个月左右的时间。
|
||||
|
||||
# SM9的优化
|
||||
|
||||
具体可以参考Issues / Discussions。
|
||||
|
||||
## 借鉴椭圆曲线实现
|
||||
包括标量乘法的借鉴、应用加法链优化求逆和求平方根、Marshal/Unmarshal的汇编实现、基域运算实现的借鉴等。
|
||||
|
||||
@ -27,6 +30,7 @@ https://github.com/emmansun/gmsm/blob/7254c055d7a353094a4d3b2c95d17505d2e8e82b/s
|
||||
|
||||
## 分圆子群特殊平方运算
|
||||
finalExponentiation中应用特殊平方运算,这是从参考文档看到的,当然人家的是1-2-6-12塔式扩域上的c语言实现,这个特殊平方有效提高了finalExponentiation的性能。
|
||||
https://github.com/emmansun/gmsm/discussions/138
|
||||
|
||||
## Neg改用Sub实现
|
||||
无意中发现Neg方法不如后来实现的Sub性能好。
|
||||
|
Loading…
x
Reference in New Issue
Block a user