Sun Yimin
|
58d30f6655
|
sm2: fix bug
|
2023-12-15 13:14:02 +08:00 |
|
Sun Yimin
|
167f0e0b11
|
sm2: #189, #190, #191
|
2023-12-15 13:06:53 +08:00 |
|
Sun Yimin
|
0f3d76705b
|
sm2: fix enveloped key issue #188
|
2023-12-13 13:43:05 +08:00 |
|
Sun Yimin
|
880691746d
|
sm2: makes CalculateSM2Hash public
|
2023-12-12 08:12:28 +08:00 |
|
Sun Yimin
|
17a3dd8d4b
|
change interface{} to any, and remove "+build" build tag #77
|
2023-11-09 08:34:50 +08:00 |
|
Sun Yimin
|
8041c5e310
|
sm2: remove CSPRNG usage
|
2023-06-27 08:57:31 +08:00 |
|
Sun Yimin
|
f81bbd17df
|
sm4: improve arm64 single block performance & CBC decrypt performance
|
2023-06-19 15:51:49 +08:00 |
|
Sun Yimin
|
f32b7e1afc
|
[sync sdk] crypto/internal/bigmod: switch to saturated limbs
|
2023-06-01 10:39:12 +08:00 |
|
Sun Yimin
|
d814868a47
|
pkcs: SM4 oid special handling
|
2023-03-27 13:41:45 +08:00 |
|
Sun Yimin
|
1ed0dbb068
|
sm2: make opts fields private
|
2023-03-22 17:29:16 +08:00 |
|
Sun Yimin
|
6254f0a5cb
|
sm2: update comments
|
2023-03-22 10:18:06 +08:00 |
|
Sun Yimin
|
5d46f47c15
|
add cfca sm2 key and certificate parse
|
2023-03-10 17:09:29 +08:00 |
|
Sun Yimin
|
a47ae96293
|
sm2: SM2EnvelopedKey support
|
2023-02-22 17:37:56 +08:00 |
|
Sun Yimin
|
e3db7656a6
|
add example test for sm2 sm4
|
2023-02-01 11:17:23 +08:00 |
|
Sun Yimin
|
edfb4febdd
|
sm: improve docs and add examples
|
2023-01-31 13:50:14 +08:00 |
|
Sun Yimin
|
24d89df5c0
|
sm2: add a reference test method for non-standard keys construction
|
2023-01-16 11:01:55 +08:00 |
|
Sun Yimin
|
824748a293
|
sm2: use ReadASN1Integer instead of clone private code
|
2022-12-13 11:03:02 +08:00 |
|
Sun Yimin
|
ca18fb55f4
|
sm2: test decrypt error
|
2022-12-06 10:11:02 +08:00 |
|
Sun Yimin
|
32acdfea7e
|
sm2: ErrDecryption, avoid adaptive attacks
|
2022-12-06 08:39:16 +08:00 |
|
Sun Yimin
|
60c3caf9db
|
sm2: align error message
|
2022-12-05 17:12:14 +08:00 |
|
Sun Yimin
|
acf6edec18
|
smx509: include more hints for verification failure
|
2022-12-02 08:47:39 +08:00 |
|
Sun Yimin
|
13f777bb2f
|
sm2: verify validity of signature parameters in Verify
|
2022-12-02 08:41:41 +08:00 |
|
Sun Yimin
|
9b3333f015
|
sm2: supplement test cases and upgrade dependencies
|
2022-11-30 09:00:17 +08:00 |
|
Sun Yimin
|
f95e558482
|
sm2: use equals instead of not equals
|
2022-11-29 10:35:18 +08:00 |
|
Sun Yimin
|
98646cfac0
|
sm9: deprecated sign/verify non-asn1 methods
|
2022-11-28 10:32:17 +08:00 |
|
Sun Yimin
|
aede405cdd
|
sm2: add deprecated comment
|
2022-11-24 10:18:03 +08:00 |
|
Sun Yimin
|
fc8fe5c631
|
sm2/enc: use bigmod and sm2ec instead of math/big and crypto/elliptic
|
2022-11-23 17:34:08 +08:00 |
|
Sun Yimin
|
9c6638f30e
|
fix error path
|
2022-11-23 10:28:36 +08:00 |
|
Sun Yimin
|
3bd57e44f4
|
move file
|
2022-11-23 10:21:29 +08:00 |
|
Sun Yimin
|
a45e13d148
|
sm2: use bigmod and sm2ec instead of math/big and crypto/elliptic
|
2022-11-23 10:20:13 +08:00 |
|
Sun Yimin
|
f1993bc41a
|
sm2,smx509: add encoding paths for SM2 ecdh keys
|
2022-11-21 10:09:57 +08:00 |
|
Sun Yimin
|
984913e228
|
sm2,smx509: add encoding paths for SM2 ecdh keys
|
2022-11-21 09:31:30 +08:00 |
|
Sun Yimin
|
d11a8bc940
|
supplement test coverage
|
2022-11-01 16:08:17 +08:00 |
|
Sun Yimin
|
cf6a25bf31
|
fix bug
|
2022-11-01 15:38:28 +08:00 |
|
Sun Yimin
|
096578c771
|
improve readability
|
2022-11-01 09:49:15 +08:00 |
|
Sun Yimin
|
cae2dbea35
|
use sample test to make sure correctness
|
2022-10-31 14:44:38 +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
|
49f25af421
|
add parallel test
|
2022-09-16 11:48:28 +08:00 |
|
Sun Yimin
|
8f7a7626ba
|
sm2: support ecdh mqv
|
2022-09-02 14:03:51 +08:00 |
|
Sun Yimin
|
fb7041acbc
|
sm2/9: key exchange destroy, fix #80
|
2022-08-30 09:54:29 +08:00 |
|
Sun Yimin
|
d1e4806e06
|
sm2: refactoring, reduce duplicated codes
|
2022-08-25 16:54:30 +08:00 |
|
Sun Yimin
|
8948bdd931
|
sm2: refactoring to reduce duplicated code
|
2022-08-25 16:45:18 +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
|
8f5dcb842e
|
sm2: key exchange refactoring
|
2022-08-24 16:53:11 +08:00 |
|
Sun Yimin
|
21a9793600
|
sm2/sm9: key exchange, support to destroy internal state
|
2022-08-24 15:15:58 +08:00 |
|
Sun Yimin
|
474168700e
|
sm2 ke: make sure the peer pub key using same curve
|
2022-08-19 11:39:02 +08:00 |
|
Sun Yimin
|
1710bdff4a
|
refactoring, rename internal packages
|
2022-08-18 14:49:35 +08:00 |
|
Sun Yimin
|
b96e51e3ff
|
sm2: supplement test cases
|
2022-08-18 10:54:25 +08:00 |
|