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 |
|
Sun Yimin
|
b7c636b87d
|
export ParseName for tls/tlcp to parse certificate authorities
|
2022-11-09 16:18:08 +08:00 |
|
Sun Yimin
|
7490af1dca
|
review x509 and readme
v0.15.2
|
2022-11-03 11:12:26 +08:00 |
|
Sun Yimin
|
4f5968f7ce
|
add disclaimer
|
2022-11-03 09:41:36 +08:00 |
|
Sun Yimin
|
1ce7714cc9
|
rollback first #93
|
2022-11-02 17:11:18 +08:00 |
|
Sun Yimin
|
fd940fcd06
|
fix failed case for golang < 1.18.x
|
2022-11-02 16:56:06 +08:00 |
|
Sun Yimin
|
8b25009e6f
|
respect GODEBUG changes for allowing SHA1 certificates #93
|
2022-11-02 16:42:50 +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
|
82326621ee
|
add proxy methods for rsa pkcs1 pub/priv keys
|
2022-10-30 11:38:17 +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
v0.15.1
|
2022-10-28 09:31:41 +08:00 |
|