summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2022-02-07 11:10:57 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2022-02-14 15:15:22 +0900
commit6683007d696dfe64640dc741c4332784ec246388 (patch)
tree9908f1b4e341a3abbdff06429ebbd482df10396c
parentffaef0be613121d3ee37867d82932a7a30c2bc6d (diff)
downloadlibgcrypt-6683007d696dfe64640dc741c4332784ec246388.tar.gz
kdf: Use u64.
* cipher/kdf.c (rotr64): We use u64 in libgcrypt. -- Cherry-picked the master commit of: e257fe39b8ffafa3b1fc72b00db1ea43d29c9983 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
-rw-r--r--cipher/kdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/kdf.c b/cipher/kdf.c
index 50a1bf99..edff5597 100644
--- a/cipher/kdf.c
+++ b/cipher/kdf.c
@@ -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));
}