Hi Slava,

Wei demonstrates writing keys from a file in GenerateRSAKey(). See test.cpp,
around line 500. I don't think it will be difficult to follow. DERDecode is
what you will use. I think the key needs to be in PKCS #8 format - I have
not tried to bring in a key not created by Crypto++.

The DSA stuff is located validate2.cpp. See ValidateDSA(). It's a little
hairier.

Jeff

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gorelik, Slava
Sent: Tuesday, November 11, 2003 5:56 AM
To: '[EMAIL PROTECTED]'
Subject: DSA Question.


Hi to All.
I have a one stupid question.
 
I want to use the DSA class I have a public key in the file.
How can I load the key to the PublicKey in the DSA ????
 
Thank You.
 

Reply via email to