Increase offset for BIO_f_enc() to avoid problems with overlapping buffers
when decrypting data.
This commit is contained in:
parent
04b304d346
commit
a93b01be57
@ -71,7 +71,7 @@ static int enc_new(BIO *h);
|
|||||||
static int enc_free(BIO *data);
|
static int enc_free(BIO *data);
|
||||||
static long enc_callback_ctrl(BIO *h, int cmd, bio_info_cb *fps);
|
static long enc_callback_ctrl(BIO *h, int cmd, bio_info_cb *fps);
|
||||||
#define ENC_BLOCK_SIZE (1024*4)
|
#define ENC_BLOCK_SIZE (1024*4)
|
||||||
#define BUF_OFFSET EVP_MAX_BLOCK_LENGTH
|
#define BUF_OFFSET (EVP_MAX_BLOCK_LENGTH*2)
|
||||||
|
|
||||||
typedef struct enc_struct
|
typedef struct enc_struct
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user