122 Commits

Author SHA1 Message Date
Sun Yimin
0e54e68bfd
sm9/bn256: asm implementation for gfP Marshal/Unmarshal #140 2023-07-07 18:09:49 +08:00
Sun Yimin
ebe5aca2d8
Update select_generic.go 2023-07-06 17:56:10 +08:00
Sun Yimin
4755d5aa2a
sm9/bn256: also apply to 1-2-6-12 #139 #137 2023-07-06 17:36:34 +08:00
Sun Yimin
5f72151e74
sm9/bn256: special square for final exp & optimize gfp2/gfp12 square #137 #139 2023-07-05 17:58:19 +08:00
emmansun
1e5ba7f5a1 sm9/bn256: add miller benchmark test 2023-07-02 11:46:50 +08:00
emmansun
b493f8cb99 sm9/bn256: avoid value copy #136 2023-07-02 11:23:36 +08:00
Sun Yimin
c7b3d97304
sm9/bn256: value copy acceleration #136 2023-06-30 17:51:35 +08:00
Sun Yimin
0afaeb49eb
sm9/bn256: use ADCX ADOX together with MULX #132 2023-06-28 17:38:05 +08:00
Sun Yimin
8041c5e310
sm2: remove CSPRNG usage 2023-06-27 08:57:31 +08:00
Sun Yimin
e25a8c6be2
sm9/bn256: arm64 ww-mm test 2023-06-26 17:28:02 +08:00
emmansun
dbbfa37399 sm9/bn256: update document 2023-06-24 10:10:08 +08:00
emmansun
9b4a77482a sm9/bn256: add test cases and refactoring 2023-06-24 09:38:45 +08:00
emmansun
b84bd335dc sm9/bn256: amd64 support MULX for mul & Sqr 2023-06-22 18:54:09 +08:00
emmansun
f95cce434f sm9/bn256: fix arm64 from mont func issue 2023-06-22 15:50:06 +08:00
emmansun
531302450a sm9/bn256: check arm64 failed function 2023-06-22 15:36:42 +08:00
emmansun
edf3db15b6 sm9/bn256: did not save code change 2023-06-22 14:58:29 +08:00
emmansun
7b0e5c2bb9 sm9/bn256: remove useless code 2023-06-22 14:53:02 +08:00
emmansun
0bb1fa5be5 sm9/bn256: asm rewrite batch 1, for arm64 test 2023-06-22 14:35:14 +08:00
Sun Yimin
ecab517411
sm9/bn256: curvePointMovCond twistPointMovCond asm implementation for amd64 & arm64 2023-06-21 15:45:06 +08:00
Sun Yimin
aa535e3aaa
sm9/bn256: gfP12MovCond asm implementation for amd64 & arm64 2023-06-21 14:35:58 +08:00
Sun Yimin
9bcbf9bae9
sm2/sm9: eliminate bounds checks in the loop of Select 2023-06-21 11:52:32 +08:00
Sun Yimin
2da0a9cebc
sm9/bn256: add comment for gfpNeg 2023-06-21 09:02:09 +08:00
emmansun
5d101fb431 sm9: fix neg issue 2023-06-20 21:01:56 +08:00
Sun Yimin
0ad84822fe
sm9/bn256: re-implement gfp generic 2023-06-20 17:48:04 +08:00
Sun Yimin
3cbabc3d1c
optimize purego sm3/sm4 and reduce bounds checking for sm9 2023-06-16 16:06:38 +08:00
Sun Yimin
c4e0e39475
sm9: fix npe issue 2023-06-15 11:23:06 +08:00
Sun Yimin
a1b44f1a64
sm9: get around assignment copies lock value to issue 2023-06-15 11:17:51 +08:00
Sun Yimin
f32b7e1afc
[sync sdk] crypto/internal/bigmod: switch to saturated limbs 2023-06-01 10:39:12 +08:00
Sun Yimin
0a7f4d4779
Update README.md
发现提高没那么多
2023-05-04 09:02:23 +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
b197c96040 sm9: update README 2023-04-29 10:47:19 +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
21df52b623
smx9: rename CipherFactory to newCipher 2023-02-15 17:30:33 +08:00
Sun Yimin
dd8b2f61dd
smx509: ParseTypedECPrivateKey, return real privae key type 2023-02-14 16:03:05 +08:00
Sun Yimin
bf037a329e
sm9: handle empty plaintext and invalid ciphertext size 2023-02-14 10:45:02 +08:00
Sun Yimin
2eb1c508b8
sm9: use correct method 2023-02-13 15:47:02 +08:00
Sun Yimin
d52750d7a8
sm9: fix decrypt method ASN1 format checking issue 2023-02-13 15:36:04 +08:00
Sun Yimin
aedef9d00d
sm9: refactor encrypter mode 2023-02-13 14:36:34 +08:00