- Moved from unsigned long to uint32_t throughout code

This commit is contained in:
Paul Bakker 2012-10-01 14:41:15 +00:00
parent 6adff7497a
commit 5c2364c2ba
34 changed files with 539 additions and 454 deletions

View file

@ -29,6 +29,13 @@
#include <string.h>
#ifdef _MSC_VER
#include <basetsd.h>
typedef UINT32 uint32_t;
#else
#include <inttypes.h>
#endif
#define BLOWFISH_ENCRYPT 1
#define BLOWFISH_DECRYPT 0
#define BLOWFISH_MAX_KEY 448
@ -44,8 +51,8 @@
*/
typedef struct
{
unsigned long P[BLOWFISH_ROUNDS + 2]; /*!< Blowfish round keys */
unsigned long S[4][256]; /*!< key dependent S-boxes */
uint32_t P[BLOWFISH_ROUNDS + 2]; /*!< Blowfish round keys */
uint32_t S[4][256]; /*!< key dependent S-boxes */
}
blowfish_context;