Rewrite TLS 1.2 as a state machine

This commit is contained in:
Zhi Guan
2026-02-01 20:38:13 +08:00
parent a15e0f34c7
commit 9c58806408
27 changed files with 12984 additions and 1589 deletions

View File

@@ -279,6 +279,10 @@ void sm3_update(SM3_CTX *ctx, const uint8_t *data, size_t data_len)
{
size_t blocks;
if (!data || !data_len) {
return;
}
ctx->num &= 0x3f;
if (ctx->num) {
size_t left = SM3_BLOCK_SIZE - ctx->num;