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 |
|
Sun Yimin
|
ebf9a74d77
|
sm9: support non-xor modes
|
2023-02-10 17:19:50 +08:00 |
|
Sun Yimin
|
5bfdfeb9b5
|
sm9: add example test, fix unexpected line
|
2023-02-03 15:25:40 +08:00 |
|
Sun Yimin
|
d22b2253f3
|
sm9: add example test
|
2023-02-03 15:13:02 +08:00 |
|
Sun Yimin
|
a2d54159ad
|
add example test for sm3 sm4 pkcs8
|
2023-02-02 11:45:57 +08:00 |
|
Sun Yimin
|
edfb4febdd
|
sm: improve docs and add examples
|
2023-01-31 13:50:14 +08:00 |
|
Sun Yimin
|
97e419809e
|
sm9: ErrDecryption, avoid adaptive attacks
|
2022-12-06 08:54:53 +08:00 |
|
Sun Yimin
|
d30cb1d1c8
|
sm9: add test cases
|
2022-12-02 15:49:48 +08:00 |
|
Sun Yimin
|
9c8836b2c6
|
sm9: sm9: use bigmod instead of math/big, verify method
|
2022-12-02 14:33:54 +08:00 |
|
Sun Yimin
|
18e2f1b022
|
sm9: improve test coverage
|
2022-11-28 10:55:23 +08:00 |
|
Sun Yimin
|
98646cfac0
|
sm9: deprecated sign/verify non-asn1 methods
|
2022-11-28 10:32:17 +08:00 |
|
Sun Yimin
|
c477816aa7
|
sm9: use bigmod instead of math/big, part 2
|
2022-11-25 17:45:11 +08:00 |
|
Sun Yimin
|
a592631459
|
sm9: do not expose internal constants
|
2022-11-25 14:40:27 +08:00 |
|
Sun Yimin
|
63668bb045
|
sm9: remove duplicated code
|
2022-11-25 10:27:21 +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 |
|
emmansun
|
0f0eec19d0
|
provide a sample method to handle irregular ciphertext #90
|
2022-10-30 09:46:09 +08:00 |
|
Sun Yimin
|
57d01255e8
|
handle padding zero, #90
|
2022-10-28 09:31:41 +08:00 |
|