30 Commits

Author SHA1 Message Date
Sun Yimin
3cbabc3d1c
optimize purego sm3/sm4 and reduce bounds checking for sm9 2023-06-16 16:06:38 +08:00
emmansun
ad80148a26 sm9: fix gfP12b6Gen error, not used yet 2023-05-03 11:24:07 +08:00
emmansun
12d604b54f sm9: add comment for mulLine 2023-05-02 14:04:00 +08:00
emmansun
0cf7d640c5 sm9: optimize mul line 2023-05-02 12:13:18 +08:00
emmansun
de6e4c2464 sm9: pairing 避免除数处理 2023-05-02 11:39:16 +08:00
emmansun
bf17ff1a4d sm9: need to further check 0 handling 2023-04-29 13:47:58 +08:00
emmansun
13ddfad8e4 sm9: optimize generate and gfP2 sqrt 2023-04-29 13:33:44 +08:00
emmansun
f58cb10ad9 sm9: improve gfP invert & sqrt performance 2023-04-29 10:30:57 +08:00
Sun Yimin
4a5dcf64c1
Update README.md 2023-04-28 20:13:53 +08:00
Sun Yimin
40f3928766
sm9: implement 1-2-6-12 towering extensions for comparison 2023-04-28 16:52:10 +08:00
Sun Yimin
eeaa257b1a
sm9: reduce mul, improve performance 2023-04-28 16:40:10 +08:00
Sun Yimin
946b85b409
sm9: reduce mul, improve performance 2023-04-28 15:31:59 +08:00
Sun Yimin
a454c5f5ec
sm9: reduce gfp2 mul 2023-04-28 11:25:09 +08:00
Sun Yimin
5d41aaa348
merge pkcs7 2023-03-09 11:45:39 +08:00
Sun Yimin
71657b8d34
fix possible test failure 2023-03-07 08:55:09 +08:00
Sun Yimin
edfb4febdd
sm: improve docs and add examples 2023-01-31 13:50:14 +08:00
Sun Yimin
d7e853277a
sm9: use bigmod instead of math/big 2022-11-25 10:11:46 +08:00
Sun Yimin
200a785d29
change build tag generic to purego & import nat package 2022-11-22 11:02:37 +08:00
Sun Yimin
54a06d72e1
sm9: test all curves 2022-07-19 16:07:42 +08:00
Sun Yimin
ec7f96d3cc
sm9: remove unsure code 2022-07-19 15:36:08 +08:00
Sun Yimin
711508985e
sm9: clean code and unit test 2022-07-19 08:58:12 +08:00
Sun Yimin
be29c32fe5
Update README.md 2022-07-17 17:48:02 +08:00
Emman
eb94980db3 run "gofmt -s -w" 2022-07-15 16:42:39 +08:00
Sun Yimin
eca13ba8c5
[sm9] fix 32-bit GOARCH issue 2022-07-07 11:43:00 +08:00
Emman
1ccbc35f12 Revert "[sm9] fix 32-bit GOARCH issue"
This reverts commit 53b24e0aaccaed0d3f3c4f04ead2121363afa91f.
2022-07-07 11:28:44 +08:00
Sun Yimin
53b24e0aac
[sm9] fix 32-bit GOARCH issue 2022-07-07 10:50:24 +08:00
Sun Yimin
461f4b6838
sm9: improve performance according sparse elements 2022-06-22 15:36:46 +08:00
Sun Yimin
195f6f73ba
sm9: change finalExponentiation implementation 2022-06-20 13:34:53 +08:00
Sun Yimin
410b1eea3a
SM9: add key exchange support 2022-06-16 14:43:28 +08:00
Sun Yimin
81c0dbb0fa
SM9: refactoring, move separate SM9 & bn256 2022-06-16 10:14:45 +08:00