You have to use PSSR. As the exception says, PKCS #1 1.5 doesn't support message recovery. What compile error did you get? Did you do a #include "pssr.h"?
On Sun, Jul 11, 2004 at 06:03:50PM +0000, neimod neimod wrote: > Hello Wei Dai, > I have tried something similar to this new code in the FAQ, but it did not > work.. > I have now tried your source from the FAQ, > and had to replace (because I get compiling errors with PSSR): > " RSASS<PSSR, SHA>::Signer signer(f);" > " RSASS<PSSR, SHA>::Verifier verifier(signer);" > > with: > " RSASS<PKCS1v15, SHA>::Signer signer(f);" > " RSASS<PKCS1v15, SHA>::Verifier verifier(signer);" > > When execute this, the output gets an exception thrown: > > "CryptoPP::exception caught: TF_SignerBase: this algorithm does not support > messsage recovery or the key is too short." > > Slap me if I'm wrong :) > Cheers, > neimod. > > _________________________________________________________________ > Help STOP SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail
