# Re: DSA Verify

Jan Luehe (Jan.Luehe@Eng)
Wed, 3 Sep 1997 14:07:35 -0700 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Michael H. Price II: "Broken link to JCE on your web site."
- Previous message: Mayank Upadhyay: "Use of Providers"
- Maybe in reply to: Vincent yu: "DSA Verify"

    Date: Wed, 3 Sep 1997 14:07:35 -0700 (PDT)

    From: Jan Luehe <Jan.Luehe@Eng>

    Subject: Re: DSA Verify

    To: java-security@web2.javasoft.com, vyu@certco.com

Vincent:

> JDK 1.1.3 cannot instantiate the public key. Can I use the following as
> workaround
> - get the source code on DSA Verify (sun provider) from you,
> - write a class to inherit dsa class, and add routines to set publickey, p,
> q, and g.
>
> My application is a payment system on internet and I need DSA as the
> encryption mechanism.
> To get the source code, do I need commercial or non-commercial licence?

Unfortunately, we cannot give you any source code from the Sun
package.

Here's an alternative solution for you:

Create (concrete) classes which implement the
DSAPublicKey and DSAPrivateKey interfaces, respectively.

Your version of a key implementing the DSAPublicKey interface can
be passed to initVerify(), and your version of a key implementing
the DSAPrivateKey interface can be passed to the initSign() method.

The constructor for your classes would take y, p, q, g and
x, p, q, g, respectively.

Hope this helps.

Jan

- Next message: Michael H. Price II: "Broken link to JCE on your web site."
- Previous message: Mayank Upadhyay: "Use of Providers"
- Maybe in reply to: Vincent yu: "DSA Verify"