Change EVP_MAXCHUNK so it doesn't wraparound to 0 on some platforms (IP32L64).

This commit is contained in:
Dr. Stephen Henson 2011-12-03 21:44:01 +00:00
parent fcd3e8e97b
commit dd4eefdb7b

View file

@ -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) \