I have code in my ServerCrypto constructor as follows. This code works
fine under MSVS, however I have been trying to get it to work under
XCode
in OSX 10.5.4
It appears that with the pubServerKeyString stringsource, there is an
error deep down the call stack in
CryptoPP::BufferedTransformation::ChannelPut2 on if
( channel.empty() )
The error I get is
Program received signal: “EXC_BAD_ACCESS”.
ServerCrypto( void ) {
static std::string
ServerPublicKey(
"30820220300D06092A864886F70D01010105000382020D00308202080282020100D56E167315798DCBE6426F59D75243C463E5AAAB4D6BFDEB31642A62F8334D511342C264394D1D40B12B7C59855C2885709E971ABBBC680F9A3DB3B12370AAF3E8506E6FF3F8DED4EEC4613178B42C0A0AB6DF4CD13346B99BEB8E052254352C3BF971540CE18C47798A46170A0D3AD8EC3BA7BFF64DBDB049CA3DAB14DB7EDEFD4280AF3B9457769A2A5BD959760F5AB6CF1ABDBAE8E3F9050F2D4488D54808390EF4276845014119E51A247D674C75ECBF9E42DAC1AFECBD1394EB43F16C582A43E24D95F8312A117A6CCB46C7504ED76082467EB59B91AC2144219CF38CFB46EBB614C487666A41EDF142F40362119F51F31B215C3D2141B714E6188BA5005443F9BCCC2D727BBB5D7EBCAEA5A570D737433D783EBC29AB7AB3190A5B2A57DD7B2F38F88F46C30B6D7C63C3909FFC8285D7B0E0861623C8513145DF405FD9CEA3FA95307B945EE76739F60C7D86B135998947FB72A9FF180AB7E53348B8416A8B6986471DFCCBDD8FB1DD5E44916C06C985D5D19EAA840699EF21DB142B177F976EE3EBC40B74974C0D456BA1115DA78188C546708D00720A8A8AAFD598E11D7B7FF98D2BCBAF7D890A6C8F6DE3E44A90C42B45A877F4C8F3AAEEE23FD0AF90918CE09ED6D1993B78FE5F13C9D0F1EBDD4A4B586AC3B30782480D1D0FA66B449C523D31E9C5B5E592EB53ED2F7BADEF9FF077BE986C1F15BFB3DF055A46E9020111"
);
CryptoPP::StringSource pubServerKeyString( ServerPublicKey,
true,
new CryptoPP::HexDecoder);
m_encPublicServerKey = new
CryptoPP::RSAES<CryptoPP::OAEP<CryptoPP::SHA> >::Encryptor
( pubServerKeyString );
m_decPrivateClientKey = new
CryptoPP::RSAES<CryptoPP::OAEP<CryptoPP::SHA>
>::Decryptor( GlobalRNG(), 4096 );
m_encPublicClientKey = new CryptoPP::RSAES<CryptoPP::OAEP <
CryptoPP::SHA > >::Encryptor( *m_decPrivateClientKey );
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---