Fix invalid assert in CRYPTO_ctr128_encrypt.
As with CRYPTO_ctr128_encrypt_ctr32, NULL in and out are legal in the degenerate case when len is 0. This fixes one of the two failures on the bots. Change-Id: If6016dfc3963d9c06c849fc8eba9908556f66666 Reviewed-on: https://boringssl-review.googlesource.com/4721 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
9b68e72d18
commit
5694b3a84b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user