Fix code style

Signed-off-by: Ben Taylor <[email protected]>
(cherry picked from commit ef055ea1bbfd17de9eeae11c5f90101361fb02df)
This commit is contained in:
Ben Taylor
2026-06-11 14:10:21 +01:00
parent 8b7fca9ede
commit 08accf7b92
+2 -2
View File
@@ -98,8 +98,8 @@ void chacha20_input_len_too_long(void)
TEST_EQUAL(mbedtls_chacha20_update(&ctx, 63, input, output), 0);
TEST_EQUAL(mbedtls_chacha20_update(&ctx, 0, NULL, NULL), 0);
/*Test that zero length update does not break an exhausted context */
TEST_EQUAL(mbedtls_chacha20_update(&ctx, 0, NULL, NULL), 0);
TEST_EQUAL(mbedtls_chacha20_update(&ctx, 1, input, output),
TEST_EQUAL(mbedtls_chacha20_update(&ctx, 0, NULL, NULL), 0);
TEST_EQUAL(mbedtls_chacha20_update(&ctx, 1, input, output),
MBEDTLS_ERR_CHACHA20_BAD_INPUT_DATA);
/* The final counter block is valid, but generating another block is not. */