Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N7ull-0001aU-9c for mharc-grub-devel@gnu.org; Tue, 10 Nov 2009 12:44:41 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7ulj-0001Y4-Hq for grub-devel@gnu.org; Tue, 10 Nov 2009 12:44:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7ule-0001Nm-9E for grub-devel@gnu.org; Tue, 10 Nov 2009 12:44:38 -0500 Received: from [199.232.76.173] (port=34426 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7ule-0001NT-3W for grub-devel@gnu.org; Tue, 10 Nov 2009 12:44:34 -0500 Received: from esemetz.metz.supelec.fr ([193.48.224.212]:59979) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N7uld-0001Ok-Ks for grub-devel@gnu.org; Tue, 10 Nov 2009 12:44:33 -0500 Received: from mx1.metz.supelec.fr (mx1.metz.supelec.fr [193.48.224.216]) by esemetz.metz.supelec.fr (8.14.1/8.14.1) with ESMTP id nAAHiWIZ028740 for ; Tue, 10 Nov 2009 18:44:32 +0100 Received: from [127.0.0.1] (duboucher.rez-metz.supelec.fr [193.48.225.222] (may be forged)) by mx1.metz.supelec.fr (8.14.1/8.14.1) with ESMTP id nAAHiRvd004987 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 10 Nov 2009 18:44:27 +0100 Message-ID: <4AF9A638.7090503@duboucher.eu> Date: Tue, 10 Nov 2009 18:43:20 +0100 From: Duboucher Thomas User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: The development of GNU GRUB References: <20091109010422.GA23417@thorin> <4AF885EE.7000709@duboucher.eu> <4AF88AEF.8010102@gmail.com> <4AF977DD.5090801@duboucher.eu> In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=A79F86A8 Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: ClamAV 0.94.1/10005/Mon Nov 9 21:23:43 2009 on mx1.metz.supelec.fr X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (esemetz.metz.supelec.fr [193.48.224.212]); Tue, 10 Nov 2009 18:44:32 +0100 (CET) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (mx1.metz.supelec.fr [193.48.224.216]); Tue, 10 Nov 2009 18:44:32 +0100 (CET) Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by esemetz.metz.supelec.fr id nAAHiWIZ028740 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: Imminent bugfix release (1.97.1) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Nov 2009 17:44:40 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bean a =E9crit : >=20 > Hi, >=20 > My previous function ensures that execution time is the same > regardless of the input. Although it's not necessary, I guess it's a > nice feature to have. BTW, the simpler function does leak one > information, the size of buffer as the execution time would increase > until the buffer size is reached. >=20 Hi, Yes, constant time of execution _is_ a constraint of this function. However, I don't think that giving access to the size of the buffer is a leak per se, the source code of Grub being available for everyone; We only need not to leak more informations than already available. Thomas. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr5pjgACgkQBV7eXqefhqhm8ACfVefuwV/IVdB2NzWrPeEzksfs jeIAn1xmJzNWwTa1gKdjvA/o4MQSLsLI =3Dn0nc -----END PGP SIGNATURE-----