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/06/28 07:35:30 UTC

[jira] Commented: (HARMONY-629) [classlib][security] Passing invalid DSA spec size does not throw exception

    [ http://issues.apache.org/jira/browse/HARMONY-629?page=comments#action_12418174 ] 

Stepan Mishura commented on HARMONY-629:
----------------------------------------

AlgorithmParameterGenerator is not aware which key size is valid for an algorithm. A DSA key size may be multiple of 64 but it possible that it is not supported by an algorithm's provider. So AlgorithmParameterGenerator only passes key size to an algorithm's provider and lets the provider to decide whether the key size is valid or not. 

In our case it is up to BC provider whether to reject or not the provided key size.


> [classlib][security] Passing invalid DSA spec size does not throw exception
> ---------------------------------------------------------------------------
>
>          Key: HARMONY-629
>          URL: http://issues.apache.org/jira/browse/HARMONY-629
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Tim Ellison
>     Assignee: Stepan Mishura
>  Attachments: harmony-629.diff
>
> Passing in a required DSA key length that is not a multiple of 64 does not cause an exception.
> Patch to tests illustrating problem follows.

-- 
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