harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2676) [classlib][security]AlgorithmParameterGenerator.init() fails to throw InvalidParameterException while the input size is illegal for a specified algorithm while RI does.
Date Thu, 14 Dec 2006 08:10:23 GMT
[classlib][security]AlgorithmParameterGenerator.init() fails to throw InvalidParameterException
while the input size is illegal for a specified algorithm while RI does.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2676
                 URL: http://issues.apache.org/jira/browse/HARMONY-2676
             Project: Harmony
          Issue Type: Bug
            Reporter: Leo Li


Here is a testcase:
public void test_algorithmParameterGenerator_init() throws Exception
    {
        AlgorithmParameterGenerator algorithmParameterGenerator = AlgorithmParameterGenerator.getInstance("DSA");
        try {
            algorithmParameterGenerator.init(600);
            fail("Should throw InvalidParameterException.");
        } catch (InvalidParameterException e) {
            //expected.
        }
    }

RI passes.
Harmony fails.

After digging into it, I found the root cause is in JDKAlgorithmParameterGenerator$DSA.class
which is included in signed.bcprov.jar.  Should we raise a jira to bcprov?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message