Re: [TLS] Diffie-Hellman: value of Z - the shared secret - without leading zero octets
Peter Gutmann <pgut001@cs.auckland.ac.nz> Tue, 29 March 2016 11:55 UTC
Return-Path: <pgut001@cs.auckland.ac.nz>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6312712D725 for <tls@ietfa.amsl.com>; Tue, 29 Mar 2016 04:55:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.21
X-Spam-Level:
X-Spam-Status: No, score=-4.21 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=auckland.ac.nz
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 viw85v51qG5b for <tls@ietfa.amsl.com>; Tue, 29 Mar 2016 04:55:41 -0700 (PDT)
Received: from mx4.auckland.ac.nz (mx4.auckland.ac.nz [130.216.125.248]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B8CCB12D714 for <tls@ietf.org>; Tue, 29 Mar 2016 04:55:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=mail; t=1459252540; x=1490788540; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=cGIlSsO2hHbm6STcKtCKzsmT95EW8taQsvROwDSXO5A=; b=kkzji6FXDZpJpHRwNW7yQfhDolF6UceuQ0GOecggoduMhXHfcVhMOFOA o2+ftNDa0l0CklGuuE/mjnhSh1kOnNJoKaIcPnpSwvdllip/mL9ZYy+zg fRVzyfnX0m88o+zVIPCK7WfVIxJonM2fTlk1lYi1w6XG6raKelTFY0w8I vNVMt97U9x3/ycnS0HQfWdKuQyTjj8DU2BKeBu3pWF0FYdnCx7gxR4itG OaLQcW3RFb2Iwgs3v5rjGruFmeGPTvZte/vfMkLY5550ZlL8lV/XXg2yH llCXchqHZwZzEok+JFe7lDLHKXc8rRYyTOT4guO94JX3JuLiJ1BDL9CmD g==;
X-IronPort-AV: E=Sophos;i="5.24,410,1454929200"; d="scan'208";a="76855663"
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 Mar 2016 00:55:38 +1300
Received: from UXCN10-TDC05.UoA.auckland.ac.nz ([169.254.9.241]) by uxchange10-fe2.UoA.auckland.ac.nz ([130.216.4.106]) with mapi id 14.03.0266.001; Wed, 30 Mar 2016 00:55:37 +1300
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: Bill Cox <waywardgeek@google.com>, Maarten Bodewes <maarten.bodewes@gmail.com>
Thread-Topic: [TLS] Diffie-Hellman: value of Z - the shared secret - without leading zero octets
Thread-Index: AQHRiQq1dTdCf45MpkuvAb6y4KP8j59uK7+AgAIl3iQ=
Date: Tue, 29 Mar 2016 11:55:37 +0000
Message-ID: <9A043F3CF02CD34C8E74AC1594475C73F4C3090C@uxcn10-tdc05.UoA.auckland.ac.nz>
References: <CADwHJ+9XCpEDtX6vE+TQXKwz1MEhXHkj5Xbua6vAY_03Q=6LDA@mail.gmail.com>, <CAH9QtQHAYPUpm7GAj9_NPNmg0ca9NXy2vNoq0wJMBYW_1S-S0g@mail.gmail.com>
In-Reply-To: <CAH9QtQHAYPUpm7GAj9_NPNmg0ca9NXy2vNoq0wJMBYW_1S-S0g@mail.gmail.com>
Accept-Language: en-NZ, en-GB, en-US
Content-Language: en-NZ
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.6.3.3]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/LJi6XCE7AawhleegWX7X8G1Lr3M>
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Diffie-Hellman: value of Z - the shared secret - without leading zero octets
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Mar 2016 11:55:46 -0000
Bill Cox <waywardgeek@google.com> writes: >I spent 2 weeks last year tracking down a flaky bug that only occurs once in >every 256 connection: the leading 0 byte was no longer being stripped in a >code change I ported from OpenSSL master, and only Maria DB ran random tests >enough to trigger this condition. My self-test code includes 1K iterations of various PKC ops in mechanisms that are sensitive to leading-zero truncation (PGP springs to mind) to detect this. Without this, it's mostly blind luck as to whether your self-test hits the 1/256 one that triggers the problem. Having to design coverage tests is hard enough, but when you need to iterate them to find problems... Peter.
- Re: [TLS] Diffie-Hellman: value of Z - the shared… Maarten Bodewes
- [TLS] Diffie-Hellman: value of Z - the shared sec… Maarten Bodewes
- Re: [TLS] Diffie-Hellman: value of Z - the shared… Bill Cox
- Re: [TLS] Diffie-Hellman: value of Z - the shared… Peter Gutmann
- Re: [TLS] Diffie-Hellman: value of Z - the shared… Russ Housley
- Re: [TLS] Diffie-Hellman: value of Z - the shared… David Benjamin
- Re: [TLS] Diffie-Hellman: value of Z - the shared… David Benjamin
- Re: [TLS] Diffie-Hellman: value of Z - the shared… Russ Housley