Re: [openssl-users] EVP_EncryptUpdate and EVP_CIPHER callback do_cipher

2016-04-18 Thread Dmitry Belyavsky
Dear Matt, On Mon, Apr 18, 2016 at 6:00 PM, Matt Caswell wrote: > > > On 18/04/16 15:55, Dmitry Belyavsky wrote: > > Hello, > > > > Could anybody explain how to deal with the output length in the > > EVP_EncryptUpdate? > > > > The function EVP_EncryptUpdate has the outl output parameter, which i

Re: [openssl-users] EVP_EncryptUpdate and EVP_CIPHER callback do_cipher

2016-04-18 Thread Matt Caswell
On 18/04/16 15:55, Dmitry Belyavsky wrote: > Hello, > > Could anybody explain how to deal with the output length in the > EVP_EncryptUpdate? > > The function EVP_EncryptUpdate has the outl output parameter, which is > designed for returning the length of the resulting ciphertext. Then > interna

[openssl-users] EVP_EncryptUpdate and EVP_CIPHER callback do_cipher

2016-04-18 Thread Dmitry Belyavsky
Hello, Could anybody explain how to deal with the output length in the EVP_EncryptUpdate? The function EVP_EncryptUpdate has the outl output parameter, which is designed for returning the length of the resulting ciphertext. Then internally it calls the do_cipher callback which does not take such