Skip to content

Commit

Permalink
Use standard stdint uint types.
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapsdz committed Jan 26, 2025
1 parent ffff21f commit a66a4b9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions regress/blowfish.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ main(void)
blf_ctx c;
char key[] = "AAAAA";
char key2[] = "abcdefghijklmnopqrstuvwxyz";
u_int32_t data[10];
u_int32_t data2[] = {0x424c4f57l, 0x46495348l};
u_int16_t i;
uint32_t data[10];
uint32_t data2[] = {0x424c4f57l, 0x46495348l};
uint16_t i;

/* First test */

for (i = 0; i < 10; i++)
data[i] = i;

blf_key(&c, (u_int8_t *) key, 5);
blf_key(&c, (uint8_t *) key, 5);
blf_enc(&c, data, 5);
blf_dec(&c, data, 1);
blf_dec(&c, data + 2, 4);

/* Second test */

blf_key(&c, (u_int8_t *) key2, strlen(key2));
blf_key(&c, (uint8_t *) key2, strlen(key2));
blf_enc(&c, data2, 1);
blf_dec(&c, data2, 1);

Expand Down

0 comments on commit a66a4b9

Please sign in to comment.