Improve documentation Poco::Crypto::RSAKey & Poco::Crypto::ECKey deprecated #3827
-
According to their documentations, both Poco::Crypto::RSAKey & Poco::Crypto::ECKey are deprecated. I wonder if it is possible describe why such classes are deprecated and which class(es) should be used in are their replacement. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Anything that does not use the envelope openssl api is deprecated (as it is in openssl, since 3.0). In this particular case, you can use poco/Crypto/include/Poco/Crypto/EVPPKey.h Line 46 in d11e48f |
Beta Was this translation helpful? Give feedback.
-
I am trying to migrate from I can create an EVPPKey( Which lets me set the type to RSAKey( Also, when I need to create a Cipher from this new key, I can do so using two methods: Cipher * createCipher( Or Cipher * createCipher( The second method, which takes an EVPPKey, offers no optional parameter to set the RSA padding mode. The first method offers this option, but it uses the deprecated RSAKey class which I am trying to get away from. How can I use EVPPKey for RSA encryption with a specified exponent size and RSA padding mode? Thank you. |
Beta Was this translation helpful? Give feedback.
Anything that does not use the envelope openssl api is deprecated (as it is in openssl, since 3.0).
In this particular case, you can use
EVPPKey
:poco/Crypto/include/Poco/Crypto/EVPPKey.h
Line 46 in d11e48f