Re: [lamps] dtaft-ietf-lamps-cmp-updates and rsaKeyLen

Russ Housley <housley@vigilsec.com> Fri, 18 September 2020 13:29 UTC

Return-Path: <housley@vigilsec.com>
X-Original-To: spasm@ietfa.amsl.com
Delivered-To: spasm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 729DF3A0812 for <spasm@ietfa.amsl.com>; Fri, 18 Sep 2020 06:29:31 -0700 (PDT)
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, SPF_HELO_NONE=0.001, SPF_NONE=0.001] 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 REUrT7MYPqk9 for <spasm@ietfa.amsl.com>; Fri, 18 Sep 2020 06:29:30 -0700 (PDT)
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 1A5693A07EF for <spasm@ietf.org>; Fri, 18 Sep 2020 06:29:30 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mail.smeinc.net (Postfix) with ESMTP id 6B2DB300AA4 for <spasm@ietf.org>; Fri, 18 Sep 2020 09:29:27 -0400 (EDT)
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 P-iHLh6e5pph for <spasm@ietf.org>; Fri, 18 Sep 2020 09:29:26 -0400 (EDT)
Received: from a860b60074bd.fios-router.home (pool-141-156-161-153.washdc.fios.verizon.net [141.156.161.153]) by mail.smeinc.net (Postfix) with ESMTPSA id 161BF300AA2; Fri, 18 Sep 2020 09:29:25 -0400 (EDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.15\))
From: Russ Housley <housley@vigilsec.com>
In-Reply-To: <AM0PR10MB2418EE32B86335DEADEBB2C8FE3F0@AM0PR10MB2418.EURPRD10.PROD.OUTLOOK.COM>
Date: Fri, 18 Sep 2020 09:29:27 -0400
Cc: "spasm@ietf.org" <spasm@ietf.org>, "david.von.oheimb@siemens.com" <david.von.oheimb@siemens.com>
Content-Transfer-Encoding: quoted-printable
Message-Id: <A997BF81-E150-46F9-8D02-1E5125BB391F@vigilsec.com>
References: <AM0PR10MB2418651EF480383C1FBAD448FE440@AM0PR10MB2418.EURPRD10.PROD.OUTLOOK.COM> <ECF4A046-3690-4B8A-9851-935CDACA89C2@vigilsec.com> <AM0PR10MB241896142536A43A77C92C05FE210@AM0PR10MB2418.EURPRD10.PROD.OUTLOOK.COM> <CFB4BA33-4F63-4825-A5D6-DA3D6A4F721E@vigilsec.com> <AM0PR10MB2418EE32B86335DEADEBB2C8FE3F0@AM0PR10MB2418.EURPRD10.PROD.OUTLOOK.COM>
To: "Brockhaus, Hendrik" <hendrik.brockhaus@siemens.com>
X-Mailer: Apple Mail (2.3445.104.15)
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/aO1T5h7l2TJgRuOhGVH7N93EdI4>
Subject: Re: [lamps] dtaft-ietf-lamps-cmp-updates and rsaKeyLen
X-BeenThere: spasm@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "This is a venue for discussion of doing Some Pkix And SMime \(spasm\) work." <spasm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spasm>, <mailto:spasm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spasm/>
List-Post: <mailto:spasm@ietf.org>
List-Help: <mailto:spasm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spasm>, <mailto:spasm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 18 Sep 2020 13:29:31 -0000

Hendrik:

>>>> The ASN.1 modules add rsaKeyLen, but the body of the document does
>>>> not say anything.  I think it should explain the new field.
>>> 
>>> You are right. I will add a brief explanation to the respective section.
>>> 
>>>> 
>>>> The ASN.1 module comment is the only hint right now:
>>>> 
>>>>     -- Any reasonable RSA key length, if subjectPublicKeyInfo
>>>>     -- of the certTemplate has the OID rsaEncryption.
>>>> 
>>>> Also, if the certTemplate has the OID id-ecPublicKey, is a similar
>>>> convention needed to provide a list of supported curves?
>>> 
>>> For rsaKeyLen it is possible to specify one key length and for id-ecPublicKey it
>> is possible to specify one named curve in ECParameters. I think we are
>> consistent in this regard.
>>> If an RA needs to offer a set of allowed algorithms or curves, it can use the
>> Signing Key Pair Types general message as specified in RFC 4210 Section
>> 5.3.19.2.
>> 
>> Okay.  That means that id-ecPublicKey would appear many times, once for each
>> curve.  Can we add text to say that?
> 
> Right, a genRep can carry a sequence of InfoTypeAndValue and therefore a sequence of offered algorithms.
> - In the case of 5.3.19.2 it could be a number of id-ecPublicKey structures.
> - In the case of id-it-certReqTemplate (Lightweight CMP Profile, Section 4.4.4) we did not allow this case, but yes, we could change Lightweight CMP Profile Section 4.4.1 accordingly to offer it.
> I can add a sentence to RFC 4210 Section 5.3.20 to explicitly state that several InfoTypeAndValues of the same type are allowed.
> Did I get your suggestion right?

That seems like a fine way to move forward.

> I will respond to your second suggestion on using Controls separately.

That is an alternative to the above.

Russ