RE: Binary packet protocol rethink

Peter Gutmann <pgut001@cs.auckland.ac.nz> Mon, 30 November 2015 08:55 UTC

Return-Path: <bounces-ietf-ssh-owner-secsh-tyoxbijeg7-archive=lists.ietf.org@NetBSD.org>
X-Original-To: ietfarch-secsh-tyoxbijeg7-archive@ietfa.amsl.com
Delivered-To: ietfarch-secsh-tyoxbijeg7-archive@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C9AD91B2D16 for <ietfarch-secsh-tyoxbijeg7-archive@ietfa.amsl.com>; Mon, 30 Nov 2015 00:55:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.185
X-Spam-Level:
X-Spam-Status: No, score=-2.185 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MIME_8BIT_HEADER=0.3, RP_MATCHES_RCVD=-0.585] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9IMIuoq0DaDz for <ietfarch-secsh-tyoxbijeg7-archive@ietfa.amsl.com>; Mon, 30 Nov 2015 00:55:48 -0800 (PST)
Received: from mail.netbsd.org (mail.NetBSD.org [IPv6:2001:4f8:3:7::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D2ED91B2D0E for <secsh-tyoxbijeg7-archive@lists.ietf.org>; Mon, 30 Nov 2015 00:55:48 -0800 (PST)
Received: by mail.netbsd.org (Postfix, from userid 605) id EC49414A331; Mon, 30 Nov 2015 08:55:45 +0000 (UTC)
Delivered-To: ietf-ssh@netbsd.org
Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 31ED614A329 for <ietf-ssh@netbsd.org>; Mon, 30 Nov 2015 08:55:43 +0000 (UTC)
X-Virus-Scanned: amavisd-new at NetBSD.org
Authentication-Results: mail.NetBSD.org (amavisd-new); dkim=pass (2048-bit key) header.d=auckland.ac.nz
Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 07WzPmiCcpUM for <ietf-ssh@netbsd.org>; Mon, 30 Nov 2015 08:55:42 +0000 (UTC)
Received: from mx4.auckland.ac.nz (mx4.auckland.ac.nz [130.216.125.248]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.netbsd.org (Postfix) with ESMTPS id 02A3C14A304 for <ietf-ssh@netbsd.org>; Mon, 30 Nov 2015 08:55:38 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=mail; t=1448873742; x=1480409742; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=GF4WBYbT4NevRaFaL7+AYnmv+9mgt5D23lSM3IVUeTY=; b=fFnaJpKyyJJcT76NFmBx9PNbFwUaR/2/kO+bklVbpQLQKrfM/VhSFS/Z A3LXvKCs4xp76w1CZOtUJXzvth0wLs5ooUOCO+vARshF/QvBvBjZ3Iw8i 3IEhnDlvHN8bF8077EiV78seBnSA43ZQ7Yt9eIK1FbM2jbts1CKFY2g+z ZYXtvM5sNO8f6CaoTB2eqnMEe48M2RczLL2mZOd3VSX+2gci23tx5mxsB I2J+OmzwRpGpP9RdnjKwKOMMNUZ3EvkiP3qBNSMEynZIwMANV4uQsJ2Sm nuAMlaLBj5aiprOhrWEiXs2oLw93t+qPvRmQukGB5PRssC8yJGr6sHUWB w==;
X-IronPort-AV: E=Sophos;i="5.20,364,1444647600"; d="scan'208";a="56786690"
X-Ironport-HAT: MAIL-SERVERS - $RELAYED
X-Ironport-Source: 130.216.4.106 - Outgoing - Outgoing
Received: from uxchange10-fe2.uoa.auckland.ac.nz ([130.216.4.106]) by mx4-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 30 Nov 2015 21:55:36 +1300
Received: from UXCN10-5.UoA.auckland.ac.nz ([169.254.5.153]) by uxchange10-fe2.UoA.auckland.ac.nz ([130.216.4.106]) with mapi id 14.03.0266.001; Mon, 30 Nov 2015 21:55:37 +1300
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: Niels Möller <nisse@lysator.liu.se>
CC: Damien Miller <djm@mindrot.org>, Simon Tatham <anakin@pobox.com>, Simon Josefsson <simon@josefsson.org>, "ietf-ssh@netbsd.org" <ietf-ssh@netbsd.org>
Subject: RE: Binary packet protocol rethink
Thread-Topic: Binary packet protocol rethink
Thread-Index: AQHRK0VdMJRbFzQ1ukq+Xs4ulafSe560QstW
Date: Mon, 30 Nov 2015 08:55:35 +0000
Message-ID: <9A043F3CF02CD34C8E74AC1594475C73F4B9321A@uxcn10-5.UoA.auckland.ac.nz>
References: <87egfdxebo.fsf@latte.josefsson.org> <87egfdxebo.fsf@latte.josefsson.org> <nny4dksr3i.fsf@armitage.lysator.liu.se> <1448554180-sup-7145@atreus.tartarus.org> <9A043F3CF02CD34C8E74AC1594475C73F4B857C7@uxcn10-5.UoA.auckland.ac.nz> <alpine.BSO.2.20.1511292228450.12629@natsu.mindrot.org> <9A043F3CF02CD34C8E74AC1594475C73F4B92EF0@uxcn10-5.UoA.auckland.ac.nz>, <nn37vnsyoi.fsf@armitage.lysator.liu.se>
In-Reply-To: <nn37vnsyoi.fsf@armitage.lysator.liu.se>
Accept-Language: en-NZ, en-GB, en-US
Content-Language: en-NZ
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [130.216.158.4]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Sender: ietf-ssh-owner@NetBSD.org
List-Id: ietf-ssh.NetBSD.org
Precedence: list

Niels Möller <nisse@lysator.liu.se> writes:

>One can do all of these with the current ssh wire protocol. It's even
>straight-forward to do. But if we switch to clear text lengths (with no
>other, deeper, changes to the protocol), it gets a lot more difficult.

Why?  The length just tells you how much to decrypt in one block, what you put
inside it is up to you.  At a lower level, the TCP headers already give length
information, and if you can deal with that then you can just as easily deal
with plaintext lengths.

Peter.