Jim Grimmett wrote:
>
>
> I'm hoping to generate the two keys and encrypt a piece of information
> with the private key into a file and send it to a client. The client will
> have
> the public key and will be able to verify that the information came from
> me, because it'll decrypt successfully with the public key they have.
>
> Now, I've looked at a lot of man pages in my time, but the DSH ones
> aren't much help and (even though I don't want to use RSA), the RSA
> ones aren't either.
>
Well its the RSA ones you need for that because RSA is the only OpenSSL
algorithm that supports that kind of operation (key transport). If you
want to do that check out the EVP_Seal*() and EVP_Open*() routines which
do most of the hard work.
> Am I going about this the wrong way around? Have I got the wrong
> end of the stick.
>
If you want to use something other than RSA then yes. You could
conceivably use DH but then you'd use a different technique (key
agreement).
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]