[PATCH 1/3] OCB: remove 'int64_t' usage
Jussi Kivilinna
jussi.kivilinna at iki.fi
Mon Dec 5 15:14:24 CET 2016
* cipher/cipher-ocb.c (double_block): Use alternative way to generate
sign-bit mask, without 'int64_t'.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
cipher/cipher-ocb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cipher/cipher-ocb.c b/cipher/cipher-ocb.c
index 92260d2..d1f01d5 100644
--- a/cipher/cipher-ocb.c
+++ b/cipher/cipher-ocb.c
@@ -66,7 +66,7 @@ double_block (unsigned char *b)
l = buf_get_be64 (b);
r = buf_get_be64 (b + 8);
- l_0 = (int64_t)l >> 63;
+ l_0 = -(l >> 63);
l = (l + l) ^ (r >> 63);
r = (r + r) ^ (l_0 & 135);
More information about the Gcrypt-devel
mailing list