You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Sandeep (Jira)" <ji...@apache.org> on 2020/07/10 11:58:00 UTC

[jira] [Commented] (SSHD-1007) Do we support 1536 size keyGeneration in sdd or rsa?

    [ https://issues.apache.org/jira/browse/SSHD-1007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17155401#comment-17155401 ] 

Sandeep commented on SSHD-1007:
-------------------------------

[~lgoldstein] 

The following are the 2 sample method to generate 1536 key. The first one is working fine, I can see RSA with 1536 key is generated. But If I run 2nd method for DSA key for 1536 then it through reception. The exception log is attached.  [^dsa_1536_exception_log] 
 
 *Exception log error says "strength must be from 512 - 4096 and a multiple of 1024 above 1024" so, it means apache will not support DSA key with 1536 size right?* 
 

*1st :*   
  @Test
    public void generateRSAKey() {
        try {           
            KeyPair rsa_key = KeyUtils.generateKeyPair(KeyPairProvider.SSH_RSA, 1536);
            System.out.println("Public ket Type : " + rsa_key.getPublic().getAlgorithm());
        } catch (GeneralSecurityException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
 

*2nd:*

 
    @Test
    public void generateDSAKey() {
        try {
            KeyPair dss_key = KeyUtils.generateKeyPair(KeyPairProvider.SSH_DSS, 1536);
            System.out.println("Public ket Type : " + dss_key.getPublic().getAlgorithm());
        } catch (GeneralSecurityException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

> Do we support 1536 size keyGeneration in sdd or rsa?
> ----------------------------------------------------
>
>                 Key: SSHD-1007
>                 URL: https://issues.apache.org/jira/browse/SSHD-1007
>             Project: MINA SSHD
>          Issue Type: Question
>            Reporter: Sandeep
>            Priority: Major
>         Attachments: dsa_1536_exception_log, image-2020-05-29-13-18-50-682.png, image-2020-05-29-13-19-25-273.png
>
>
> Our client has exiting system where they are creating 1536 size key for dss and rsa. 
> But in sshd when i try it, it show exception.
> Can you help me for this?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org