I'm somewhat new to the cryptopp library and I want (at the moment)
encrypt the public key of a client and send it to the server (to stop
man in the middle attacks). When sending small text data it works fine
and decrypts on the other end (server) fine also. When I tried to
encrypt the encrypted client key to the server I got this error
std::exception.what():
RSA/OAEP-MGF1(SHA-1): message length of 292 exceeds the maximum of 214
for this public key
Is there another way built in to get around this or another option
that I'm missing in order to get the key safely to the server.
Just in case anyone ask here is some more info.
server : loads server keys from file >>
client : loads server public key from file >>
client : sends encrypted public key to server (using server public)
server : decrypts clients public key using server private key >>
server : first encrypts then signs message asking client for password
>>
client : first verifies the key was from server then decrypts the
message >>
....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to
cryptopp-users-unsubscribe@....
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---