Zhi Guan
|
dc80fea1f6
|
Update CRL related
to be continue ...
|
2023-01-17 00:43:36 +08:00 |
|
Zhi Guan
|
e3a0f73e0e
|
Remove warnings
|
2023-01-15 21:02:25 +08:00 |
|
Zhi Guan
|
4b75346983
|
Refine ASN.1 functions
|
2023-01-15 11:59:53 +08:00 |
|
Zhi Guan
|
b858b01d39
|
Refine ASN.1 functions
|
2023-01-14 19:07:03 +08:00 |
|
Zhi Guan
|
e54b4ae182
|
Add checking to ASN.1 IA5, UTF8, Printable strings
|
2023-01-13 17:20:09 +08:00 |
|
Zhi Guan
|
fd88d8cad6
|
Update SM2 ecdh api
|
2023-01-13 09:40:32 +08:00 |
|
Zhi Guan
|
c932069224
|
Update SM2 lib
Add more checks
Rename _ex functions to _fixlen
Move extensions to sm2_recover.c
|
2023-01-13 01:44:55 +08:00 |
|
Zhi Guan
|
2f19fc3067
|
Update X.509 validation and fix TLS 1.3 chain verify
|
2023-01-11 15:29:22 +08:00 |
|
Zhi Guan
|
167f2c0c33
|
Update x509_cer.c
|
2023-01-11 14:20:55 +08:00 |
|
Zhi Guan
|
320df276c8
|
Update x509_cer.c
|
2023-01-11 14:19:42 +08:00 |
|
Zhi Guan
|
adfa3aaf60
|
Add functions for SEQUENCE OF
SEQUENCE SIZE (1..n) OF <type>
Always check that SEQUENCE OF is not empty.
|
2023-01-11 14:19:37 +08:00 |
|
Zhi Guan
|
4ac1abb2a6
|
Add X.509 validation and auto UTF8 DN
|
2023-01-10 23:47:27 +08:00 |
|
Zhi Guan
|
5c809e0b37
|
Update X.509 Path
Add basicConstraints and depth validation
|
2023-01-10 12:10:15 +08:00 |
|
Zhi Guan
|
4dbf32fd6a
|
Update X.509 Path Validation
To be continue ...
|
2023-01-10 00:08:13 +08:00 |
|
Zhi Guan
|
cdd57c6385
|
Update X509
|
2023-01-09 18:33:17 +08:00 |
|
Zhi Guan
|
4b100b38d1
|
Update ASN.1 PrintableString functions
|
2023-01-09 18:13:59 +08:00 |
|
Zhi Guan
|
a8dd65cf1c
|
And soft RNG to cmake
|
2022-12-30 14:53:20 +08:00 |
|
Zhi Guan
|
a7251b7e06
|
Merge pull request #1387 from Indawn/sm4_rng_edit
SM4_RNG_Update增加异或
|
2022-12-30 14:38:17 +08:00 |
|
Zhi Guan
|
dc7b9e68ec
|
Update SM2 Extensions
Arrange source files
|
2022-12-30 12:46:47 +08:00 |
|
Zhi Guan
|
7be0df2b82
|
Support PEM with Windows-style newline
|
2022-12-30 10:37:50 +08:00 |
|
Zhi Guan
|
8ff829dbcd
|
Fix a typical error
When call `foo(type *ret)`,always use `type` to receive the return value.
|
2022-12-29 18:13:57 +08:00 |
|
Zhi Guan
|
eb06a2e200
|
Fix SM4 AESNI+AVX CTR
|
2022-12-29 17:51:32 +08:00 |
|
Zhi Guan
|
2aa4f5b747
|
Enable SM3 AVX+BMI2
|
2022-12-29 15:06:29 +08:00 |
|
Zhi Guan
|
70f6a42561
|
Remove warnings on WIN32
|
2022-12-28 23:37:30 +08:00 |
|
Zhi Guan
|
49962a267f
|
Fix return value and secret clean bug
|
2022-12-28 16:46:55 +08:00 |
|
Zhi Guan
|
6ef810f51f
|
Fix last commit bug in TLS cert_verify
|
2022-12-28 16:26:43 +08:00 |
|
Indawn
|
697249efe2
|
sm4_rng_reseed增加:重置输出计数和最近输出时间
|
2022-12-28 15:26:58 +08:00 |
|
Zhi Guan
|
218b82e3fa
|
Fix tlcp bug of last commit
|
2022-12-28 12:26:26 +08:00 |
|
Zhi Guan
|
c8c8bef8bd
|
Merge pull request #1361 from movie0125/TLS1.1-addlen
support connect demo.gmssl.cn:1443
|
2022-12-28 12:16:13 +08:00 |
|
Indawn
|
5b4622ae10
|
SM4_RNG_Update增加异或
|
2022-12-27 18:55:27 +08:00 |
|
Zhi Guan
|
616b5ecb06
|
Support DLL in MSVC
|
2022-12-27 17:23:56 +08:00 |
|
Zhi Guan
|
6803910428
|
Fix asn1_bit_string_from_der_ex bug
from https://github.com/vita1984
文件:asn1.c
函数名:asn1_bit_string_from_der_ex
BUG描述:nbits的值没有减去unused_bits部分的值导致nbits值错误
复现方式:
ASN hex值:03 02 06 aa
返回值照理应该是2bit。但当前函数实际返回8bit。
修改方式:
原代码:
-- *nbits = (len - 1) << 3;
修改为:
*nbits = (((len - 1) << 3) - unused_bits);
建议把unused_bits的int类型修改为size_t类型
|
2022-12-27 17:01:10 +08:00 |
|
Zhi Guan
|
8d6ab311f0
|
Remove Warnings
|
2022-12-27 14:41:58 +08:00 |
|
Zhi Guan
|
7aec17e140
|
Fix ASN.1 Time
|
2022-12-27 14:35:11 +08:00 |
|
Zhi Guan
|
27e9c56bc1
|
Update ASN.1 Time
|
2022-12-27 13:55:32 +08:00 |
|
Zhi Guan
|
0eb4bd9c1d
|
Fix export symbol bug in MSVC
|
2022-12-24 10:50:44 +08:00 |
|
Zhi Guan
|
00bdecf42b
|
Merge pull request #1360 from movie0125/master
fix: pem read eof with not \n
|
2022-12-22 23:03:54 +08:00 |
|
Zhi Guan
|
765a90815b
|
Fix sm2_bn_from_asn1_integer bug
|
2022-12-22 22:15:21 +08:00 |
|
Zhi Guan
|
18381f52f0
|
Remove warnings
|
2022-12-22 22:04:55 +08:00 |
|
Zhi Guan
|
34ad2a61de
|
Use own time functions
|
2022-12-22 21:50:06 +08:00 |
|
Zhi Guan
|
4bacf39790
|
Fix rand_bytes in Android
|
2022-12-22 21:32:06 +08:00 |
|
Zhi Guan
|
9ce7a54649
|
Update rand_bytes()
|
2022-12-22 17:08:50 +08:00 |
|
Zhi Guan
|
950ef49fb6
|
Add SM3 AVX2
|
2022-12-22 14:38:02 +08:00 |
|
Zhi Guan
|
d48b7d916b
|
Add SM4 RNG
|
2022-12-22 14:31:23 +08:00 |
|
Zhi Guan
|
462b7c2f69
|
Add SM3 RNG
|
2022-12-22 14:30:35 +08:00 |
|
Zhi Guan
|
fe0712090d
|
Update gf128_avx.c
|
2022-12-22 10:27:46 +08:00 |
|
Zhi Guan
|
868f197f09
|
Update SM2-ElGamal
|
2022-12-13 11:54:02 +08:00 |
|
Zhi Guan
|
cce95d613a
|
Revert "Merge pull request #1373 from guanzhi/bug-fix"
This reverts commit 5b5ca85b7b, reversing
changes made to 0485d1bcd5.
|
2022-12-13 11:35:10 +08:00 |
|
Zhi Guan
|
e78862d4bd
|
Merge branch 'master' into bug-fix
|
2022-12-13 11:32:59 +08:00 |
|
zhaoxiaomeng
|
57c258b418
|
Update tls.c
|
2022-11-29 17:36:00 +08:00 |
|