mirror of
https://github.com/emmansun/gmsm.git
synced 2025-05-11 03:26:17 +08:00
Updated SM9实现及优化 (markdown)
parent
52016c9069
commit
6adab79931
@ -35,9 +35,6 @@ 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性能好。
|
||||
|
||||
## 米勒运算中的line add/double不新建、返回对象
|
||||
Go语言相对简单,但是为了简单,编译器做了很多额外的操作,譬如切片操作边界检查;返回栈中对象的内存迁移等等。有些对性能影响还是挺大的。
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user