41 Commits

Author SHA1 Message Date
Sun Yimin
f32b7e1afc
[sync sdk] crypto/internal/bigmod: switch to saturated limbs 2023-06-01 10:39:12 +08:00
Sun Yimin
bf037a329e
sm9: handle empty plaintext and invalid ciphertext size 2023-02-14 10:45: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
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
9c8836b2c6
sm9: sm9: use bigmod instead of math/big, verify method 2022-12-02 14:33:54 +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
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
Sun Yimin
fb7041acbc
sm2/9: key exchange destroy, fix #80 2022-08-30 09:54:29 +08:00
Sun Yimin
4a21345e72
sm9: fix compile error 2022-08-25 12:58:02 +08:00
Sun Yimin
7ebdf00640
fix defect 2022-08-25 12:54:59 +08:00
Sun Yimin
eedd5ebc2b
kdf: move Kdf() from sm3 to kdf 2022-08-25 11:48:41 +08:00
Sun Yimin
21a9793600
sm2/sm9: key exchange, support to destroy internal state 2022-08-24 15:15:58 +08:00
Sun Yimin
1710bdff4a
refactoring, rename internal packages 2022-08-18 14:49:35 +08:00
Sun Yimin
c88bad8c7d
sm2/9 key exchange: test no sign/verify case 2022-08-17 11:36:50 +08:00
Sun Yimin
3f550e2f24
sm2/9: key exchange error message and comment 2022-08-17 11:17:18 +08:00
Sun Yimin
818cbc3757
misc: clean code 2022-07-28 10:01:30 +08:00
Emman
eb94980db3 run "gofmt -s -w" 2022-07-15 16:42:39 +08:00
Sun Yimin
7bf006ca42
go report card 2022-07-11 13:27:36 +08:00
Sun Yimin
b4b9cd07d9
key exchange refactoring 2022-06-23 10:24:10 +08:00
Sun Yimin
e06e5ef47b
key exchange refactoring, reduce duplicated code 2022-06-20 09:42:48 +08:00
Sun Yimin
23914a86c3
SM2: key exchange 2022-06-17 16:58:26 +08:00
Sun Yimin
aa9e546638
SM9: update readme and supplement comment 2022-06-16 16:40:00 +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
Sun Yimin
3320de17b8
SM9: supplement comment and sample test case 2022-06-16 08:46:28 +08:00
Sun Yimin
14af2513d8
SM9: G1 G2 support point compress 2022-06-15 15:17:16 +08:00
opensvn
e5150e19b5 change the function name and use the correct verb 2022-06-15 13:40:30 +08:00
Sun Yimin
ccdb7b0568
supplement user key generation performance 2022-06-13 17:35:46 +08:00
Sun Yimin
d6a464f470
precompute part 2 2022-06-13 16:29:58 +08:00
Sun Yimin
f78fd3c105
precompute part 1 2022-06-13 13:50:27 +08:00
Sun Yimin
e8d3b67446
sm9 sign wrappkey encryption 2022-06-10 11:24:25 +08:00
Sun Yimin
337575950e
add endofline 2022-06-07 17:22:59 +08:00
Sun Yimin
7254c055d7
sm9 foundation 2022-06-07 17:13:23 +08:00