summaryrefslogtreecommitdiffstats
path: root/crypto/ecdh
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-10-15 01:17:40 +0100
committerDr. Stephen Henson <steve@openssl.org>2013-10-15 11:33:58 +0100
commit72550c52ed277050cf2819976720a9ac8225efc6 (patch)
tree2841dce88755082cf519003958e44a1ea465f1aa /crypto/ecdh
parenta9d0c56de16b4d5a3c919f35e9bac1b0949ea49d (diff)
Fix warning.
(cherry picked from commit f6983769c1bcd6c3c6b6bbfbbc41848f6dccf127)
Diffstat (limited to 'crypto/ecdh')
-rw-r--r--crypto/ecdh/ech_kdf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ecdh/ech_kdf.c b/crypto/ecdh/ech_kdf.c
index 848b91745f..54caee56d7 100644
--- a/crypto/ecdh/ech_kdf.c
+++ b/crypto/ecdh/ech_kdf.c
@@ -59,8 +59,8 @@
/* Key derivation function from X9.62/SECG */
-
-#define ECDH_KDF_MAX (1L << 31)
+/* Way more than we will ever need */
+#define ECDH_KDF_MAX (1 << 30)
int ECDH_KDF_X9_62(unsigned char *out, size_t outlen,
const unsigned char *Z, size_t Zlen,