Skip to content

Commit

Permalink
Merge pull request #766 from night1rider/AES_BLOCK_SIZE_opensslcoexist
Browse files Browse the repository at this point in the history
Adding define for wc_aes_block_size
  • Loading branch information
SparkiDev authored Feb 3, 2025
2 parents a267687 + bcbddd0 commit 759bcbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wolfssh/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,11 @@ WOLFSSH_LOCAL const char* IdToName(byte id);
WOLFSSH_LOCAL const char* NameByIndexType(byte type, word32* index);


/* For cases when openssl coexist is used */
#ifdef WC_NO_COMPAT_AES_BLOCK_SIZE
#define AES_BLOCK_SIZE WC_AES_BLOCK_SIZE
#endif

#define STATIC_BUFFER_LEN AES_BLOCK_SIZE
/* This is one AES block size. We always grab one
* block size first to decrypt to find the size of
Expand Down

0 comments on commit 759bcbd

Please sign in to comment.