summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-12-03 21:44:01 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-12-03 21:44:01 +0000
commitdd4eefdb7bfe0898d7debc061b199f0cc2fdd8ce (patch)
treef7e31b4eb48ff55fe10c047708260439c0e66db5
parentfcd3e8e97be2801b2cf1875dbc3c8d949651a291 (diff)
Change EVP_MAXCHUNK so it doesn't wraparound to 0 on some platforms (IP32L64).
-rw-r--r--crypto/evp/evp_locl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/evp_locl.h b/crypto/evp/evp_locl.h
index 94162d6419..6d1753522a 100644
--- a/crypto/evp/evp_locl.h
+++ b/crypto/evp/evp_locl.h
@@ -75,7 +75,7 @@ static int cname##_ecb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const uns
return 1;\
}
-#define EVP_MAXCHUNK ((size_t)1<<(sizeof(long)*8-2))
+#define EVP_MAXCHUNK ((size_t)1<<(sizeof(int)*8-2))
#define BLOCK_CIPHER_func_ofb(cname, cprefix, cbits, kstruct, ksched) \
static int cname##_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) \