secretstream test: provide additional data to lift ambiguity on what is being tested

Spotted by @emilbayes - Thanks!
This commit is contained in:
Frank Denis 2017-11-26 22:02:26 +01:00
parent c768f8fc43
commit d2a48e9f60

View File

@ -113,7 +113,7 @@ main(void)
ret = crypto_secretstream_xchacha20poly1305_pull
(state, m3, NULL, &tag,
c3, m3_len + crypto_secretstream_xchacha20poly1305_ABYTES, NULL, 0);
c3, m3_len + crypto_secretstream_xchacha20poly1305_ABYTES, ad, ad_len);
assert(ret == -1);
/* previous without a tag */