summaryrefslogtreecommitdiffstats
path: root/src/crypto/modes/ctr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/modes/ctr.c')
-rw-r--r--src/crypto/modes/ctr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crypto/modes/ctr.c b/src/crypto/modes/ctr.c
index 306b6f7..64062b2 100644
--- a/src/crypto/modes/ctr.c
+++ b/src/crypto/modes/ctr.c
@@ -88,7 +88,8 @@ void CRYPTO_ctr128_encrypt(const uint8_t *in, uint8_t *out, size_t len,
block128_f block) {
unsigned int n;
- assert(in && out && key && ecount_buf && num);
+ assert(key && ecount_buf && num);
+ assert(len == 0 || (in && out));
assert(*num < 16);
assert((16 % sizeof(size_t)) == 0);