summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-11-05 21:46:51 +0000
committermiod <miod@openbsd.org>2015-11-05 21:46:51 +0000
commitb129a4e467f267f626f34eb4c3abbe41bca4d631 (patch)
tree61da0718717150966c0a066853160d1d2f1f4ae8 /lib/libssl/src
parentCleanup includes. (diff)
downloadwireguard-openbsd-b129a4e467f267f626f34eb4c3abbe41bca4d631.tar.xz
wireguard-openbsd-b129a4e467f267f626f34eb4c3abbe41bca4d631.zip
Mention ROTL() is always invoked with a proper shift value, due to the way the
CAST_KEY is constructed. This is expected to reduce blood pressure in auditors.
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/crypto/cast/cast_lcl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/src/crypto/cast/cast_lcl.h b/lib/libssl/src/crypto/cast/cast_lcl.h
index 6ae6c23d714..ad4e2fede9f 100644
--- a/lib/libssl/src/crypto/cast/cast_lcl.h
+++ b/lib/libssl/src/crypto/cast/cast_lcl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cast_lcl.h,v 1.10 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: cast_lcl.h,v 1.11 2015/11/05 21:46:51 miod Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -144,6 +144,7 @@
*((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
*((c)++)=(unsigned char)(((l) )&0xff))
+/* only invoked with 0 <= n <= 31 */
#define ROTL(a,n) ((((a)<<(n))&0xffffffffL)|((a)>>(32-(n))))
#define C_M 0x3fc