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

Paul Clark paul at packetship.com
Thu Jan 28 05:08:27 EST 2010


Jack Lloyd wrote:
> On Sat, Jan 23, 2010 at 10:16:38PM +0100, bav wrote:
>   
>> 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

Could they not use sign() at the server and verify() at the client for 
the server-to-client direction, and normal encrypt() at the client and 
decrypt() at the server for the other way?

Paul




More information about the botan-devel mailing list