You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by GitBox <gi...@apache.org> on 2021/11/06 12:02:38 UTC

[GitHub] [mina-sshd] tomaswolf edited a comment on pull request #177: [SSHD-704] Add support for RFC 8731

tomaswolf edited a comment on pull request #177:
URL: https://github.com/apache/mina-sshd/pull/177#issuecomment-962439849


   It works for curve25519 if both keys (our and theirs) have the most significant bit zero.
   
   If our key (encode()) has the most significant bit set, they close the connection.
   
   If their key (decode()) has the most significant bit set, we fail to verify their signature.
   
   I suspect this is related to [RFC 7748, section 5](https://datatracker.ietf.org/doc/html/rfc7748#section-5):
   
   > When receiving such an array, implementations of X25519 (but not X448) MUST mask the most significant bit in the final byte.
   
   (They talk little-endian here.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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