You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Stepan Mishura (JIRA)" <ji...@apache.org> on 2006/12/16 12:30:23 UTC

[jira] Assigned: (HARMONY-2676) [classlib][security]AlgorithmParameterGenerator.init() fails to throw InvalidParameterException while the input size is illegal for a specified algorithm while RI does.

     [ http://issues.apache.org/jira/browse/HARMONY-2676?page=all ]

Stepan Mishura reassigned HARMONY-2676:
---------------------------------------

    Assignee: Stepan Mishura

> [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
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Stepan Mishura
>
> 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