Thanks!

вторник, 4 июня 2019 г., 2:50:49 UTC-7 пользователь Jeffrey Walton написал:
>
>
>
> On Tuesday, June 4, 2019 at 5:11:24 AM UTC-4, Nataliia wrote:
>>
>> Hi all.
>>
>> How can I check is my RSA encryptor initialized? When the programm tries 
>> to encrypt something via uninnitialize encryptor, I have exception "divide 
>> by zero". 
>>
>> Can I write something like this before encryption:
>>
>> *If (m_encryptor != 0)*
>> *      CryptoPP::StringSource(message_str, true, new 
>> CryptoPP::StreamTransformationFilter(m_encryptor, new 
>> CryptoPP::StringSink(result_str)));*
>>
>
> If m_encryptor is a pointer, then first check that it is not NULL. Then, 
> check the modulus is not 0. The RSA pages has examples at 
> https://www.cryptopp.com/wiki/RSA_Cryptography .
>
> Jeff
>

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/cryptopp-users/cda68637-9fbd-4133-866d-8326a81cb326%40googlegroups.com.

Reply via email to