Skip to content

Commit 86aa4f6

Browse files
committed
no need to check; bytes_copied + srclen is guaranteed to be less than 6 * 16
1 parent 65f3b13 commit 86aa4f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/fusion.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ static void fastls_encrypt_v(struct st_ptls_aead_context_t *_ctx, void *_output,
12211221
/* slow path, load at most 6 * 16 bytes to encbuf then encrypt in-place */
12221222
size_t bytes_copied = 0;
12231223
do {
1224-
if (srclen >= 16 && bytes_copied < 5 * 16) {
1224+
if (srclen >= 16) {
12251225
_mm_storeu_si128((void *)(encp + bytes_copied), _mm_loadu_si128((void *)src));
12261226
bytes_copied += 16;
12271227
src += 16;

0 commit comments

Comments
 (0)