You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Rohini Jori (Jira)" <ji...@apache.org> on 2020/08/14 15:34:00 UTC

[jira] [Created] (SSHD-1054) Not able to get the correct cipher/mac/key values in negotiation options of SSHD

Rohini Jori created SSHD-1054:
---------------------------------

             Summary: Not able to get the correct cipher/mac/key values in negotiation options of SSHD
                 Key: SSHD-1054
                 URL: https://issues.apache.org/jira/browse/SSHD-1054
             Project: MINA SSHD
          Issue Type: New Feature
            Reporter: Rohini Jori
         Attachments: Negotiated_option.png, addclientcipher_code.png, logs_cipher.png

We are setting the cipher , mac and key-exchange algorithm through which the client & server communication should happens.

So I used the "setCipherFactoriesNames()" method to set the cipher which actually going to use in communication. Then used "setCipherFactories()" method to set the all the ciphers which are supported.

But when I print the "sftpClient.getSession().getNegotiatedKexParameter(KexProposalOption.C2SENC);"  

it returns the random cipher instead of actual being used.

So this getNegotiatedKexParameter returning the wrong value even when we set the correct cipher.

 

So how can we get the value set by "setCipherFactoriesNames()" method when printing the session information about the used ciphers/mac/keys?

Please refer the attached code snapshot and logs. 

 

 

 

 

 



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