On Wed, Oct 09, 2002 at 12:27:10PM -0500, Michael Davis wrote: > I am currently trying to implement a protocol to exchange a secret > session key. I am trying to send a digest from the server to the client that > is encrypted with the Server's Private key, however, I cannot figure out how > to encrypt data with the server's private key.
You can not encrypt data with a private key. It's just not a valid cryptographic operation. Perhaps what you want is to sign data with a private key, and then verify the signature with the public key. Use the signature classes to do that.
