security providers and ...

Mark Wielaard mark@klomp.org
Sun Aug 18 11:28:00 GMT 2002


Hi,

On Fri, 2002-08-16 at 01:28, Vladimir Puskas wrote:
> On Monday 15 July 2002 00:19, Mark Wielaard wrote:
> > But I don't think they are very well tested so please let us know
> > if they work correctly for you.
> >
> 
> gnu.java.security.provider.MD5 should extend java.security.DigestMessage 
> instead of DigestMessageSpi, because now it throws exception:
> java.lang.ClassCastException:
>  gnu.java.security.provider.MD5 cannot be cast to java.security.MessageDigest
> when trying to MessageDigest.getInstance("MD5").

I had actually already done that for Classpath and will do that now also
for libgcj since that makes it at least usable for now. Raif already
send me patches to make MessageDigest handle classes that extend
MessageDigestSpi (and implements algorithm aliases) which is a more
generic solution. We will add that later when we have tested them a bit
more.

Thanks,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: provider.patch
Type: text/x-patch
Size: 1789 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20020818/365f4028/attachment.bin>


More information about the Java-patches mailing list