Re: [COSE] draft-prorock-cose-post-quantum-signatures [Was: Re: Call for COSE Agenda Items for IETF 113 in Vienna]
Anders Rundgren <anders.rundgren.net@gmail.com> Fri, 11 March 2022 16:33 UTC
Return-Path: <anders.rundgren.net@gmail.com>
X-Original-To: cose@ietfa.amsl.com
Delivered-To: cose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1])
by ietfa.amsl.com (Postfix) with ESMTP id 52C783A0848
for <cose@ietfa.amsl.com>; Fri, 11 Mar 2022 08:33:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.109
X-Spam-Level:
X-Spam-Status: No, score=-2.109 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, FREEMAIL_FROM=0.001,
NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001]
autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.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 D1XRpu289l80 for <cose@ietfa.amsl.com>;
Fri, 11 Mar 2022 08:33:54 -0800 (PST)
Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com
[IPv6:2a00:1450:4864:20::32d])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id 6C3E03A0831
for <cose@ietf.org>; Fri, 11 Mar 2022 08:33:54 -0800 (PST)
Received: by mail-wm1-x32d.google.com with SMTP id q20so5434180wmq.1
for <cose@ietf.org>; Fri, 11 Mar 2022 08:33:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=message-id:date:mime-version:user-agent:subject:content-language:to
:references:from:in-reply-to:content-transfer-encoding;
bh=LxZZXFXVvjLjpbkf5NPgYiYhqZXF2l77FUjg2SB76yU=;
b=hUlUTazeLpynz8J9TDfzHKKnUFzolUoIXhqP5GU9wiXNXQ7K20RpFr8b92J5VqwFrG
75xuk4QfvNNHXvCZsrtc77L5R4LF3RbBgBCTqQIPCihanidSg2SDMiZYmOHweNdWJg+n
TXF+svu/RWCGAYH4ILyWTgIxDtI6M+4/O96+GJW2VZ6+gveAVtw46D3poZv5fy3Aat1m
i1t+9VQrZE3Bl+3iT75MFsi98zPO6J+yk+jUNXMz+TLsRxl4FTjlzQDiR+q/3T9nW/r3
EvkiDH3OWf91WQ+9ErKwzk2iCpMbdzLhmUCa1qn6bG3p9P3N8OZsieHHjQ9ylXCGby71
RgFA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
:content-language:to:references:from:in-reply-to
:content-transfer-encoding;
bh=LxZZXFXVvjLjpbkf5NPgYiYhqZXF2l77FUjg2SB76yU=;
b=aAuvtYaw+edcH9nXVESKE+rGTg4V04h6jnjBnGehtPn97HtWMIt6Sm9WQB/j3Mx0qv
a1IldmJVn76N4d8dlfgsT5Zg9SMgv8kzHFoUHD641aDrZ4xUv9egcFnliG3n0dKGX648
D6fM2IScewp1HDA9dmlSVNDioT53N5oMit4wWyd8ZHz94jOKMetHR/9uKpC0U03T2nXr
PPu8HDsiRZWqBpMlzTy+nUskE+nJRG+m8Mg5oJpVTMPMXYj60yNcOlvflt+NcktcxIei
2yu7e8ukZmoFu3m5xock3hA7XOomb4SSSCC2zQFIonjTWar9BX2aBcdzMlMVRImweG8U
26oA==
X-Gm-Message-State: AOAM530kqNaG3lUi9OCQcvTeqsqL1vJFNt+5CoE2nCLZ11v8eL5MuQkq
UlssVDJXYRFu/XsTW7Fgo7c7vbv4dUY=
X-Google-Smtp-Source: ABdhPJz6lvI0K3U6dUAx6XmxdwgbHT1NCY3ic79XKSbiL4W2VGTlb75ibujk+hEXphwsY8ECSuWxoQ==
X-Received: by 2002:a7b:cc15:0:b0:381:3fb8:5f93 with SMTP id
f21-20020a7bcc15000000b003813fb85f93mr16417703wmh.106.1647016432499;
Fri, 11 Mar 2022 08:33:52 -0800 (PST)
Received: from [192.168.1.67] (25.131.146.77.rev.sfr.net. [77.146.131.25])
by smtp.googlemail.com with ESMTPSA id
w7-20020a1cf607000000b00389a5390180sm7649614wmc.25.2022.03.11.08.33.51
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Fri, 11 Mar 2022 08:33:51 -0800 (PST)
Message-ID: <15470fe2-c88d-5274-3b21-bfcc86c7f085@gmail.com>
Date: Fri, 11 Mar 2022 17:33:49 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.2
Content-Language: en-US
To: Ilari Liusvaara <ilariliusvaara@welho.com>, "cose@ietf.org" <cose@ietf.org>
References: <SA2PR00MB1002092057CE9580A4029532F50B9@SA2PR00MB1002.namprd00.prod.outlook.com>
<CAGJKSNSVuvmsdy9PmUGW7_a2kGqvAxW0fv+hOqSKE6ZfeagSWw@mail.gmail.com>
<Yio968v//v87+fTH@LK-Perkele-VII2.locald>
<40bf177b-9ac4-f1ed-db05-a0e8636a9363@gmail.com>
<Yit0xOrYJSQXxkMy@LK-Perkele-VII2.locald>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
In-Reply-To: <Yit0xOrYJSQXxkMy@LK-Perkele-VII2.locald>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/NDJDBFlQPZ_8PMcrY8Wf8Tgp3tM>
Subject: Re: [COSE] draft-prorock-cose-post-quantum-signatures [Was: Re:
Call for COSE Agenda Items for IETF 113 in Vienna]
X-BeenThere: cose@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cose>,
<mailto:cose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cose/>
List-Post: <mailto:cose@ietf.org>
List-Help: <mailto:cose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cose>,
<mailto:cose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 11 Mar 2022 16:33:56 -0000
Hi Ilari, I fully understand what you are saying and how OKP was supposed to work. That everything in crypto-land isn't great is also true. However, overloading established identifiers is seldom a good idea because it obviously requires changes in well-functioning code. I also believe that from a marketing point of view post-quantum algorithms may be entitled their own "kty" :) If it is sufficient with one is beyond my insight in the matter... In the draft I also found additional optional fields which doesn't have an OKP counterpart. Cheers, Anders On 2022-03-11 17:11, Ilari Liusvaara wrote: > On Fri, Mar 11, 2022 at 05:23:48AM +0100, Anders Rundgren wrote: >> Before deciding to overload "OKP" for a new crypto system, I would discuss the matter with maintainers of cryptographic libraries and APIs. >> >> In the Java platform overloading the native counterparts to OKP keys >> [1,2] won't happen because that would break a lot. I guess the same >> is valid for OpenSSL. > > The way it is supposed to work is to use the raw key parts as key > material in underlying cryptographic implementation. Implementations > where that is not possible are just broken. > >> It seems to me that reusing OKP would rather create an artificial >> "semantic gap" which doesn't exist today where "kty" indeed is >> synonymous with key type/family (RSA, EC, Ed etc): >> https://datatracker.ietf.org/doc/html/rfc7517#section-4.1 > > There are already two "subtypes" of OKP keys that are not > interchangeable: > > - Key agreement keys. > - Signature keys. > > NISTPQC signatures would fit into signature keys "subtype", but NISTPQC > KEMs will not fit into the key agreement keys "subtype", so that would > be a third "subtype" (all NISTPQC algorithms have OKP-style key format, > as this was required by NIST). > > > This is very different from RSA and EC2, where there are no subtypes, > and all keys are interchangeable. > > > Another place similar multi-subtype non-interchangeable keys are seen > is symmetric algorithms, as there are at least two "subtypes": > > - AE(AD) Encryption keys. > - MAC keys. > > > > -Ilari > > _______________________________________________ > COSE mailing list > COSE@ietf.org > https://www.ietf.org/mailman/listinfo/cose
- [COSE] Call for COSE Agenda Items for IETF 113 in… Mike Jones
- Re: [COSE] Call for COSE Agenda Items for IETF 11… Mike Jones
- Re: [COSE] Call for COSE Agenda Items for IETF 11… Mike Jones
- Re: [COSE] Call for COSE Agenda Items for IETF 11… Anders Rundgren
- Re: [COSE] Call for COSE Agenda Items for IETF 11… Mike Prorock
- Re: [COSE] Call for COSE Agenda Items for IETF 11… Hannes Tschofenig
- [COSE] draft-prorock-cose-post-quantum-signatures… Ilari Liusvaara
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Anders Rundgren
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Mike Prorock
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Russ Housley
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Mike Jones
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Anders Rundgren
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Ilari Liusvaara
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Mike Prorock
- Re: [COSE] Call for COSE Agenda Items for IETF 11… Göran Selander
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Orie Steele
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Orie Steele
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Anders Rundgren
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Mike Prorock
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Mike Jones
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Mike Prorock
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Ilari Liusvaara
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Ilari Liusvaara
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Rafael Misoczki
- Re: [COSE] draft-prorock-cose-post-quantum-signat… John K
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Anders Rundgren
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Ilari Liusvaara
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Ilari Liusvaara
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Russ Housley
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Anders Rundgren
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Rafael Misoczki
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Russ Housley
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Anders Rundgren
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Ilari Liusvaara
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Russ Housley
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Orie Steele
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Mike Jones
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Orie Steele
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Anders Rundgren
- Re: [COSE] draft-prorock-cose-post-quantum-signat… David Waite
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Mike Prorock
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Anders Rundgren
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Russ Housley
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Orie Steele
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Mike Prorock
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Mike Prorock
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Mike Prorock
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Ilari Liusvaara
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Ilari Liusvaara
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Russ Housley
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Mike Prorock
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Michael Richardson
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Mike Jones
- Re: [COSE] draft-prorock-cose-post-quantum-signat… Mike Jones