RE: Migrating from 1.0.2 g to 1.1.1d

2020-02-06 Thread Floodeenjr, Thomas
It looks like I need to call init() after new() m_evpCtx = EVP_ENCODE_CTX_new(); EVP_EncodeInit(m_evpCtx); From: openssl-users On Behalf Of Floodeenjr, Thomas Sent: Thursday, February 6, 2020 2:22 PM To: openssl-users@openssl.org Subject: RE: Migrating from 1.0.2 g to 1.1.1d

RE: Migrating from 1.0.2 g to 1.1.1d

2020-02-06 Thread Floodeenjr, Thomas
With the old init syntax in 1.0.2, EVP_EncodeInit(_evpCtx);, m_evpCtx-> length is initialized to '48'. With the new syntax in 1.1.1, m_evpCtx = EVP_ENCODE_CTX_new();, m_evpCtx-> length is initialized to '0. I believe this causes the while loop to loop forever until INT_MAX, thus overrunning