715 Commits

Author SHA1 Message Date
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 v0.15.6 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
cf0c739dcf
smx509: change CreateCertificate's template and parent parameter type to any 2023-02-03 10:25:03 +08:00
Sun Yimin
cb1e23a776
add example test for drbg, zuc 2023-02-02 15:58:31 +08:00
Sun Yimin
a2d54159ad
add example test for sm3 sm4 pkcs8 2023-02-02 11:45:57 +08:00
Sun Yimin
5b806c85fe
pkcs8: fix comments 2023-02-01 17:34:42 +08:00
Sun Yimin
ff2b695500
pkcs8: add example test 2023-02-01 17:28:49 +08:00
Sun Yimin
e3db7656a6
add example test for sm2 sm4 2023-02-01 11:17:23 +08:00
Sun Yimin
9c8b345630
Create dependabot.yml 2023-01-31 14:11:13 +08:00
Sun Yimin
edfb4febdd
sm: improve docs and add examples 2023-01-31 13:50:14 +08:00
Sun Yimin
72bb569234
smx509: clarify that CheckSignatureFrom and CheckSignature are low-level API 2023-01-18 11:07:03 +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 v0.15.5 2022-12-13 11:03:02 +08:00
Sun Yimin
5c12b08cd5
upgrade dependencies 2022-12-08 11:00:47 +08:00
Sun Yimin
ca18fb55f4
sm2: test decrypt error 2022-12-06 10:11:02 +08:00
Sun Yimin
97e419809e
sm9: ErrDecryption, avoid adaptive attacks 2022-12-06 08:54:53 +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
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
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 v0.15.4 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
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
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
200a785d29
change build tag generic to purego & import nat package 2022-11-22 11:02:37 +08:00
Sun Yimin
57882bbdbc
sm3: reduce Write calls in Sum 2022-11-22 08:42:17 +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
9805aa448a
x509: create CRLs with Issuer.RawSubject 2022-11-18 11:45:46 +08:00
Sun Yimin
7448a5de1e
ecdh: format sm2 curve constans 2022-11-18 11:24:06 +08:00
Sun Yimin
17b873a345
x509: Reallow duplicate attributes in CSRs. 2022-11-18 10:43:39 +08:00
Sun Yimin
94087a6660
x509: Reallow duplicate attributes in CSRs. 2022-11-18 10:28:22 +08:00
Sun Yimin
289bfe16c0
x509: add support for PKCS8/PKIX X25519 key encodings preparation 2022-11-18 10:21:25 +08:00
Sun Yimin
6c7ddbb206
ecdh: move ECDH method to PrivateKey 2022-11-18 09:43:51 +08:00
Sun Yimin
c4540b0c31
add name constraints test 2022-11-15 14:48:49 +08:00
Sun Yimin
68e297f49b
remove unused member Raw from certificate, #95 2022-11-15 11:09:01 +08:00
Sun Yimin
8f6804d73f
upgrade dependencies v0.15.3 2022-11-15 09:24:44 +08:00