Re: [Cfrg] draft-irtf-cfrg-curves question

Ilari Liusvaara <ilariliusvaara@welho.com> Mon, 28 December 2015 19:29 UTC

Return-Path: <ilariliusvaara@welho.com>
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 834CA1AC3CF for <cfrg@ietfa.amsl.com>; Mon, 28 Dec 2015 11:29:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 UfZWZF3YmFxt for <cfrg@ietfa.amsl.com>; Mon, 28 Dec 2015 11:29:56 -0800 (PST)
Received: from welho-filter4.welho.com (welho-filter4.welho.com [83.102.41.26]) by ietfa.amsl.com (Postfix) with ESMTP id 09CA61AC3CE for <Cfrg@irtf.org>; Mon, 28 Dec 2015 11:29:56 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by welho-filter4.welho.com (Postfix) with ESMTP id 00045231A; Mon, 28 Dec 2015 21:29:54 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from welho-smtp1.welho.com ([IPv6:::ffff:83.102.41.84]) by localhost (welho-filter4.welho.com [::ffff:83.102.41.26]) (amavisd-new, port 10024) with ESMTP id u8T-RfCLy3Z2; Mon, 28 Dec 2015 21:29:54 +0200 (EET)
Received: from LK-Perkele-V2 (87-92-35-116.bb.dnainternet.fi [87.92.35.116]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by welho-smtp1.welho.com (Postfix) with ESMTPSA id B1C1C27A; Mon, 28 Dec 2015 21:29:54 +0200 (EET)
Date: Mon, 28 Dec 2015 21:29:54 +0200
From: Ilari Liusvaara <ilariliusvaara@welho.com>
To: Jim Schaad <ietf@augustcellars.com>
Message-ID: <20151228192953.GB5684@LK-Perkele-V2.elisa-laajakaista.fi>
References: <04db01d141a4$028c34c0$07a49e40$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
In-Reply-To: <04db01d141a4$028c34c0$07a49e40$@augustcellars.com>
User-Agent: Mutt/1.5.24 (2015-08-30)
Sender: ilariliusvaara@welho.com
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/7N6Swo_NmObMVxDJFG37cK2xnco>
Cc: "'cfrg@irtf.org'" <Cfrg@irtf.org>
Subject: Re: [Cfrg] draft-irtf-cfrg-curves question
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
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: Mon, 28 Dec 2015 19:29:57 -0000

On Mon, Dec 28, 2015 at 11:14:43AM -0800, Jim Schaad wrote:
> In the process of going through an implementation and dealing with the
> latest set of questions about non reduced public keys, I ended up with a
> question that has some implementations
> 
> If the public key I am given has not be reduced, then I compute
> 
> K_B' = K_B mod p
> 
> Now when I run the KDF function, I am supposed to include K, K_A and K_B in
> the key derivation step.  The question is should I be using K_B or K_B'?

Well, as a datapoint, do that in TLS 1.3 or TLS 1.2-EMS and it will hash K_B
(as it would in SSH).

And with ECDH-ES/ECDH-SS, that's matter of distributing the public keys
correctly.


-Ilari