Hi there,

I've been doing some testing with this great library, and it was
"easy" to achieve what I needed: RSA Signing with MD5.

Now the ONLY thing missing is: Loading the RSA PKCS#8 Private Key  for
signing, but it is given to me "password protected" and cannot change
that.
I was able to eliminate this password through OPENSSL for the tests,
but don't want to use another library(OPENSSL) just to format the KEY.

Is there a way to load this kind of KEY?? After all, this is a crypt
library so I guess there must be a way to decrypt this Key.

Please help. This is my very basic code:

char *privFilename="...";//This Key had to be decrypted with OPENSSL,
THIS IS what I dont want.
RSA::PrivateKey privateKey;
privateKey.Load(FileSource(privFilename, true, NULL, true /
*binary*/ ).Ref());
AutoSeededRandomPool rng;
Weak::RSASSA_PKCS1v15_MD5_Signer priv(privateKey);
FileSource f("message.txt", true, new SignerFilter(rng, priv, new
Base64Encoder(new FileSink("digested_BASE64.TXT"),0)));


P.S. I'm fairly new to crypto++(newbie), but tried to look for this
answer in the google group, and crypto++ wiki, and could not find the
answer

-- 
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.

Reply via email to