120 Commits

Author SHA1 Message Date
Sun Yimin
7ab7bb6aca
smx509: 兼容OpenSSL3不一致的公钥算法OID 2024-08-27 17:43:59 +08:00
Sun Yimin
2f0f4745d7
smx509: add t.Helper calls to test helpers 2024-08-16 09:23:25 +08:00
Sun Yimin
1b512e5772
internal/cryptotest: add tests for the hash.Hash cipher.BlockMode cipher.Block interfaces 2024-08-02 13:02:25 +08:00
Sun Yimin
0445d16e97
smx509: fix CSRResponse sign certs handle issue 2024-06-18 11:43:20 +08:00
Sun Yimin
1ef4cf9510
smx509: improve test coverage 2024-06-13 17:44:32 +08:00
Sun Yimin
6ba367a255
smx509: support CSRRespose handling 2024-06-12 17:49:37 +08:00
Sun Yimin
74754d50d7
x509: fix test cases, disable sm2withsm3 mixed with others #223 2024-05-23 21:04:30 +08:00
Sun Yimin
8787268d3d
Update x509.go 2024-05-23 20:34:40 +08:00
Sun Yimin
6762238407
x509: rollback some change first #223 2024-05-23 17:49:43 +08:00
Sun Yimin
7c46d7b977
x509: sync with sdk #223 2024-05-23 17:35:56 +08:00
Sun Yimin
57318eaf5b
x509: include OID in duplicate extension error message 2024-05-08 14:35:20 +08:00
Sun Yimin
88ddf3e3d2
smx509: avoid Android root store paths on other Linuxes 2024-03-06 17:36:12 +08:00
Sun Yimin
66c05083bf
smx509: implement SetFallbackRoots #211 2024-03-06 13:02:56 +08:00
Sun Yimin
3a2c7e2c9b
smx509: [sync sdk] crypto/x509: implement AddCertWithConstraint #208 2024-03-06 08:35:14 +08:00
Sun Yimin
25ead7dc1f
smx509: refactor p8 parse and pkix public key parse 2024-01-11 17:45:55 +08:00
Sun Yimin
7db8067549
smx509: can parse openssl v3.1.3 p8 sm2 private key #197 2024-01-09 08:29:18 +08:00
Sun Yimin
5740fe0e1c
add back private key print with %q 2023-12-15 17:47:32 +08:00
Sun Yimin
58d30f6655
sm2: fix bug 2023-12-15 13:14:02 +08:00
Sun Yimin
3d299a6480
x509: optimize the performance of checkSignature #181 2023-11-09 13:03:18 +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
ee35aa68ba
smx509: add example test case for reference #155 2023-09-12 08:44:56 +08:00
Sun Yimin
8041c5e310
sm2: remove CSPRNG usage 2023-06-27 08:57:31 +08:00
Sun Yimin
f3a5d48ed8
properly apply name constrains to roots and intermediates #125 2023-06-01 13:10:54 +08:00
Sun Yimin
fab159f5f0
x509: use the RFC 6125 terminology in the VerifyHostname docs 2023-04-24 09:43:37 +08:00
Sun Yimin
7484123c90
smx509: remove unnecessary !Empty() check 2023-03-31 08:56:24 +08:00
Sun Yimin
6254f0a5cb
sm2: update comments 2023-03-22 10:18:06 +08:00
Sun Yimin
d968b80e5c
Fix sha1 test issue 2023-03-09 13:18:42 +08:00
Sun Yimin
dd8b2f61dd
smx509: ParseTypedECPrivateKey, return real privae key type 2023-02-14 16:03:05 +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
ff2b695500
pkcs8: add example test 2023-02-01 17:28:49 +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
acf6edec18
smx509: include more hints for verification failure 2022-12-02 08:47:39 +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
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
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
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 2022-11-03 11:12:26 +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
emmansun
82326621ee add proxy methods for rsa pkcs1 pub/priv keys 2022-10-30 11:38:17 +08:00
Sun Yimin
4ba1372fa0
update comments 2022-10-24 16:31: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
6a556b26d3
smx509: don't panic marshaling invalid ECDSA keys #81 2022-08-30 10:35:57 +08:00