Commit Graph

99 Commits

Author SHA1 Message Date
Zhi Guan
8a90eb9c91 Update TLCP to support SNI 2026-06-12 09:08:49 +08:00
Zhi Guan
d999e8879c Update TLS 1.2 GCM 2026-06-11 23:53:42 +08:00
Zhi Guan
6ff18acae3 Add GCM cipher suite to TLS 1.2 2026-06-11 23:19:48 +08:00
Zhi Guan
40e00284a2 Fix tls.c 2026-06-11 21:03:14 +08:00
Zhi Guan
e1c69d5633 Merge TLS API 2026-06-11 14:46:35 +08:00
Zhi Guan
dbe0251872 Add ALPN extension 2026-06-06 15:45:07 +08:00
Zhi Guan
1b8a57c4da Update TLS12 2026-05-29 22:17:09 +08:00
Zhi Guan
093faec214 Update TLS1.2 2026-05-29 11:04:08 +08:00
Zhi Guan
164561ee94 Clean code 2026-05-28 10:00:53 +08:00
Zhi Guan
d08b6948fc Update tls.c 2026-05-27 21:42:16 +08:00
Zhi Guan
711da7985a Fix tls_init bug 2026-05-27 18:17:43 +08:00
Zhi Guan
4df5b2c898 Update tls12, tlcp 2026-05-27 16:52:58 +08:00
Zhi Guan
931c5e39e8 Update TLS 1.3 2026-05-26 21:50:13 +08:00
Zhi Guan
828a93e907 Update TLS 1.3 HelloRetryRequest, add CipherCipherSpec
Use same handshake type of ServerHello, add ChangeCipherSpec, compatible with OpeNSSL
2026-05-24 20:17:43 +08:00
Zhi Guan
290d699336 Update TLS 1.3
KeyUpdate passed.
2026-05-17 11:44:43 +08:00
Zhi Guan
bb94f96fcd Update TLS 1.3
CertificateVerify passed
2026-05-10 15:56:35 +08:00
Zhi Guan
2c72cf84b3 Update TLS 1.3
All tls13_server examples passed.
2026-05-09 13:17:36 +08:00
Zhi Guan
4c54385534 Update TLS 1.3 2026-05-07 20:57:46 +08:00
Zhi Guan
b548e98d34 Update TLS 1.3 2026-04-28 11:50:15 +08:00
Zhi Guan
34698ddc6f Update TLS 1.3 2026-04-21 11:18:25 +08:00
Zhi Guan
0bcffd3734 Update TLS 1.3 2026-04-13 11:34:16 +08:00
Zhi Guan
2e550edc35 Update TLS 1.3 2026-04-12 11:48:15 +08:00
Zhi Guan
3d29d5066d Update TLS 1.3 PSK-only mode 2026-03-28 11:09:26 +08:00
Zhi Guan
5efe2005d4 Update TLS 1.3 PSK 1-RTT 2026-03-23 10:32:16 +08:00
Zhi Guan
0d1acec6df Update TLS 1.3 handshake
Working on HelloRetryRequest, NewSessionTicket
2026-03-21 18:41:46 +08:00
Zhi Guan
ead4caecb7 Update TLS 1.3 state machine 2026-03-17 16:51:12 +08:00
Zhi Guan
3322a5fc7b Update TLS 1.3 2026-02-27 11:02:22 +08:00
Zhi Guan
ee2fa409f2 Update TLCP to state machine 2026-02-27 09:11:49 +08:00
Zhi Guan
9c58806408 Rewrite TLS 1.2 as a state machine 2026-02-01 20:38:13 +08:00
Zhi Guan
47639a9e23 Add X509_KEY to support different public key algos 2026-01-16 17:25:17 +08:00
Zhi Guan
a146cd2ff7 fix ioctlsocket argument 2025-12-09 09:23:46 +08:00
Zhi Guan
a2974a9a8b Update tls.c 2025-12-08 20:45:35 +08:00
Michael Lee
84add811a7 [bugfix] fix win32 incompatible pointer type error and cmake warnings 2025-08-21 14:37:21 +08:00
Zhi Guan
ed6b7f926e Fix tls_set_socket on WIN32 2024-06-13 12:18:27 +08:00
Zhi Guan
926e063353 Fix sm4-cbc iv related bug 2024-05-20 18:02:16 +08:00
Zhi Guan
7f3072e917 Let sm4_cbc_encrypt_blocks update iv
If in == out, then after encryptions the input (i.e. iv) is changed
2024-05-13 21:44:06 +08:00
Zhi Guan
6e8a36c738 Update SM4 CBC API 2024-04-28 17:27:41 +08:00
Zhi Guan
f8fbeddd4f Add SM2_VERIFY_CTX 2024-04-25 08:40:39 +08:00
Simon
350e91af0a 修复Windows编译的问题。
将Windows CI单独拿出来。在Windows环境下编译需要在cmake的时候增加-DWIN32=ON参数。
2024-04-20 12:23:30 +08:00
Zhi Guan
e9bbcf5490 Use z256 and jacobian coordinates as inner presentation of SM2 point 2024-04-18 21:27:00 +08:00
Zhi Guan
bd12c4ef50 Update tls.c 2024-04-15 08:48:40 +08:00
Zhi Guan
8ae03e8105 Add more sm4 modes
Not tested yet
2024-02-10 15:46:59 +08:00
Zhi Guan
69ffa88037 Fix TLS Alert
Alert, ChangeCipherSpec record should be encrypted after handshake
2024-02-06 20:57:27 +08:00
Zhi Guan
9f2bfb5ad0 Add more options to TLS
add `-get` and `-quiet` option to `tlcp_client`
2024-02-05 17:01:09 +08:00
Zhi Guan
3f05cf98c8 Update tls.c
`tls_set_socket` checks whether socket is in blocking mode
2024-02-04 11:40:28 +08:00
Zhi Guan
a5c54cca38 Update tls.c 2024-02-02 11:10:50 +08:00
Zhi Guan
68447f036f Update alert in tls.c 2024-01-31 21:37:53 +08:00
Zhi Guan
f32a9d9b53 Update tls.c 2024-01-31 21:10:43 +08:00
Zhi Guan
6ef810f51f Fix last commit bug in TLS cert_verify 2022-12-28 16:26:43 +08:00
Zhi Guan
18381f52f0 Remove warnings 2022-12-22 22:04:55 +08:00