142 Commits

Author SHA1 Message Date
Sun Yimin
82ccb95527
sm9,internal/sm9: update comments #314 2025-03-14 15:26:34 +08:00
Sun Yimin
e79aab4935
smx509: better handling of weird encodings #316 2025-03-14 08:44:52 +08:00
Sun Yimin
c32a9849f8
sm9: refactoring #314 2025-03-13 16:50:28 +08:00
Sun Yimin
43ffd49e2f
sm9: refactoring, do not expose bn256 types to caller #314 2025-03-13 13:46:14 +08:00
Sun Yimin
89962cf1e3
smx509: avoid crypto/rand.Int to generate serial number #308 2025-03-04 08:48:18 +08:00
Sun Yimin
2c0f5f68fc
smx509: add support for PKCS8/PKIX X25519 key encodings #210 2025-02-27 11:44:53 +08:00
Sun Yimin
3d4dd002a4
smx509: add new CRL parser, deprecate old one #40 2025-02-27 10:22:19 +08:00
Sun Yimin
9ba88a32a4
smx509: use bytes.Clone 2025-02-27 08:16:07 +08:00
Sun Yimin
50a5e49d38
smx509: properly check for IPv6 hosts in URIs #296 2025-01-17 08:30:27 +08:00
Sun Yimin
bef7f5421e
pkcs7: sign precomputed digest #294 2025-01-14 16:41:03 +08:00
Sun Yimin
e5652b6638
smx509: add wasip1 support #290 2024-12-27 08:07:33 +08:00
Sun Yimin
ac38d8f6aa
cfca: test trustAsia generated csr 2024-12-13 15:37:27 +08:00
Sun Yimin
d2e96cff57
cfca: update test error message 2024-12-13 08:20:48 +08:00
Sun Yimin
1bbcc232db
cfca: test sadk generated csr #286 2024-12-12 17:55:57 +08:00
Sun Yimin
cdf1805d4f
smx509: cfca csr add comments and align tmp publickey encoding 2024-12-12 17:34:12 +08:00
Sun Yimin
3371b7c65c
cfca csr with tmp publickey and parse returned encryption key #286 2024-12-11 08:36:55 +08:00
Sun Yimin
df3db923c6
support cfca certificate request #286 2024-12-10 10:13:51 +08:00
Sun Yimin
a3161b7581
support cfca certificate request #286 2024-12-10 09:01:21 +08:00
Sun Yimin
01b0570c3a
support cfca certificate request #286 2024-12-10 08:57:35 +08:00
Sun Yimin
a599819ef8
cfca: provide cfca envelope message facades #283 2024-12-03 17:53:25 +08:00
Sun Yimin
9fd122e614
x509: generate serial number for nil template SerialNumber #279 2024-11-25 08:41:30 +08:00
Sun Yimin
c9f55b045f
smx509: ParseCertificatePEM validate type 2024-11-19 10:55:41 +08:00
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