-----Message d'origine----- De: Guillaume JOLIVET [mailto:[EMAIL PROTECTED] Date: lundi 21 juillet 2003 10:00 �: [EMAIL PROTECTED] Objet: Re: RSA private key file problems
> - To sign a message with crypto++, should I first hash and next crypt it or > is there a method to do it directly? You should find what you need in test.cpp (function RSAEncryptString) : you don't have to hash / crypt manually, it can be done straightforward with classes like RSAES_OAEP_SHA_Encryptor. BTW, can anyone tell me how to encipher a short string with a *private* key ? All the examples I could find explain how to encrypt with a public key using RSAES_OAEP_SHA_Encryptor or similar, but this does not suit what I need to do (which in fact is nothing more than a RSA_SP1, since it is to operate on a hashcode, juste like in a classical RSAES). Thanks in advance C�dric
