mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
secretstream test: don't pull twice if we don't test with AD
This commit is contained in:
parent
3c8a7f17f0
commit
00660d79b9
@ -95,10 +95,10 @@ main(void)
|
||||
assert(tag == 0);
|
||||
assert(memcmp(m2, m2_, m2_len) == 0);
|
||||
|
||||
if (ad_len > 0) {
|
||||
ret = crypto_secretstream_xchacha20poly1305_pull
|
||||
(state, m3, NULL, &tag,
|
||||
c3, m3_len + crypto_secretstream_xchacha20poly1305_ABYTES, NULL, 0);
|
||||
if (ad_len > 0) {
|
||||
assert(ret == -1);
|
||||
}
|
||||
ret = crypto_secretstream_xchacha20poly1305_pull
|
||||
|
Loading…
Reference in New Issue
Block a user