Remove assertion that ctx.ciphertext_len is 0

Signed-off-by: Ben Taylor <[email protected]>
(cherry picked from commit 3f3d3da789e05f078a4df9995278d3d53e273513)
This commit is contained in:
Ben Taylor
2026-06-11 14:10:42 +01:00
parent 98b1bf9f2e
commit e1641d00e2
@@ -95,7 +95,6 @@ void chachapoly_update_too_long()
ctx.chacha20_ctx.state[12] = UINT32_MAX;
TEST_EQUAL(mbedtls_chachapoly_update(&ctx, sizeof(input), input, output),
MBEDTLS_ERR_CHACHA20_BAD_INPUT_DATA);
TEST_EQUAL(ctx.ciphertext_len, 0);
exit:
mbedtls_chachapoly_free(&ctx);