Quan guanyu

Results 6 issues of Quan guanyu

GMSSL follow the specification《GMT 0024-2014 SSL VPN技术规范》 GMSSL a variant of TLS1.1(RFC4346) Use independent protocol version number 0x0101 Cipher suite using GM algorithm SM2_SM4_SM3 - SM2 for auth - SM4...

acroding this page [https://www.consul.io/api/txn.html](https://www.consul.io/api/txn.html) implement key-value transactions and added ConsulClient support.

增加了跳过证书域名匹配的额外配置 增加了报警协议中文 修复了国密SM2情况下通过构造方法提供证书 增加了对于请求的版本号的检查,在读取clientHello时处理并报错 增加了握手使用的时钟添加版本号 修复了GMSSL模式下数据写入分片1字节问题

- 修复了目前常见的几个BUG: - DER编码前置0问题 - 握手消息签名值格式问题 - alert报警信息相关问题 - 增加了TLCP SOCKET系列接口

以下是一个含有扩展填充2个字节0x00的ASN1 SM2 加密密文 C1C3C2 ``` 3081980220298ED52AE2A0EBA8B7567D54DF41C5F9B310EDFA4A8E15ECCB44EDA94F9F1FC20220116BE33B0833C95D8E5FF9483CD2D7EFF7033C92FE5DEAB6197D809FF1EEE05F042097A90979A6FCEBDE883C2E07E9C286818E694EDE37C3CDAA70E4CD481BE883E00430D62160BB179CB20CE3B5ECA0F5A535BEB6E221566C78FEA92105F71BD37F3F850AD2F86F2D1E35F15E9356557DAC026A0000 ``` ![image](https://user-images.githubusercontent.com/17817790/198237073-756c36f5-7b65-4bde-be6f-d54082f439db.png) ASN1 是 TLV - Tag - Lenght - Value 的方式,理论上来说应该能够解析上述密文,忽略额外填充的0x00 目前该密文在使用在解析时 https://github.com/emmansun/gmsm/blob/9ba3e69efc44cd27ec5f70dd5980131dcf1e8ad2/sm2/sm2.go#L452-L469 将会出现错误 **sm2: invalid asn1 format ciphertext"** 在TLCP应用过程中我发现由于厂家不规范这样的问题频出,作者是否考虑 放宽对格式的校验?

example: ``` 125 0 obj ``` see ``` QITE_pageid ``` object `3621 0 R` is not defined When I use `PDDocument.saveIncremental` to save the document it causes the following error:...