Two questions, would it be good to use these named args in the three other TestChaCha20Poly1305AEAD()
calls in this file, and name the args according to the called function (I’m not sure which is better here), e.g. something like
0@@ -692,13 +692,16 @@ BOOST_AUTO_TEST_CASE(chacha20_poly1305_aead_testvector)
1 "0000000000000000000000000000000000000000000000000000000000000000",
2 "0000000000000000000000000000000000000000000000000000000000000000", "", "", "");
3
4- TestChaCha20Poly1305AEAD(true, 0,
5- /* m */ "0000000000000000000000000000000000000000000000000000000000000000",
6- /* k1 (AAD) */ "0000000000000000000000000000000000000000000000000000000000000000",
7- /* k2 (payload) */ "0000000000000000000000000000000000000000000000000000000000000000",
8- /* AAD keystream */ "76b8e0ada0f13d90405d6ae55386bd28bdd219b8a08ded1aa836efcc8b770dc7da41597c5157488d7724e03fb8d84a376a43b8f41518a11cc387b669b2ee6586",
9- /* encrypted message & MAC */ "76b8e09f07e7be5551387a98ba977c732d080dcb0f29a048e3656912c6533e32d2fc11829c1b6c1df1f551cd6131ff08",
10- /* encrypted message & MAC at sequence 999 */ "b0a03d5bd2855d60699e7d3a3133fa47be740fe4e4c1f967555e2d9271f31c3aaa7aa16ec62c5e24f040c08bb20c3598");
11+ TestChaCha20Poly1305AEAD(
12+ /*must_succeed=*/true,
13+ /*expected_aad_length=*/0,
14+ /*hex_m=*/"0000000000000000000000000000000000000000000000000000000000000000",
15+ /*hex_k1=*/"0000000000000000000000000000000000000000000000000000000000000000",
16+ /*hex_k2=*/"0000000000000000000000000000000000000000000000000000000000000000",
17+ /*hex_aad_keystream=*/"76b8e0ada0f13d90405d6ae55386bd28bdd219b8a08ded1aa836efcc8b770dc7da41597c5157488d7724e03fb8d84a376a43b8f41518a11cc387b669b2ee6586",
18+ /*hex_encrypted_message=*/"76b8e09f07e7be5551387a98ba977c732d080dcb0f29a048e3656912c6533e32d2fc11829c1b6c1df1f551cd6131ff08",
19+ /*hex_encrypted_message_seq_999=*/"b0a03d5bd2855d60699e7d3a3133fa47be740fe4e4c1f967555e2d9271f31c3aaa7aa16ec62c5e24f040c08bb20c3598");
20+
21 TestChaCha20Poly1305AEAD(true, 1,