diff options
Diffstat (limited to 'src/libsodium/crypto_stream/chacha20')
-rw-r--r-- | src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.c b/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.c index 7c7d1a5..d6d943e 100644 --- a/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.c +++ b/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.c @@ -101,7 +101,7 @@ chacha_encrypt_bytes(chacha_ctx *x, const u8 *m, u8 *c, unsigned long long bytes unsigned long long i; if (!bytes) { - return; + return; /* LCOV_EXCL_LINE */ } j0 = x->input[0]; j1 = x->input[1]; @@ -190,10 +190,11 @@ chacha_encrypt_bytes(chacha_ctx *x, const u8 *m, u8 *c, unsigned long long bytes x15 = XOR(x15, U8TO32_LITTLE(m + 60)); j12 = PLUSONE(j12); + /* LCOV_EXCL_START */ if (!j12) { j13 = PLUSONE(j13); - /* stopping at 2^70 bytes per nonce is user's responsibility */ } + /* LCOV_EXCL_STOP */ U32TO8_LITTLE(c + 0, x0); U32TO8_LITTLE(c + 4, x1); |