From 59c83885526083fa8440b148fef4695696363d96 Mon Sep 17 00:00:00 2001 From: DmitriyMusatkin Date: Thu, 20 Jun 2024 01:00:13 -0700 Subject: [PATCH] remove cruft --- source/windows/bcrypt_aes.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/source/windows/bcrypt_aes.c b/source/windows/bcrypt_aes.c index ec459f46..f313f041 100644 --- a/source/windows/bcrypt_aes.c +++ b/source/windows/bcrypt_aes.c @@ -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)) @@ -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;