On Thu, Apr 21, 2022 at 10:53:29PM -0500, Luke Small wrote: > I redownloaded /usr/src. > I made sample code using libcrypto. I won't even compile now. > > Is this some way to prevent user programs from digging into the internal > structures?
EVP_CIPHER_CTX is a private struct (programs using it should only manipulate the pointer). so yes, internal structures are for internal usage only. > I want to reuse the working “iv” for further transactions. Is that not > going to be possible? You should use the public interface for that: EVP_CIPHER_CTX_get_iv() in your case. see the whole man page (man EVP_CIPHER_CTX_get_iv) to get the public interface. -- Sebastien Marie