Re: [openssl-users] Two questions on OpenSSL EVP API

2018-12-19 Thread Richard Levitte
In message <329575d84ff8c598faadec8736a634b318ffb814.ca...@mad-scientist.net> on Tue, 18 Dec 2018 20:54:30 -0500, Paul Smith said: > Hi all; I'm working with OpenSSL 1.1.1a, using the EVP interface to > encrypt/decrypt with various ciphers/modes. > > I had a couple of questions: > > > First,

Re: [openssl-users] Two questions on OpenSSL EVP API

2018-12-18 Thread Paul Smith
On Wed, 2018-12-19 at 08:57 +0300, Dmitry Belyavsky wrote: > > I would have thought that the true maximum would be round-up(inl, > > cipher_block_size); that is, for inl values 1-15 you'd get 16 > > bytes, and for inl values 16-31 you'd get 32 bytes, etc. (I'm not > > actually sure whether inl of 1

Re: [openssl-users] Two questions on OpenSSL EVP API

2018-12-18 Thread Dmitry Belyavsky
Hello Paul, On Wed, Dec 19, 2018 at 6:02 AM Paul Smith wrote: > Hi all; I'm working with OpenSSL 1.1.1a, using the EVP interface to > encrypt/decrypt with various ciphers/modes. > > I had a couple of questions: > > > First, the encrypt update docs say: > > > the amount of data written may be any