[GitHub] vanzin commented on issue #92: OpenSSL 1.1.0 updates with backward compatibility for OpenSSL 1.0.2 and 1.0.1

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] vanzin commented on issue #92: OpenSSL 1.1.0 updates with backward compatibility for OpenSSL 1.0.2 and 1.0.1

GitBox
vanzin commented on issue #92: OpenSSL 1.1.0 updates with backward compatibility for OpenSSL 1.0.2 and 1.0.1
URL: https://github.com/apache/commons-crypto/pull/92#issuecomment-461553133
 
 
   If I understand `context->encrypt` correctly, it just tracks whether the context is being used for encryption or decryption, right?
   
   If that's the case, you could stash that information in the `EVP_CTX_Wrapper` created by the commons-crypto library. Set it in `Java_org_apache_commons_crypto_cipher_OpenSslNative_init`, and change some internal functions to take the wrapper instead of the OpenSSL context directly.
   
   Does that solve your problem?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]