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

str4d <str4d@i2pmail.org> Wed, 14 December 2016 11:17 UTC

Return-Path: <str4d@i2pmail.org>
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 80390129D79 for <curdle@ietfa.amsl.com>; Wed, 14 Dec 2016 03:17:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.452
X-Spam-Level:
X-Spam-Status: No, score=-0.452 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_BRBL_LASTEXT=1.449, SPF_PASS=-0.001] autolearn=no 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 3I91TURv3P0L for <curdle@ietfa.amsl.com>; Wed, 14 Dec 2016 03:17:17 -0800 (PST)
Received: from mail01.sigterm.no (mail01.sigterm.no [193.150.121.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6D7A0129D8C for <curdle@ietf.org>; Wed, 14 Dec 2016 03:16:54 -0800 (PST)
Received: from smtp.postman.i2p (unknown [193.150.121.26]) by postman.meeh.i2p (Postfix) with ESMTP id 52A932E50BB for <curdle@ietf.org>; Wed, 14 Dec 2016 12:16:50 +0100 (CET)
X-Virus-Scanned: clamav-milter 0.97 on milter.postman.i2p
X-Mailer: smtp.postman.i2p - Official I2P Mailer
From: str4d <str4d@i2pmail.org>
To: curdle@ietf.org
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="H6HckJJ2D0ENfFu3FmN14BpBtjHxWIpLR"
Message-Id: <20161214105434.418FAADD1C@smtp.postman.i2p>
Date: Wed, 14 Dec 2016 10:54:34 +0000
Archived-At: <https://mailarchive.ietf.org/arch/msg/curdle/N9b9jtG3RqkHjG00l4Ki96UjYv4>
Subject: [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: Wed, 14 Dec 2016 11:17:19 -0000

Hello,

I am currently updating my EdDSA Java library to implement the current
spec for key encoding [0] (previously I used
draft-josefsson-pkix-eddsa-04 for public keys, and the equivalent in
PKCS#8 format for private keys). The example public key given in
draft-ietf-curdle-pkix-03 [1] passes my tests, however the example
private key [2] does not.

It appears that the private key material within the example is 34 bytes,
but according to Section 3.2 of draft-irtf-cfrg-eddsa-08 [3] (which
AFAICT the present draft defers to for encoding), the private key is the
b-bit seed k, which is 32 bytes.

Am I missing something? If the example keys in the present draft are
correct, it would be helpful to add a reference that clarifies their
exact encoding.

Thanks,
Jack Grigg

[0] https://github.com/str4d/ed25519-java/pull/22
[1] https://tools.ietf.org/html/draft-ietf-curdle-pkix-03#section-10.1
[2] https://tools.ietf.org/html/draft-ietf-curdle-pkix-03#section-10.3
[3] https://tools.ietf.org/html/draft-irtf-cfrg-eddsa-08#section-3.2