[Botan-devel] bi-directional communication using single private/passphrase - public key setup

Jack Lloyd lloyd at randombit.net
Wed Jan 27 16:48:44 EST 2010


On Sat, Jan 23, 2010 at 10:16:38PM +0100, bav wrote:
> A question from a newbie:
> I want to encrypt text on server using private/passphrase key, send this encrypted text
>  to a client which is using the public key to decrypt. The client would also
>  use the same public key to encrypt som text. This encrypted text is send to 
>  the server which in turn is using the private/passphrase key to decrypt.
>  So in total 1 set of private/passphrase - public keys is being used.
>  
> Is this possible in botan? 

This is not really possible in any public key scheme I know of.

You would want to either use two key pairs, one owned by the client
and the other the server, or else have them share a symmetric key.

-Jack



More information about the botan-devel mailing list