723 Commits

Author SHA1 Message Date
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
Sun Yimin
9ba3e69efc
update error messages v0.15.0 2022-10-24 17:32:56 +08:00
Sun Yimin
4ba1372fa0
update comments 2022-10-24 16:31:26 +08:00
Sun Yimin
5db7e63360
provide convient methods to parse pkcs8 sm9 keys 2022-10-24 16:09:12 +08:00
Sun Yimin
a7c36d7f30
supplement gmssl sign master private key test data 2022-10-24 11:45:46 +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
ecdf5fca82
supplement tesst cases 2022-10-21 10:46:18 +08:00
Sun Yimin
0342ada322
add comments and enhance gm validation 2022-10-21 10:22:10 +08:00
Sun Yimin
7f86563f74
update README.md and dependencies 2022-10-20 16:28:58 +08:00
Sun Yimin
afc4750bf0
Sample pseudo random number generator base on DRBG 2022-10-20 15:28:06 +08:00
Sun Yimin
643df78c07
implement ctr drbg 2022-10-20 11:30:20 +08:00
Sun Yimin
f723aa8c66
hash drbg initial version 2022-10-19 09:57:58 +08:00
Sun Yimin
6253b828c7
upgrade dependencies and remove useless code 2022-10-11 13:27:56 +08:00
Sun Yimin
49f25af421
add parallel test 2022-09-16 11:48:28 +08:00
Sun Yimin
0946644542
update readme 2022-09-08 08:56:26 +08:00
Sun Yimin
8f7a7626ba
sm2: support ecdh mqv v0.14.1 2022-09-02 14:03:51 +08:00
Sun Yimin
6a556b26d3
smx509: don't panic marshaling invalid ECDSA keys #81 2022-08-30 10:35:57 +08:00
Sun Yimin
fb7041acbc
sm2/9: key exchange destroy, fix #80 2022-08-30 09:54:29 +08:00
Sun Yimin
3f9e1d5bd9
ecdh: sm2 ECDH initial version v0.14.0 2022-08-26 13:25:56 +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
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
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
35154c8b53
remove useless ci 2022-08-19 15:07:56 +08:00
Sun Yimin
f2245485bc
Merge pull request #78 from emmansun/20221015
Upgrade minimum supported golang version to 1.16
2022-08-19 15:05:45 +08:00