Skip to content

Commit

Permalink
win build
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Jun 20, 2024
1 parent 73b14fb commit ad8435d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/windows/bcrypt_aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,9 @@ static struct aws_byte_cursor s_gcm_get_working_slice(
AWS_ZERO_STRUCT(working_cur);
/* If there's overflow, prepend it to the working buffer, then append the data */
if (cipher_impl->overflow.len) {
aws_byte_buf_init(scratch, cipher_impl->cipher.allocator, cipher_impl->overflow.len + data.len);
aws_byte_buf_append(scratch, &cipher_impl->overflow);
aws_byte_buf_init(scratch, cipher_impl->cipher.allocator, cipher_impl->overflow.len + data.len);
struct aws_byte_cursor overflow_cur = aws_byte_cursor_from_buf(&cipher_impl->overflow);
aws_byte_buf_append(scratch, &overflow_cur);
aws_byte_buf_reset(&cipher_impl->overflow, true);
aws_byte_buf_append(scratch, &data);
working_cur = aws_byte_cursor_from_buf(scratch);
Expand Down

0 comments on commit ad8435d

Please sign in to comment.