mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Goldstein Lyor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SSHD-869) java.security.SignatureException: error decoding signature bytes.
Date Sat, 01 Dec 2018 14:24:00 GMT

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

Goldstein Lyor commented on SSHD-869:
-------------------------------------

I am sorry that I cannot be more helpful - but like I said, 0.14 is an extremely old version.
BTW, even if you fix this issue, you will encounter many more - so I really (really) encourage
you to find some way to use 2.1.0. That being said, the best I can offer right now is to look
at the commit log of the {{AbstractSignature}}, {{SignatureRSA}} and {{SignatureDSA}} classes
and see if you can figure out the patch. More specifically the usage of {{putBigInteger}},
the invocation of {{SignatureRSA/SignatureDSA#verify}}. In any case, please note that IMO
there is nothing you can do in your code to fix this - the version 0.14 itself must be patched
- so (again) better to upgrade to 2.1.0.

> java.security.SignatureException: error decoding signature bytes.
> -----------------------------------------------------------------
>
>                 Key: SSHD-869
>                 URL: https://issues.apache.org/jira/browse/SSHD-869
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.14.0
>            Reporter: Aruna Potti
>            Priority: Major
>
> Below exception is seen with some ssh keys. I need a fix/workaround in 0.14.0 version
as I can not upgrade the version in my product.
>  
> Exception caught
> java.security.SignatureException: error decoding signature bytes.
>         at org.bouncycastle.jcajce.provider.asymmetric.dsa.DSASigner.engineVerify(Unknown
Source)[bcprov-jdk15on-1.59.jar:1.59.0]
>         at java.security.Signature$Delegate.engineVerify(Signature.java:1219)[:1.8.0_66]
>         at java.security.Signature.verify(Signature.java:652)[:1.8.0_66]
>         at org.apache.sshd.common.signature.AbstractSignatureDSA.verify(AbstractSignatureDSA.java:88)[53:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.client.kex.DHGEX.next(DHGEX.java:163)[53:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:425)[53:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:326)[53:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:306)[53:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:780)[53:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:308)[53:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)[53:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:184)[53:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:170)[53:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
>         at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_66]
>         at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)[53:org.apache.sshd.core:0.14.0]
>         at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)[:1.8.0_66]
>         at sun.nio.ch.Invoker$2.run(Invoker.java:218)[:1.8.0_66]
>         at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)[:1.8.0_66]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_66]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_66]
>         at java.lang.Thread.run(Thread.java:745)[:1.8.0_66]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message