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:04:18 +01:00
parent c768f8fc43
commit d2a48e9f60
+1 -1
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 */