Re: Albrecht/Paterson/Watson's attack

Peter Gutmann <[email protected]>
Newsgroups gmane.ietf.secsh
Message-ID <[email protected]>
Simon Tatham <[email protected]> writes:

>The MAC would apply to the ciphertext, and the length would be the full
>length of the ciphertext (or perhaps ciphertext+MAC) in clear.

That's what I'd like to see too.  My code, and presumably everyone else's as
well, currently contains a large pile of ad-hockery to kludge around all the
different side-channel attacks you have to worry about with the current way
packet data is handled.  Being able to do:

  read length;
  read that many bytes;
  run MAC and accept/reject;

would cut out all of this.  The only thing you need to worry about is not
using memcmp() for the MAC check.

Peter.
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.