mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-11-09 14:50:17 +08:00
Remove assertion that ctx.ciphertext_len is 0
Signed-off-by: Ben Taylor <ben.taylor@linaro.org> (cherry picked from commit 3f3d3da789e05f078a4df9995278d3d53e273513)
This commit is contained in:
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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user