Fix asserts in CRYPTO_ctr128_encrypt_ctr32.
NULL in and out are legal in the degenerate case when len is 0. Change-Id: Ibf0600a4f635a03103b1ae914918fdcf23a75a39 Reviewed-on: https://boringssl-review.googlesource.com/4705 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
bc1fde3206
commit
4a5982813f
@ -163,7 +163,8 @@ void CRYPTO_ctr128_encrypt_ctr32(const uint8_t *in, uint8_t *out,
|
||||
unsigned int *num, ctr128_f func) {
|
||||
unsigned int n, ctr32;
|
||||
|
||||
assert(in && out && key && ecount_buf && num);
|
||||
assert(key && ecount_buf && num);
|
||||
assert(len == 0 || (in && out));
|
||||
assert(*num < 16);
|
||||
|
||||
n = *num;
|
||||
|
Loading…
Reference in New Issue
Block a user