Commit Graph

1048 Commits

Author SHA1 Message Date
Zhi Guan
823fe11897 Clean TLS code 2026-06-15 11:15:33 +08:00
Zhi Guan
808d22e2a5 Refactor TLS 2026-06-14 23:04:39 +08:00
Zhi Guan
1d8cf6117c Update GHASH 2026-06-14 16:24:30 +08:00
Zhi Guan
25ce3134f8 Update gf128 2026-06-14 16:09:57 +08:00
Zhi Guan
fc1869ba88 Remove SM2 extensions 2026-06-14 15:55:01 +08:00
Zhi Guan
9549de94f9 Update endian.h 2026-06-14 15:45:45 +08:00
Zhi Guan
f6f049256c Fix ZUC out-of-bounds read 2026-06-14 15:36:02 +08:00
Zhi Guan
5c67b5963d Clean code 2026-06-14 15:11:06 +08:00
Zhi Guan
5312311bf3 Clean TLS code 2026-06-14 14:46:41 +08:00
Zhi Guan
ec5705ae29 Update TLS crypto 2026-06-14 10:15:05 +08:00
Zhi Guan
545e6a56f0 Add CCM cipher suites 2026-06-14 00:12:10 +08:00
Zhi Guan
5d12858d41 Clean TLS code 2026-06-13 23:52:29 +08:00
Zhi Guan
a73c303339 Clean cipher local vars 2026-06-13 22:57:20 +08:00
Zhi Guan
c12edeb7b1 Fix SM4 API bugs and change behavior 2026-06-13 22:14:56 +08:00
Zhi Guan
8fded4abc7 Update sm4.c
Prevent sm4_cbc_decrypt_blocks in == out
2026-06-13 20:12:33 +08:00
Zhi Guan
54d9cba0ec Update aes.c 2026-06-13 17:30:45 +08:00
Zhi Guan
9ec15f6012 Merge pull request #1893 from wangtsiao/master
修复 PEM 读取没有限制 base64 解码输出长度的问题
2026-06-13 17:29:42 +08:00
Zhi Guan
da02b6af9d Merge pull request #1899 from wangtsiao/dev/fix_sdf_cbc
修复 SDF CBC 流式解密 IV 未更新问题
2026-06-13 17:27:16 +08:00
Zhi Guan
d679620749 Merge pull request #1895 from wangtsiao/dev/fix_utf8_mask
修复 ASN.1 UTF8String 多字节字符校验
2026-06-13 17:23:55 +08:00
Zhi Guan
ed6a7ff693 Merge pull request #1897 from wangtsiao/dev/fix_leak
用代码中已有的 constant 时间比较替换 memcmp
2026-06-13 17:17:44 +08:00
Zhi Guan
19725f3c54 Update socket wrapper 2026-06-13 15:09:45 +08:00
wangtsiao
f5cd5764a0 fix: update SDF CBC decrypt IV 2026-06-12 19:48:35 -10:00
wangtsiao
3163d7d927 fix: use constant-time comparisons for auth tags 2026-06-12 19:13:30 -10:00
wangtsiao
80081c24eb fix: correct UTF-8 continuation byte validation 2026-06-12 19:03:04 -10:00
wangtsiao
c5674af7f5 fix: bound PEM base64 decoding output 2026-06-12 18:47:07 -10:00
Zhi Guan
23375d1fa3 Unify connection established print 2026-06-13 09:10:09 +08:00
Zhi Guan
99cc3c634b Update CMakeLists.txt 2026-06-13 08:46:26 +08:00
Zhi Guan
81752e910c Update cmake tests with new options 2026-06-13 08:35:24 +08:00
Zhi Guan
211c07eb3e Add tls_init checks 2026-06-13 08:34:55 +08:00
Zhi Guan
dd870b2e59 Update tls_ctx_add_certificate_list_and_key 2026-06-13 08:22:43 +08:00
Zhi Guan
2e0b145342 Unify TLS capabilities 2026-06-13 08:04:20 +08:00
Zhi Guan
d8a9f446b3 Update tls.c 2026-06-13 07:38:55 +08:00
Zhi Guan
99fabca0cb Unify tlcp/tls12/tls13_client behavior 2026-06-13 07:26:51 +08:00
Zhi Guan
b3bc3bb803 Fix TLS shutdown and error output 2026-06-13 07:03:35 +08:00
Zhi Guan
1ed2cfdcc4 Update version scheme 2026-06-12 22:52:53 +08:00
Zhi Guan
2c6ea95cec Fix TLS 1.3 middlebox 2026-06-12 17:03:49 +08:00
Zhi Guan
db8d10356b Update tlcp_help.h 2026-06-12 14:31:23 +08:00
Zhi Guan
c56d7edfab Update TLS -verbose options 2026-06-12 14:23:56 +08:00
Zhi Guan
8b586d4299 Update TLS/TLCP shutdown 2026-06-12 14:09:42 +08:00
Zhi Guan
51883c507a Minor TLS fixes 2026-06-12 13:48:45 +08:00
Zhi Guan
473498ad93 Update TLCP/TLS1.2 state machine 2026-06-12 13:39:42 +08:00
Zhi Guan
6f42fdf31f Update TLS state machine 2026-06-12 13:28:10 +08:00
Zhi Guan
fb93fba5ff Clean TLS_CTX/CONNECT 2026-06-12 12:01:30 +08:00
Zhi Guan
30bc6a2a4c Update TLS commands 2026-06-12 10:55:29 +08:00
Zhi Guan
dbbee6dbe0 Add trusted_ca_keys to TLS1.2/TLCP 2026-06-12 10:24:32 +08:00
Zhi Guan
b1f670c6c6 Add TLCP ALPN support 2026-06-12 09:58:47 +08:00
Zhi Guan
e480e25109 Fix cleanup bug 2026-06-12 09:48:32 +08:00
Zhi Guan
d4be17a01f Update TLCP ServerKeyExchange 2026-06-12 09:40:35 +08:00
Zhi Guan
f37938991c Move TLS1.2/TLCP common functions to tls.c 2026-06-12 09:24:27 +08:00
Zhi Guan
8a90eb9c91 Update TLCP to support SNI 2026-06-12 09:08:49 +08:00