Assymetric encryption & JCE

satyendra dhingra (satyen@digitalmarket.com)
Tue, 26 Jan 1999 03:33:08 -0800

I am trying to build a secure peer-to-peer communication framework
using JCE1.2. The scheme is as follows,

1. each participating peer keeps a keystore which contain i'ts
own private key, and public keys of all the peers. The keys
are generated using keytool utility.

2. communication scheme is as follows

- encrypt the data using a session key
- encrypt the session key using the public key
of the remote system

peer will
- decrypt the encrypted session key by using the
private key
- use the session key to decrypt rest of the message

The problem I am running into i

- the session keys are DES, and encryption of message data using
session keys works fine, by using the DES cipher.
- the private/public keys pairs are DSA, and there is no
cipher avbl for encryption using these keys. I cannot find any
algorithm in JCE for which I can generate the key and also get
the cipher that will utilize those keys for encryption.

Am I missing somethign or is there something missing the
in the JCE to make it useful in the kind of framework
suggested above.

satyendra