54 Commits

Author SHA1 Message Date
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
25ead7dc1f
smx509: refactor p8 parse and pkix public key parse 2024-01-11 17:45:55 +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
6254f0a5cb
sm2: update comments 2023-03-22 10:18:06 +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
72bb569234
smx509: clarify that CheckSignatureFrom and CheckSignature are low-level API 2023-01-18 11:07:03 +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
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
68e297f49b
remove unused member Raw from certificate, #95 2022-11-15 11:09:01 +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
8b25009e6f
respect GODEBUG changes for allowing SHA1 certificates #93 2022-11-02 16:42:50 +08:00
Sun Yimin
6a556b26d3
smx509: don't panic marshaling invalid ECDSA keys #81 2022-08-30 10:35:57 +08:00
Emman
eb94980db3 run "gofmt -s -w" 2022-07-15 16:42:39 +08:00
Sun Yimin
7e81d05ce9
[sync] crypto/x509: restrict CRL number to <=20 octets #69 2022-07-15 10:25:53 +08:00
Sun Yimin
60f734b82c
disable signing with MD5WithRSA #56 2022-05-13 08:22:35 +08:00
Emman
41d0934ef4 crypto/x509: revert serial length restriction 2022-04-22 08:37:49 +08:00
Emman
64f522ea1b Revert "#43, crypto/x509: don't allow too long serials"
This reverts commit b3f10b9a4cfeb8c384282f3e61aaf7356efab636.

# Conflicts:
#	smx509/x509.go
#	smx509/x509_test.go
2022-04-22 08:28:12 +08:00
Emman
ca98bd6f5c crypto/x509: reject duplicate extensions #48 2022-04-19 16:29:41 +08:00
emmansun
77f61fce9c crypto/x509: don't create certs with negative serials #47 2022-04-17 09:37:03 +08:00
Emman
155ef2943d #44, crypto/x509: omit empty extensions SEQUENCE 2022-04-15 11:05:14 +08:00
Emman
b3f10b9a4c #43, crypto/x509: don't allow too long serials 2022-04-15 11:01:11 +08:00
Emman
db4ee8585a expose type cast method 2022-04-13 09:41:38 +08:00
Emman
97217e8a68 crypto/x509: only disable SHA-1 verification for certificates 2022-04-11 17:33:40 +08:00
Emman
0357a17c0a crypto/x509: return err ans1.Marshal gives an error 2022-03-21 10:13:40 +08:00
Emman
2fa225552f sync upstream #25 2022-02-09 13:03:32 +08:00
徐胖
40159e6542 [X509] simplify ParsePKIXPublicKey 2022-02-09 09:33:48 +08:00
徐胖
e5076b0dfc [X509] polish 2022-02-08 19:14:07 +08:00
徐胖
03f6b2c30e [X509] polish 2022-02-08 18:51:39 +08:00
徐胖
25e6d9c5fe [X509] sync upstream 2022-02-08 16:41:59 +08:00
Emman
7dec383b16 align format 2022-01-21 11:24:10 +08:00
徐胖
a6a596c3f9 Alias x509 types 2022-01-20 18:35:16 +08:00
徐胖
b0a5a1c74a Alias x509 types 2022-01-20 18:15:26 +08:00
徐胖
f3a1eab5fe Alias x509 types 2022-01-20 18:09:38 +08:00
徐胖
fc37929456 Alias x509 types 2022-01-20 17:54:06 +08:00
徐胖
f98e80a8d6 Alias x509 types
Alias x509 types
2022-01-20 17:46:00 +08:00
Emman
f47260760b align x509 implementation 2021-12-03 15:12:27 +08:00
Emman
aff4830dd8 golang version 1.4 is no longer supported 2021-12-02 17:14:50 +08:00
Emman
d6e38e0a21 MAGIC - fix 1.4 issue 2021-06-29 09:51:00 +08:00
Emman
0469562903 MAGIC - fix 2021-06-28 15:34:53 +08:00
Emman
bdc049b882 MAGIC - refactoring 2021-06-28 11:20:47 +08:00
Emman
99767f315f MAGIC - disable go1.5+ functions first 2021-06-11 09:34:45 +08:00
Emman
972b8f2589 MAGIC - add proxy functions 2021-06-10 13:40:51 +08:00
Emman
06b18a0b23 MAGIC - Upgrade, align Sign usage 2021-06-09 11:30:05 +08:00
Emman
6ef7234916 MAGIC - upgrade 2021-06-08 11:45:40 +08:00
emmansun
6ab6b29261 MAGIC - align code order 2021-02-16 21:32:58 +08:00