mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-02 06:57:24 +00:00
Fix code style
Signed-off-by: Ben Taylor <[email protected]> (cherry picked from commit ef055ea1bbfd17de9eeae11c5f90101361fb02df)
This commit is contained in:
@@ -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, 63, input, output), 0);
|
||||||
TEST_EQUAL(mbedtls_chacha20_update(&ctx, 0, NULL, NULL), 0);
|
TEST_EQUAL(mbedtls_chacha20_update(&ctx, 0, NULL, NULL), 0);
|
||||||
/*Test that zero length update does not break an exhausted context */
|
/*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, 0, NULL, NULL), 0);
|
||||||
TEST_EQUAL(mbedtls_chacha20_update(&ctx, 1, input, output),
|
TEST_EQUAL(mbedtls_chacha20_update(&ctx, 1, input, output),
|
||||||
MBEDTLS_ERR_CHACHA20_BAD_INPUT_DATA);
|
MBEDTLS_ERR_CHACHA20_BAD_INPUT_DATA);
|
||||||
|
|
||||||
/* The final counter block is valid, but generating another block is not. */
|
/* The final counter block is valid, but generating another block is not. */
|
||||||
|
|||||||
Reference in New Issue
Block a user