Hi,
 
 
If my KeyFile is not an ASCII (with characteres like key created by crypto++) file but a binary (hexadecimal) file, I can't use HexDecoder().
For the moment, I translate my binary key file into a ASCII file and next I do :
 
    FileSource privFile(<myKeyFilePath>, true, new HexDecoder());
    RSASSA_PKCS1v15_MD5_Signer priv(privFile);
 
 
- Does crypto++  work directly with binary files ? if yes, which class do I have to use ?
- If not, is there a better way to do so?
 
Another question :
- Does crypto++  check a certificate or a private key file ? If yes, how to do so ?
 
Thanks
 
Guillaume.
 
 
----- Original Message -----
Sent: Tuesday, July 15, 2003 12:36 PM
Subject: RSA private key file problems

Hi all,
 
I would like to crypt data with a RSA with MD5 algorithm but I've got some problems.
My private key file is a variable-size hexadecimal format file.
 
Here are my code lines :
 
    FileSource privFile(<myKeyFilePath>, true, new HexDecoder());
    RSASSA_PKCS1v15_MD5_Signer priv(privFile);
 
 
When I try to crypt, the program fails on the creation of  the RSASSA_PKCS1v15_MD5_Signer object.
I think that the FileSource object is not correct because of the key file format, but I don't know what kind of object to use instead the HexDecoder object.
 
 
Does somebody got any idea,
 
Thanks,
Guillaume.

Reply via email to