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