Commit Graph

79 Commits

Author SHA1 Message Date
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
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
zhaoxiaomeng
57c258b418 Update tls.c 2022-11-29 17:36:00 +08:00
zhaoxiaomeng
602d3c8fa6 Update tls.c 2022-11-29 17:18:01 +08:00
zhaoxiaomeng
90a806a46b fix 2022-11-29 16:08:42 +08:00
zhaoxiaomeng
e5cf8e009f Revert "append"
This reverts commit 6a1f110a43.
2022-11-29 15:29:45 +08:00
zhaoxiaomeng
990b3362da Revert "append"
This reverts commit 3af9527dd9.
2022-11-29 15:29:38 +08:00
zhaoxiaomeng
281bf90c10 Revert "append"
This reverts commit 5ad868428a.
2022-11-29 15:29:25 +08:00
zhaoxiaomeng
26a59659d0 Revert "Update tls.c"
This reverts commit 855048f60e.
2022-11-29 15:29:17 +08:00
zhaoxiaomeng
855048f60e Update tls.c 2022-11-29 15:11:32 +08:00
zhaoxiaomeng
5ad868428a append 2022-11-29 14:51:02 +08:00
zhaoxiaomeng
3af9527dd9 append 2022-11-29 14:17:33 +08:00
zhaoxiaomeng
6a1f110a43 append 2022-11-29 12:57:46 +08:00
zhaoxiaomeng
5f8ef35358 fix tls1.3 bug 2022-11-29 12:50:49 +08:00
Zhi Guan
bae6721afa Add socket wrapper 2022-11-01 17:57:31 +08:00
Zhi Guan
87081c4ca4 Revert "Add socket wrapper"
This reverts commit 85e745121f.
2022-11-01 17:51:26 +08:00
Zhi Guan
85e745121f Add socket wrapper 2022-11-01 17:49:48 +08:00
Zhi Guan
5e2381f122 Remove warnings 2022-10-13 17:45:06 +08:00
Zhi Guan
dbc5b316b5 Remove warnings 2022-10-13 16:16:42 +08:00
Zhi Guan
e25f8b945e Fix MSVC warnings 2022-10-12 18:05:05 +08:00
Zhi Guan
5e38788659 Add Windows and Visual Studio support 2022-10-03 11:36:03 +08:00