Hi all,
first a quick note as to who I am. I've ben writing C and C++ for
UNIX systems for the past 8 years. I'm currently employed as the
IT Manager at a new company called Blitz The Net Ltd based in Bath
in the UK.
Enough of that. I found OpenSSL last week when looking for another
option than the exorbitant RSA BSafe Crypto C development libraries.
I've found OpenSSL to be excellent so far. I'm going to be using the
MD5 routines (easy peasy), the DES routines (a little harder, but still
clear) and hopefully some public/private key routines (completely lost).
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.
Am I going about this the wrong way around? Have I got the wrong
end of the stick.
What I'm trying to implement is a two algorithms with the following
prototypes:
datablock *encrypt(void *private_key, datablock *data);
datablock *decrypt(void *public_key, datablock *data);
where
typedef struct datablock
{
void *data;
unsigned int len;
} datablock;
If anyone can supply a half working example, some pseudocode, a
reference to a good book or ANYTHING. I'd be very grateful.
Cheers, Jim.
IT Manager, Blitz The Net Ltd.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]