Re: [TLS] Encrypt-then-MAC again (was Re: padding bug)

Peter Gutmann <> Thu, 05 December 2013 03:35 UTC

Return-Path: <>
Received: from localhost ( []) by (Postfix) with ESMTP id C335A1AE01D for <>; Wed, 4 Dec 2013 19:35:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Status: No, score=-2.002 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=ham
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id dH_funVUcVdj for <>; Wed, 4 Dec 2013 19:35:39 -0800 (PST)
Received: from ( []) by (Postfix) with ESMTP id EDE6C1AE01B for <>; Wed, 4 Dec 2013 19:35:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple;;; q=dns/txt; s=uoa; t=1386214536; x=1417750536; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=HHzXzLUiezbYFjsMZScNuYa/BCTxIgH5E7SGFVXr728=; b=msxCwOTRWoLj6p8kTgIHbblZoZL8EJoFEU/WfN1KExcSohSjkJf6UyAe nSnZN6w8qtCzx8lS6mKAn6BQwpYBKfi/mznR1CUna6DQzQrzoygm3CR9o Mko09i4pRocZszNeuP+l9oS4zravleCWenzO9bzpf1pQKFavV1R50EoRi U=;
X-IronPort-AV: E=Sophos;i="4.93,830,1378814400"; d="scan'208";a="225812388"
X-Ironport-Source: - Outgoing - Outgoing
Received: from ([]) by with ESMTP/TLS/AES128-SHA; 05 Dec 2013 16:35:35 +1300
Received: from ([]) by ([]) with mapi id 14.03.0158.001; Thu, 5 Dec 2013 16:35:34 +1300
From: Peter Gutmann <>
To: "<>" <>
Thread-Topic: [TLS] Encrypt-then-MAC again (was Re: padding bug)
Thread-Index: Ac7xaw59XkIZ/XYYTNCsDtR42mtKbQ==
Date: Thu, 5 Dec 2013 03:35:34 +0000
Message-ID: <>
Accept-Language: en-NZ, en-GB, en-US
Content-Language: en-NZ
x-originating-ip: []
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [TLS] Encrypt-then-MAC again (was Re: padding bug)
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Thu, 05 Dec 2013 03:35:43 -0000

Martin Rex <> writes:

>TLSv1.2 is a royal PITA for TLS clients, because it requires a reconnect
>fallback facility to be implemented by ***EVERY*** application caller client 
>on top of TLS, ***PLUS*** every application caller will have to memorize the 
>fallback for every destination or the latency will be a royal pain for every 
>new handshake after the TLS session expires from the client-side TLS session 
>cache (when client-side session caching is used at all.  

It's a PITA in general because it introduces a bunch of unexplained and more
or less arbitrary restrictions and silly-walk requirements (e.g. if you do
X with algorithm Y then you also need to do Z) which have no effect except to 
break interoperability.  Things mostly work at the moment because by mutual
unspoken consensus implementers ignore some of the sillier requirements, or
because there's a common mode like using SHA-256 everywhere that seems to 
work OK for all implementations.  At some point in the future though this is 
going to cause headaches when other implementations that don't know how to
interpret the spec in order to make things work come along.