Skip to content

Commit

Permalink
kdf: Use u64.
Browse files Browse the repository at this point in the history
* cipher/kdf.c (rotr64): We use u64 in libgcrypt.

--

Signed-off-by: NIIBE Yutaka <[email protected]>
  • Loading branch information
NIIBE Yutaka committed Feb 7, 2022
1 parent a484bd6 commit e257fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cipher/kdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ static u64 fBlaMka (u64 x, u64 y)
return x + y + 2 * (x & m) * (y & m);
}

static u64 rotr64 (uint64_t w, unsigned int c)
static u64 rotr64 (u64 w, unsigned int c)
{
return (w >> c) | (w << (64 - c));
}
Expand Down

0 comments on commit e257fe3

Please sign in to comment.