Refine assertion

This commit is contained in:
Max Lv
2017-03-09 11:15:36 +08:00
parent 5cf6476aa7
commit a4bebe3ee9
+1 -1
View File
@@ -477,7 +477,7 @@ aead_chunk_encrypt(cipher_ctx_t *ctx, uint8_t *p, uint8_t *c,
size_t nlen = ctx->cipher->nonce_len;
size_t tlen = ctx->cipher->tag_len;
assert(plen + tlen < CHUNK_SIZE_MASK);
assert(plen <= CHUNK_SIZE_MASK);
int err;
size_t clen;