1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

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 4098a12635
commit 46e2a46490

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 */