Replies: 2 comments 3 replies
-
确实,处在golang语言SDK之外,又要尽量保持一致,同时可维护性还要高一点。还有一个主要问题是支持、兼容不同版本的golang SDK。这也是我不想动手改造支持国密tls 1.3的主要原因:改造维护成本太高。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
除了 TLS1.3 (RFC8998) ,更加麻烦的是国密 TLCP (GB/T 38636-2020) 而且 TLS1.3 (RFC8998) 即使支持了,估计也用处不大。 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
比如目标是:
尽量与标准库 x509 包的代码差异最小,方便以后同步代码,
还是:
尽量复用标准库 x509 包,使 smx509 包的代码尽量减少?
以
smx509.ParsePKIXPublicKey
为例,现在是把 oidNamedCurveP256SM2 摘出来单独处理,其余情况调用
x509.ParsePKIXPublicKey()
但因为
smx509.namedCurveFromOID
已经添加支持了oidNamedCurveP256SM2
所以把
x509.ParsePKIXPublicKey
方法体整个复制过来,应该也是可以的。Beta Was this translation helpful? Give feedback.
All reactions