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

usha ladkani commented on SSHD-273:
-----------------------------------

I tried this just now , Its still giving same error.

The changed portion of class looks like as below

 s2cmac = NamedFactory.Utils.create(factoryManager.getMacFactories(), 
negociated[SshConstants.PROPOSAL_MAC_ALGS_STOC]);
        MACs2c = resizeKey(MACs2c, s2cmac.getBlockSize(), hash, K, H);
        s2cmac.init(MACs2c);

        c2scipher = 
NamedFactory.Utils.create(factoryManager.getCipherFactories(), 
negociated[SshConstants.PROPOSAL_ENC_ALGS_CTOS]);
        Ec2s = resizeKey(Ec2s, c2scipher.getBlockSize(), hash, K, H);
        c2scipher.init(isServer ? Cipher.Mode.Decrypt : Cipher.Mode.Encrypt, 
Ec2s, IVc2s);

        c2smac = NamedFactory.Utils.create(factoryManager.getMacFactories(), 
negociated[SshConstants.PROPOSAL_MAC_ALGS_CTOS]);
        MACc2s = resizeKey(MACc2s, c2smac.getBlockSize(), hash, K, H);
        c2smac.init(MACc2s);

        s2ccomp = 
NamedFactory.Utils.create(factoryManager.getCompressionFactories(), 
negociated[SshConstants.PROPOSAL_COMP_ALGS_STOC]);
        c2scomp = 
NamedFactory.Utils.create(factoryManager.getCompressionFactories(), 
negociated[SshConstants.PROPOSAL_COMP_ALGS_CTOS]);



> Add RFC 6668 (HMAC SHA-2) support
> ---------------------------------
>
>                 Key: SSHD-273
>                 URL: https://issues.apache.org/jira/browse/SSHD-273
>             Project: MINA SSHD
>          Issue Type: New Feature
>    Affects Versions: 0.10.0
>            Reporter: Kenny Root
>            Assignee: Guillaume Nodet
>             Fix For: 0.10.0
>
>         Attachments: 0001-SSHD-273-Add-RFC-6668-HMAC-SHA-2-support.patch
>
>
> Adds support for HMAC with SHA-2 hashes (SHA-256 and SHA-512) as specified in 
> RFC 6668. Both HmacSHA256 and HmacSHA512 are added as they are supported by 
> Sun/Oracle JDK, OpenJDK, and BouncyCastle.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to