Re: Curve25519/448 key agreement for SSH

Damien Miller <[email protected]>
Newsgroups gmane.ietf.secsh
Message-ID <[email protected]>
On Wed, 18 Nov 2015, Simon Josefsson wrote:

> This is another update, clarifying the encoding issue a bit further and
> improving language (thank you Denis).
> 
>   https://tools.ietf.org/html/draft-josefsson-ssh-curves-02
> 
> A discussion on CFRG came up recently about checking for the all-zero
> shared secret.  Does anyone know if libssh or OpenSSH (or anyone else)
> performs this check?  Not doing that has apparently led to real security
> problems.  For more background, see:
> 
>   http://thread.gmane.org/gmane.ietf.irtf.cfrg/6228
> 
> Thoughts on whether we should add a MUST to require checking the derived
> secret for the all-zero value?

OpenSSH performs the all-zero check

https://anongit.mindrot.org/openssh.git/tree/kexc25519.c?id=8ca915fc761519dd1f7766a550ec597a81db5646#n69

I think it should be a MUST.

-d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.