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 |
|
Sun Yimin
|
9ba3e69efc
|
update error messages
|
2022-10-24 17:32:56 +08:00 |
|
Sun Yimin
|
5db7e63360
|
provide convient methods to parse pkcs8 sm9 keys
|
2022-10-24 16:09:12 +08:00 |
|
Sun Yimin
|
f6af6eb729
|
add gmssl test cases
|
2022-10-24 11:42:26 +08:00 |
|
Sun Yimin
|
d35482a358
|
pkcs8 sm9 master sign/encrypt private key support
|
2022-10-24 11:00:13 +08:00 |
|
emmansun
|
404cd10210
|
support sm9 key format with gmssl
|
2022-10-22 15:49:01 +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
|
05aeed5c34
|
sm9: marshal compressed
|
2022-08-09 10:01:34 +08:00 |
|
Sun Yimin
|
f437855de0
|
add unit test case and fix typo
|
2022-08-03 16:31:02 +08:00 |
|
Sun Yimin
|
818cbc3757
|
misc: clean code
|
2022-07-28 10:01:30 +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
|
24765d0e35
|
supplement unit test cases
|
2022-07-18 10:13:53 +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
|
7bf006ca42
|
go report card
|
2022-07-11 13:27:36 +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 |
|