# Re: DSA and Signature

Bernard Leach (leachbj@aba.net.au)
Fri, 23 Apr 1999 10:37:15 +1000

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jan Luehe: "Re: DSA and Signature"
- Previous message: Jan Luehe: "Re: Problem compiling DHkeyAgreement( package not found)"
- Maybe in reply to: Bernard Leach: "DSA and Signature"
- Next in thread: Jan Luehe: "Re: DSA and Signature"

    Date: Fri, 23 Apr 1999 10:37:15 +1000

    From: Bernard Leach <leachbj@aba.net.au>

    To: Jan Luehe <luehe@laguna.eng.sun.com>

    Subject: Re: DSA and Signature

Jan Luehe wrote:
>
> Bernard:
>
> > I was just wondering why when the algorithm "DSA" is passed
> > to the Signature getInstance() method it performs a lookup
> > for the algorithm "SHA/DSA"?
> >
> > In the Signature.getInstance() method there is;
> >
> > if (algorithm.equalsIgnoreCase("DSA"))
> > algorithm = new String("SHA/DSA");
> >
> > But the JCA specification makes no mention of this! It
> > does specify the correct name for the algorithm is SHAwithDSA
> > but there is no mention of SHA/DSA.
>
> The lines of code you mentioned have changed in the JDK 1.3 workspace.
> They now read:
>
> if (algorithm.equalsIgnoreCase("DSA"))
> algorithm = new String("SHA1withDSA");
>
> to be consistent with our "standard" names.

As I mentioned in my other email, it seems a little strange to
have this special case in there when the alias mechanism is
provided to perform this task.

bernard.

- Next message: Jan Luehe: "Re: DSA and Signature"
- Previous message: Jan Luehe: "Re: Problem compiling DHkeyAgreement( package not found)"
- Maybe in reply to: Bernard Leach: "DSA and Signature"
- Next in thread: Jan Luehe: "Re: DSA and Signature"