Skip to content

Commit

Permalink
ripemd.c: fix sizes in prototypes, hinted by gcc warnings (sphlib)
Browse files Browse the repository at this point in the history
Related to openwall#4637
  • Loading branch information
AlekseyCherepanov authored and solardiz committed May 21, 2022
1 parent 77f0cee commit 49b4a91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ripemd.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static const sph_u32 IV320[10] = {
* One round of RIPEMD. The data must be aligned for 32-bit access.
*/
static void
ripemd_round(const unsigned char *data, sph_u32 r[5])
ripemd_round(const unsigned char *data, sph_u32 r[4])
{
#if SPH_LITTLE_FAST

Expand Down Expand Up @@ -527,7 +527,7 @@ sph_ripemd_comp(const sph_u32 msg[16], sph_u32 val[4])
* One round of RIPEMD-128. The data must be aligned for 32-bit access.
*/
static void
ripemd128_round(const unsigned char *data, sph_u32 r[5])
ripemd128_round(const unsigned char *data, sph_u32 r[4])
{
#if SPH_LITTLE_FAST

Expand Down Expand Up @@ -576,7 +576,7 @@ void sph_ripemd256_init(void *cc)
}

static void
ripemd256_round(const unsigned char *data, sph_u32 r[10])
ripemd256_round(const unsigned char *data, sph_u32 r[8])
{
#if SPH_LITTLE_FAST

Expand Down

0 comments on commit 49b4a91

Please sign in to comment.