summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cast
diff options
context:
space:
mode:
authorinoguchi <>2020-01-26 11:49:21 +0000
committerinoguchi <>2020-01-26 11:49:21 +0000
commit41c804ce1e2ae16c6d4a5e7bc90e3d8fda8b3fe7 (patch)
treed08335b6ee9c43b60569b31912696b994df019ac /src/lib/libcrypto/cast
parentded0457dd6ea2e0a30e94fad792130d085e54c85 (diff)
downloadopenbsd-41c804ce1e2ae16c6d4a5e7bc90e3d8fda8b3fe7.tar.gz
openbsd-41c804ce1e2ae16c6d4a5e7bc90e3d8fda8b3fe7.tar.bz2
openbsd-41c804ce1e2ae16c6d4a5e7bc90e3d8fda8b3fe7.zip
Avoid 32 bit right shift with unsigned int in crypto/cast/cast_lcl.h
ok tb@
Diffstat (limited to 'src/lib/libcrypto/cast')
-rw-r--r--src/lib/libcrypto/cast/cast_lcl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/cast/cast_lcl.h b/src/lib/libcrypto/cast/cast_lcl.h
index ad4e2fede9..100ff1f2d2 100644
--- a/src/lib/libcrypto/cast/cast_lcl.h
+++ b/src/lib/libcrypto/cast/cast_lcl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: cast_lcl.h,v 1.11 2015/11/05 21:46:51 miod Exp $ */ 1/* $OpenBSD: cast_lcl.h,v 1.12 2020/01/26 11:49:21 inoguchi Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -145,7 +145,7 @@
145 *((c)++)=(unsigned char)(((l) )&0xff)) 145 *((c)++)=(unsigned char)(((l) )&0xff))
146 146
147/* only invoked with 0 <= n <= 31 */ 147/* only invoked with 0 <= n <= 31 */
148#define ROTL(a,n) ((((a)<<(n))&0xffffffffL)|((a)>>(32-(n)))) 148#define ROTL(a,n) ((((a)<<(n))&0xffffffffL)|((a)>>((32-(n))&31)))
149 149
150#define C_M 0x3fc 150#define C_M 0x3fc
151#define C_0 22L 151#define C_0 22L