Re: libcrypto functionality in 7.0 won't work in 7.1.

2022-04-21 Thread Sebastien Marie
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



Re: libcrypto functionality in 7.0 won't work in 7.1.

2022-04-21 Thread Luke Small
It fails on the memcpy().

On Thu, Apr 21, 2022 at 10:53 PM 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?
>
> I want to reuse the working “iv” for further transactions. Is that not
> going to be possible?
>
> If you finish a transmission and start again, will you be able to reuse
> the working iv, or will it default to the original?
>
> -Luke
> --
> -Luke
>