bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug crypto/28192] New: Algorithm names should be case insensitive


From: mwringe at redhat dot com
Subject: [Bug crypto/28192] New: Algorithm names should be case insensitive
Date: 28 Jun 2006 15:52:20 -0000

Algorithm names should be considered to be case insensitive, yet gnu-crypto is
treating them as being case sensitive. 

This causes a "NoSuchAlgorithmException" if the algorithm string passed does
not match the exact case as the algorithm listed in gnu-crypto.

I have traced the issue to gnu.java.security.Engine and its getInstance
methods. These methods take the algorithm string passed to them as a key to
find the algorithm class in a hashtable.

Instead of using the algorithm name as a key, they hashtable needs to be
iterated through each algorithm and doing a compare ignoring the case.


-- 
           Summary: Algorithm names should be case insensitive
           Product: classpath
           Version: 0.92
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: crypto
        AssignedTo: csm at gnu dot org
        ReportedBy: mwringe at redhat dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28192





reply via email to

[Prev in Thread] Current Thread [Next in Thread]