[ https://issues.apache.org/jira/browse/SSHD-934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16895842#comment-16895842 ]
Goldstein Lyor commented on SSHD-934: ------------------------------------- {noformat} java.io.EOFException: Premature EOF - expected=133, actual=132 at org.apache.sshd.common.util.io.IoUtils.readFully(IoUtils.java:407) at org.apache.sshd.common.util.io.IoUtils.readFully(IoUtils.java:391) at org.apache.sshd.common.config.keys.KeyEntryResolver.readRLEBytes(KeyEntryResolver.java:194) at org.apache.sshd.common.config.keys.impl.ECDSAPublicKeyEntryDecoder.decodePublicKey(ECDSAPublicKeyEntryDecoder.java:87) at org.apache.sshd.common.config.keys.impl.ECDSAPublicKeyEntryDecoder.decodePublicKey(ECDSAPublicKeyEntryDecoder.java:1) at org.apache.sshd.common.config.keys.PublicKeyEntryDecoder.decodePublicKeyByType(PublicKeyEntryDecoder.java:76) at org.apache.sshd.common.config.keys.PublicKeyRawDataDecoder.decodePublicKey(PublicKeyRawDataDecoder.java:62) {noformat} {noformat:title=Some failures} # Failed (EOFException) to decode at attempt #314: Premature EOF - expected=65, actual=64 ecdsa-sha2-nistp256 AAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFTiGxA8llw0N5qGiyOcm3Hq4d8lTTUqSPnoCY2qkuAoADcrYp76Jh3OwJCBwCOGpxev0tTDE5KC5o1xfloqMw== ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKPNhevjf96XcGgL4UzvwOHJT1knbYrBMX6UzMwVpnMBAHC2/SLB17msg9QnAdo39UsHWkR/Ol4eOsP6CGLFXw== ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBORCZj9u++Wi1KIZK2wqESnUIsWDy9dBoDMcsvEKIfvmAFHjFlXR+G/HBo7lPPsyb6I5P6dS+jm4g6B79Pn79g== ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBABLt0jd7Du4JDSERF9bfnTfUjVv1fzc0CiFXp0vXGzbmhf2miL9ONNFLRTvUfea+HyNVwh0MhuJbtUbgaU+pQ== ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBABwe7Ko/yFO4GxtV5Y4eh2JY5qOUlUmSubK848ivPH9HNYAnUaEk5lV5Qj1AO4toPRDzkC0LzQhgiY+PREfCQ== ------------------------------------------------------------------------------------------------------------------------------------------------ Failed (EOFException) to decode at attempt #48: Premature EOF - expected=97, actual=96 ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBBaDhjlcjdCwsfLEqAnA8eoy+3sy0/N4z+vG32EQwoatgilGJ+i61bRDQ3qC904B3AA1BC5f//E+2qGOHLhOOhyFYy1Mhr15BWsck41Zwh5MrNkNJ7qyD2VszQkzuSQk ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBM472gt1IFMZk1M2Hm1vroFqW++00WKmxE+PFOg4QeDNgIpWc6bF7Y3dnOyvfoa/UwAcq5Twv1Wb3hKsdxWJN/4L3b7RZngYvfUXAZQdDkKqox6Pk/jncNILiPMaTEaS ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBAAZpHfdD+bC3CESz5cdynCWLBqDkqGS+bq1S9NinloqzVfo5OxFKl2ZHnjDPVEgUM4cAzOGdYT9P8LNqqVJNxlCi6NosTIazSALPdoOf6y22N2OMwcB2LfvZZpIIjkR ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBN7Cxp4qR6i095sJSeyAHPQjwmcqynZVeshDKk4j3D2tYqBSNrp7VAqd/pkrnl8DxABG4yTlFWmk/62t9FBZbKzOzzTwh406KSr2iQoemH4yCvN3Nv9AQN3Le06xWdaS ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBAA2yS30p5pAbz2s/1VwB+a8eruIOmoxwlvN/ziO3uBAU5VlQxSlHqze1d6MRd0dyWjnc7jPRSssyOrucVnTBaq1MxB8xM4h5X6d00jZjFTj0DHF30i1Zf5o7X7Vw+uO ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBKIdSTYnumpeEjdFHsdMHcXD4kx2+yvf8NO3nYkqF3FetGTo9Yh8uPYFz9eLVz4HdQArMpKWj450v5UrzdyM7qfd/i2jDhq34SqLPuGVi5QQlHDrm9KyNviYyJzWyFie ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBBMnVpA1GIFxjiq5tuiLBeUYNLfHvkRrsvmXVX1HnsJXyz6oI6aASh35Rz2wX5uNlgAb8svyEIFH9AEDu5SrfTUIJmaSJnMoOs6dC0PPL2LL5v4yETYEFid0S8iq18f6 -------------------------------------------------------------------------------------------------------------------------------------------------------- Failed (EOFException) to decode at attempt #2: Premature EOF - expected=133, actual=132 ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAGh+9K0EH2X+YcgJOPidyzEd747cCUfEWgxKrvwgJBs//ct2CprQB4dCx7T4juRVA9Kx4jSWfxJrX66N8ClNn/qwQBVOuXhIgln/taEGDl4Tjxt3nBdULTS4SprevdtI+gTJaL7byUf/YdZMAnKTfWifbLabWMtX80XBYfs8/cEl3uH ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAEwY4IEPIqIjq4wvvMwOZApnqlePMhLiv+ScRi+5uQq9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jCVhM1DPCUTME3TFEzAcwkv3H/O6nWvq8UgPOno ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAEHyTMMidfOIGleYJTCY1WpgkN4iKX3jFwoKgWFomlSN1ve3SzQw+PZ939k4lsNm6FyisEtp2H/5xlZoeFRujF8lAAV9D/vHhXuO5zplZiC+apK3u85zCbG8q6fcWhx0LMA/cPqdtDqe1UkbulP5XJpVZN7rGAhtG25njdj8skVML27 ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAAiE7cDzH8vp8VZPxbd7aWxfnUDqu3M84l69N5j+iqBoOc6F/7j/sbdM7Gz2uSy6stsy8MH7TGEbNLWmPK8DQwUAO6xCrSyadFAwoYxLDoRf59FUGS46I6EdwpaViIf/Zz4K6W+rVtv1xwORVWTijkE/s2ibUtg1eYVMfZHMO5Bv61y {noformat} > Invalid public key encoding of certain ecdsa-sha2-nistpX host keys > ------------------------------------------------------------------ > > Key: SSHD-934 > URL: https://issues.apache.org/jira/browse/SSHD-934 > Project: MINA SSHD > Issue Type: Bug > Affects Versions: 1.2.0, 2.1.0 > Reporter: Louis Berube > Priority: Major > Attachments: ECDSA-encode-decode-junit-fragment.txt > > > There appears to be an error in encoding the public part of certain ECDSA > host key values. The bug has been found to affect the ecdsa-sha2-nistpX host > key algorithms. > The bug affects the different ECDSA host key types to different degrees. > Usually when one generates a host key value it will work okay. However, if > one repeatedly generates new host key values then eventually a value will be > generated for which the encoding is not calculated correctly: > * For ecdsa-sha2-nistp512: within ~10 repetitions > * For ecdsa-sha2-nistp256: within ~200 repetitions > * For ecdsa-sha2-nistp384: within ~1000 repetitions > The attached Junit test code fragment was used to generate the above > statistics. -- This message was sent by Atlassian JIRA (v7.6.14#76016) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org