Skip to content

Commit

Permalink
remove cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Jun 20, 2024
1 parent fb71397 commit 59c8388
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions source/windows/bcrypt_aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,6 @@ static int s_aes_default_encrypt(
struct aws_byte_buf *out) {
struct aes_bcrypt_cipher *cipher_impl = cipher->impl;

AWS_LOGF_DEBUG(0, "foo %zu", to_encrypt->len);
//if (to_encrypt->len == 0 && cipher_impl->auth_info_ptr == NULL) {
// return AWS_OP_SUCCESS;
//}

size_t predicted_write_length =
cipher_impl->cipher_flags & BCRYPT_BLOCK_PADDING
? to_encrypt->len + (AWS_AES_256_CIPHER_BLOCK_SIZE - (to_encrypt->len % AWS_AES_256_CIPHER_BLOCK_SIZE))
Expand Down Expand Up @@ -433,10 +428,6 @@ static int s_default_aes_decrypt(
struct aws_byte_buf *out) {
struct aes_bcrypt_cipher *cipher_impl = cipher->impl;

//if (to_decrypt->len == 0 && cipher_impl->auth_info_ptr == NULL) {
// return AWS_OP_SUCCESS;
//}

PUCHAR iv = NULL;
ULONG iv_size = 0;

Expand Down

0 comments on commit 59c8388

Please sign in to comment.