Re: [Curdle] Key examples in draft-ietf-curdle-pkix-03

Russ Housley <housley@vigilsec.com> Thu, 15 December 2016 15:53 UTC

Return-Path: <housley@vigilsec.com>
X-Original-To: curdle@ietfa.amsl.com
Delivered-To: curdle@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 967E6129981 for <curdle@ietfa.amsl.com>; Thu, 15 Dec 2016 07:53:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.899
X-Spam-Level:
X-Spam-Status: No, score=-101.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, USER_IN_WHITELIST=-100] autolearn=ham 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 KEM7Vb5XJxao for <curdle@ietfa.amsl.com>; Thu, 15 Dec 2016 07:53:41 -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 66B5A120727 for <curdle@ietf.org>; Thu, 15 Dec 2016 07:53:41 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail.smeinc.net (Postfix) with ESMTP id 3AFB9300288 for <curdle@ietf.org>; Thu, 15 Dec 2016 10:43:24 -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 ZF0qbD3aEqlY for <curdle@ietf.org>; Thu, 15 Dec 2016 10:43:23 -0500 (EST)
Received: from [192.168.2.100] (pool-108-45-101-150.washdc.fios.verizon.net [108.45.101.150]) by mail.smeinc.net (Postfix) with ESMTPSA id 2F7A1300260 for <curdle@ietf.org>; Thu, 15 Dec 2016 10:43:23 -0500 (EST)
From: Russ Housley <housley@vigilsec.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_F7293D66-163D-4C83-ACCE-4715455BD09D"
Message-Id: <0357C7C6-8E15-4767-9C55-11F2318FB3E4@vigilsec.com>
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Date: Thu, 15 Dec 2016 10:53:42 -0500
References: <20161214105434.418FAADD1C@smtp.postman.i2p> <20161214121515.GA10791@LK-Perkele-V2.elisa-laajakaista.fi> <20161214132326.29D3BADD12@smtp.postman.i2p> <20161215043852.11033ADD1E@smtp.postman.i2p> <CAF8qwaA_=5=BEXX5SKvaJNp-W1C8FmnwnmJ2V3qi9=s1J+atpw@mail.gmail.com>
To: curdle@ietf.org
In-Reply-To: <CAF8qwaA_=5=BEXX5SKvaJNp-W1C8FmnwnmJ2V3qi9=s1J+atpw@mail.gmail.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/curdle/eGNHn04Q8kvJOSkiRAbfGO4sRrM>
Subject: Re: [Curdle] Key examples in draft-ietf-curdle-pkix-03
X-BeenThere: curdle@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "List for discussion of potential new security area wg." <curdle.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/curdle>, <mailto:curdle-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/curdle/>
List-Post: <mailto:curdle@ietf.org>
List-Help: <mailto:curdle-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/curdle>, <mailto:curdle-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Dec 2016 15:53:44 -0000

>> Additionally, it is somewhat strange that the same document
> (draft-irtf-cfrg-eddsa-08) would define that the public key requires no
> additional OCTET STRING wrapping, while the private key does. I
> personally don't have a problem implementing it this way if that is what
> the WG decides, but one of the two documents needs to be updated
> regardless of whether or not this is changed (either to change it or to
> clarify the encoding).
>  
> Even if it stays as-is, I do not think draft-irtf-cfrg-eddsa should be changed to mention the OCTET STRING wrapping. EdDSA public and private keys are encoded as specified by draft-irtf-cfrg-eddsa-08. If you just need to store one of those, you use it. Neither use ASN.1 at that layer since there's no need. Serialization asks for a byte string, and we already have a way to return a byte string.

I do not see any OCTET STRING wrapping in the test vectors in section 7 of draft-irtf-cfrg-eddsa-08.

Russ