Re: [Lwip] Secdir early review of draft-ietf-lwig-curve-representations-08

Russ Housley <housley@vigilsec.com> Tue, 26 November 2019 21:17 UTC

Return-Path: <housley@vigilsec.com>
X-Original-To: lwip@ietfa.amsl.com
Delivered-To: lwip@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1900E120ADF for <lwip@ietfa.amsl.com>; Tue, 26 Nov 2019 13:17:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=unavailable autolearn_force=no
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 iXqEYxiQzXeQ for <lwip@ietfa.amsl.com>; Tue, 26 Nov 2019 13:17:42 -0800 (PST)
Received: from mail.smeinc.net (mail.smeinc.net [209.135.209.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F137C120ADC for <lwip@ietf.org>; Tue, 26 Nov 2019 13:17:41 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail.smeinc.net (Postfix) with ESMTP id E8C2E300B29 for <lwip@ietf.org>; Tue, 26 Nov 2019 16:10:56 -0500 (EST)
X-Virus-Scanned: amavisd-new at mail.smeinc.net
Received: from mail.smeinc.net ([127.0.0.1]) by localhost (mail.smeinc.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id AaW9D1ImHtab for <lwip@ietf.org>; Tue, 26 Nov 2019 16:10:54 -0500 (EST)
Received: from a860b60074bd.fios-router.home (pool-108-51-198-163.washdc.fios.verizon.net [108.51.198.163]) by mail.smeinc.net (Postfix) with ESMTPSA id 41AD530055E; Tue, 26 Nov 2019 16:10:54 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
From: Russ Housley <housley@vigilsec.com>
In-Reply-To: <e7a4a264-b38d-5a0e-0418-90eb9684fc30@gmail.com>
Date: Tue, 26 Nov 2019 16:10:54 -0500
Cc: IETF SecDir <secdir@ietf.org>, lwip@ietf.org, draft-ietf-lwig-curve-representations.all@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <FB616464-3605-443C-924F-42FF35F4E602@vigilsec.com>
References: <157479110201.13605.6894641490219218764@ietfa.amsl.com> <e7a4a264-b38d-5a0e-0418-90eb9684fc30@gmail.com>
To: Rene Struik <rstruik.ext@gmail.com>
X-Mailer: Apple Mail (2.3445.104.11)
Archived-At: <https://mailarchive.ietf.org/arch/msg/lwip/ve0_zfgOiFO2NPKSMfflTvpaHQ0>
Subject: Re: [Lwip] Secdir early review of draft-ietf-lwig-curve-representations-08
X-BeenThere: lwip@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Lightweight IP stack. Official mailing list for IETF LWIG Working Group." <lwip.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lwip>, <mailto:lwip-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lwip/>
List-Post: <mailto:lwip@ietf.org>
List-Help: <mailto:lwip-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lwip>, <mailto:lwip-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Nov 2019 21:17:43 -0000


> On Nov 26, 2019, at 2:54 PM, Rene Struik <rstruik.ext@gmail.com> wrote:
> 
> Dear Russ:
> 
> Thanks for your review (and speedy turn-around).
> 
> Please find below feedback on how I intend to address all but your last remarks (I will reflect on your suggestion as to introductory text with the appendices when looking over Daniel Migault's earlier "guidance of the reader" remarks).
> 
> Best regards, Rene
> 
> On 11/26/2019 12:58 PM, Russ Housley via Datatracker wrote:
>> Reviewer: Russ Housley
>> Review result: Has Issues
>> 
>> I reviewed this document as part of the Security Directorate's ongoing
>> effort to review all IETF documents being processed by the IESG.  These
>> comments were written primarily for the benefit of the Security Area
>> Directors.  Document authors, document editors, and WG chairs should
>> treat these comments just like any other IETF Last Call comments.
>> 
>> Document: draft-ietf-lwig-curve-representations-08
>> Reviewer: Russ Housley
>> Review Date: 2019-11-26
>> IETF LC End Date: unknown
>> IESG Telechat date: unknown
>> 
>> Summary: Has Issues
>> 
>> 
>> Major Concerns:
>> 
>> I am confused by the first paragraph in Section 10.  It says that "An
>> object identifier is requested ...", but then code points for COSE
>> and JOSE (not object identifiers) are requested in the subsection.
>> 
>> I am confused by the second paragraph in Section 10.  It says that
>> "There is *currently* no further IANA action required ...".  Please
>> delete this paragraph.
> 
> RS>> If I remember this correctly, I borrowed this from another draft (but perhaps was somewhat ignorant here about proper formulation). I intend to change the first para to "code points are requested for ....". As to the second para, I believe it has some merit to keep this in, in slightly altered form, e.g.,  as "New object identifiers would be required in case one wishes to specify one or more of the "offspring" protocols exemplified in Section 4.4. Specification hereof is, however, outside scope of the current document."
> 
> <<RS

I do not see how the second paragraph gives any direction regarding the IANA registries.

> 
>> Minor Concerns:
>> 
>> Requirements Language section is out of date.  It should reference
>> RFC 8174 in addition to RFC 2119, as follows:
>> 
>>    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
>>    "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
>>    "OPTIONAL" in this document are to be interpreted as described in
>>    BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all
>>    capitals, as shown here.
> 
> RS>> will do. As minor point (from a non-native speaker's perspective): shouldn't the last part of the above sentence read "if, and only if, these appear...."? <<RS

RFC 8174 calls for this exact text.

> 
>> Section 2 says: "... reuse of existing generic code ...";  I do not know
>> what is meant by "generic".  It either needs to be defined, reworded, or
>> dropped.  I note that elsewhere in the document "existing code" is used.
> RS>> I will add a sentence to that effect, e.g., "(Here, generic code refers to an implementation that does not depend on hardcoded domain parameters (see also Section 6).)" <<RS

Thanks.

>> 
>> I expected Section 9 to say something about public keys being unique
>> identifiers of the private key holder.
> 
> RS>> I will add an extra paragraph to this effect, e.g., "Use of a public key in any protocol for which successful execution evidences knowledge of the corresponding private key implicitly indicates the entity holding this private key.  Reuse of this public key with more than one protocol or more than one protocol instantiation may, therefore, allow traceability of this entity." <<RS

Also, using the same public key with different addresses allows an observer to correlate them.

> 
>> 
>> Some introduction text at the beginning of each Appendix would be very
>> helpful.  Please tell the reader what they will learn by delving into
>> the subsections of the appendix.
> RS>> I will reflect on this somewhat more (while also considering "guidance to the reader" remarks in Daniel Migault's Early IoTDir review).  Broadly speaking, though, inclusion of all these appendices makes the entire docment self-contained, including arithmetic, representations, how-to-convert details, etc. <<RS

Yes, I understand that.  Some of the appendicies have introductory text, but other do not.  I think they all should have introductory text.

>> Nits:
>> 
>> Section 4.2 says: "... at the end of hereof ...".  This does not tell
>> me anything useful.  I suggest deleting this phrase.
> RS>> I will change this to "at the end hereof" (i.e., will remove "of" - a glitch). Here, one can only recover the y-coordinate at the end of the Montgomery ladder, since one needs the x-coordinates of k*G and (k+1)*G to make this work. <<RS

I think it would be better to say: ... at the end of the Montgomery ladder ..."

Russ