Re: [Cfrg] Acceptance call for draft-mcgrew-hash-sigs-02.txt

Daniel Kahn Gillmor <dkg@fifthhorseman.net> Thu, 25 September 2014 15:52 UTC

Return-Path: <dkg@fifthhorseman.net>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E055F1A8033 for <cfrg@ietfa.amsl.com>; Thu, 25 Sep 2014 08:52:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] 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 Km6RLY0Zz5BG for <cfrg@ietfa.amsl.com>; Thu, 25 Sep 2014 08:52:09 -0700 (PDT)
Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108]) by ietfa.amsl.com (Postfix) with ESMTP id 4B3FB1A8030 for <cfrg@irtf.org>; Thu, 25 Sep 2014 08:52:09 -0700 (PDT)
Received: from [10.70.10.54] (unknown [38.109.115.130]) by che.mayfirst.org (Postfix) with ESMTPSA id 09F1FF984; Thu, 25 Sep 2014 11:52:05 -0400 (EDT)
Message-ID: <54243A19.9080807@fifthhorseman.net>
Date: Thu, 25 Sep 2014 11:51:53 -0400
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Icedove/32.0
MIME-Version: 1.0
To: David Jacobson <dmjacobson@sbcglobal.net>, Alexey Melnikov <alexey.melnikov@isode.com>, "cfrg@irtf.org" <cfrg@irtf.org>
References: <5416032F.5040904@isode.com> <54242BAF.2020609@sbcglobal.net>
In-Reply-To: <54242BAF.2020609@sbcglobal.net>
Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="87xvjsIgNwlB6XxHidMrGcoE63gajHMoW"
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/hmwFANmUiphAN0sS_iWXFaI87WU
Subject: Re: [Cfrg] Acceptance call for draft-mcgrew-hash-sigs-02.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2014 15:52:11 -0000

On 09/25/2014 10:50 AM, David Jacobson wrote:
> On 9/14/14, 2:05 PM, Alexey Melnikov wrote:
>> http://datatracker.ietf.org/doc/draft-mcgrew-hash-sigs/

> In the draft there are these definitions
> 
> If r is a non-negative real number, then we define the following
>    functions:
> 
>       ceil(r) : returns the smallest integer larger than r
> 
>       floor(r) : returns the largest integer smaller than r
> 
>       lg(r) : returns the base-2 logarithm of r
> 
> The definition of floor is incorrect. "smaller than" should be replaced
> with "equal to or smaller than", or perhaps "not larger than".


By the same token, the definition of ceil(r) is also incorrect.

in commonly-accepted terms:

 ceil(4.0) = 4

but according to the definition stated, it should be 5.

it should be:

ceil(r) : returns the smallest integer greater than or equal to r

floor(r) : returns the largest integer less than or equal to r

	--dkg