On Friday, August 11, 2017 at 12:23:08 PM UTC+10, Jeffrey Walton wrote:
>
>
> I installed crypto++ on my mac and try to run a simple code on xcode. I 
>> can create keys using the following: 
>>
>>   CryptoPP::AutoSeededRandomPool rng;
>>
>>         CryptoPP::InvertibleRSAFunction param;
>>
>>         param.GenerateRandomWithKeySize(rng,1536);
>>
>>         CryptoPP::RSA::PrivateKey privatekey(param);
>>
>>         CryptoPP::RSA::PublicKey publickey (param);
>>
>>         prk.push_back(privatekey);
>>
>>         pk.push_back(publickey);
>>
>
> The push_back's look unusual. Do something else.
>

I tried with one public private key (without puch_back). Get the same 
error.  

>
> If you show the code that calls the snippet above, we might be able to 
> suggest something.
>
> But when I try to sign a message it goes to threat. I do not know what to 
>> do with it. The exact threat message is: 
>>
>> Thread 1: EXC_BAD_ACCESS
>>
>>
>> I am using the following code to sign: 
>>
>>  CryptoPP::StringSource ss1(mes, true,
>>
>>      new CryptoPP::SignerFilter(rng, signer,
>>
>>                new CryptoPP::StringSink(signature)
>>
>>                                           ) // SignerFilter
>>
>>                          ); // StringSource
>>
>
> This looks OK.
>
> There's also some RSA examples on the wiki at 
> https://www.cryptopp.com/wiki/RSA_Cryptography.
>
> Jeff 
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
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 cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to