# DSA available for use in encryption/decryption?

Dave Miller (dmiller@preEmptive.com)
Wed, 02 Jul 1997 14:41:50 -0400

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jan Luehe: "Re: DSA available for use in encryption/decryption?"
- Previous message: Adriano C. R. da Cunha: "Java Database - doubt"
- Next in thread: Jan Luehe: "Re: DSA available for use in encryption/decryption?"

    Message-Id: <3.0.2.32.19970702144150.007c1360@preemptive.com>

    Date: Wed, 02 Jul 1997 14:41:50 -0400

    To: java-security@web2.javasoft.com

    From: Dave Miller <dmiller@preEmptive.com>

    Subject: DSA available for use in encryption/decryption?

hi -

i am currently writing a simple program to simulate
client/server communication with encrypted data.
here's the scenario:

the client creates a session (secret) key and encrypts
some data (DES is used via KeyGenerator in jce). the
server's public key is available to the client and is
used to encrypt the session key. however, the public/private
key pair is is generated using DSA. the only encryption/
decryption algorithm i can get working with a cipher
is DES. how can i use a DSA key to encrypt the session
key, send it with the data, and use the server's private
DSA key to decrypt it? if the sun provider does not provide
this option, is there a third party provider which supports
DES key pair generation or DSA encryption?

also, since there is currently no method for building a
SecretKey from an array of bytes obtained from getEncoding()
on an object implementing the Key interface, as a workaround,
i was attempting to serialize the session key, encrypt the
serialized key, and send it to decrypt and read in on
the other end. are there any negatives to this method?
this is where i need the public/private keys to do the
encrypting/decrypting.

additionaly, the links to the java security q&a archive
volumes are incorrect. they are found at:
http://jserv.javasoft.com/hypermail/java-security-archive/index.html

thanks for any help...

dave

- Next message: Jan Luehe: "Re: DSA available for use in encryption/decryption?"
- Previous message: Adriano C. R. da Cunha: "Java Database - doubt"
- Next in thread: Jan Luehe: "Re: DSA available for use in encryption/decryption?"