[CFRG] Proposed resolution for erratum 5930 on RFC 8032

Alexey Melnikov <alexey.melnikov@isode.com> Fri, 15 January 2021 17:39 UTC

Return-Path: <alexey.melnikov@isode.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5564F3A0EE1 for <cfrg@ietfa.amsl.com>; Fri, 15 Jan 2021 09:39:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=isode.com
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 R7vPiAViMu9B for <cfrg@ietfa.amsl.com>; Fri, 15 Jan 2021 09:39:45 -0800 (PST)
Received: from statler.isode.com (Statler.isode.com [62.232.206.189]) by ietfa.amsl.com (Postfix) with ESMTP id 3694C3A0ECB for <cfrg@irtf.org>; Fri, 15 Jan 2021 09:39:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1610732384; d=isode.com; s=june2016; i=@isode.com; bh=pDoRx69yxbAyLAZr1HjN2B1ySGofytqXhkORJtOeYHo=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=prFqlvG8CFK+xlph0fvtBBEHWRrjP/Mh7EBf4ly6SossRqhpzioyZ5GfeiIuFPGPT1SnHj 8h+WYa1HeIJumzUQGQjBrej/YL0o/6Me9JDt3KZEejMAxNW7VrNJfYe6OUG26drMK6Etjt d0+v1Kp+UUcsUjp7VvOe219DmVstgBY=;
Received: from [172.27.249.250] (connect.isode.net [172.20.0.72]) by statler.isode.com (submission channel) via TCP with ESMTPSA id <YAHTXwBqmhOd@statler.isode.com>; Fri, 15 Jan 2021 17:39:43 +0000
To: Simon Josefsson <simon@josefsson.org>, Ilari Liusvaara <ilariliusvaara@welho.com>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
From: Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <42fdca41-bfdd-9d75-b144-0e2f3b5fa1d9@isode.com>
Date: Fri, 15 Jan 2021 17:39:22 +0000
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-GB
Content-transfer-encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/_xne3cnOFyZf48ANwRMMrQ_kVJo>
Subject: [CFRG] Proposed resolution for erratum 5930 on RFC 8032
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Fri, 15 Jan 2021 17:39:46 -0000

Dear CFRG (and editors),

Daniel Bleichenbacher submitted the following editorial erratum on RFC 
8032 ("Edwards-Curve Digital Signature Algorithm (EdDSA)")

Section 6 says:

OLD:

def verify(public, msg, signature):
     if len(public) != 32:
         raise Exception("Bad public key length")
     if len(signature) != 64:
         Exception("Bad signature length")

It should say:

def verify(public, msg, signature):
     if len(public) != 32:
         raise Exception("Bad public key length")
     if len(signature) != 64:
         raise Exception("Bad signature length")


Note: Missing raise before Exception

-------------------

This is indeed looks like a Python syntax error. So I propose to resolve 
this erratum as suggested by Daniel.

Please provide your feedback by the end of January 29th.


Best Regards,

Alexey, as a co-chair