poly1305: fix bug in starts() and add test for it
diff --git a/tests/suites/test_suite_chacha20.function b/tests/suites/test_suite_chacha20.function
index fb3ad3e..bac1ef3 100644
--- a/tests/suites/test_suite_chacha20.function
+++ b/tests/suites/test_suite_chacha20.function
@@ -67,8 +67,8 @@
* Test the streaming API again, piecewise
*/
- /* Don't reset the context of key, in order to test that starts() do the
- * right thing. */
+ /* Don't free/init the context nor set the key again,
+ * in order to test that starts() does the right thing. */
TEST_ASSERT( mbedtls_chacha20_starts( &ctx, nonce_str, counter ) == 0 );
memset( output, 0x00, sizeof( output ) );