You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2006/12/21 10:27:23 UTC
[jira] Commented: (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=comments#action_12460191 ]
Leo Li commented on HARMONY-2676:
---------------------------------
Hi, all:
I have asked the bouncy castle guys and they reply that:
>>It's in FIPS 186-2.
>>I'd probably regard this as a bug - we're certainly happy to make the
>>change. It should appear in CVS shortly.
Is it ok to resolve it?
Thanks.
Leo
> [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