Normally you will need to do more then just hex decode the key, as the key is just not one value but a small collection. Crypto++ only really accepts loading of RSA keys in one of three ways, ASN.1(BERdecode), loading the individual numbers separately with sets, or name value pairs (This is new and I have not tried it). Of these ASN.1 is the most common, and only it and the name values pairs can be easily marshaled to a file.
Do you know what format the key is in? Until you know and have the code working with it, everything past forming the RSA object is not going to work. You probably should read up on ASN.1 and RSA before proceeding. You can find decent information at RSALabs.
73, Shawn
-----Original Message-----
Thank you for your help, but does someone have any example for signing (RSA with MD5 or RSA with SHA1) a byte buffer using a private key file.
For the moment, I've got :
Is this solution correct ? Does abySignedBuffer contain the result of the signature of bufferIWantToSign ? If no, how would you do it.
----- Original Message ----- From: "Shawn Masters" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 15, 2003 2:15 PM Subject: RE: RSA private key file problems
I think the problem may be a little deeper then this. |
- PGP Steve McClellan
- Re: PGP Shawn Masters
- RSA private key file problems Guillaume JOLIVET
- RE: RSA private key file problems Shawn Masters
- Re: RSA private key file problems Guillaume JOLIVET
- Re: RSA private key file problems Shawn Masters
- Re: RSA private key file problems Guillaume JOLIVET
- Re: RSA private key file prob... Shawn Masters
- Re: RSA private key file ... Guillaume JOLIVET
- Re: RSA private key file ... Wei Dai
- Re: RSA private key file problems Guillaume JOLIVET
- DUKPT ,TDES and crypto Tim Droz
- TDES ECB Tim Droz
- RE: TDES ECB David C. Partridge
- RE: TDES ECB Tim Droz
- Re: TDES ECB Shawn Masters