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

Russ Housley <housley@vigilsec.com> Mon, 21 September 2020 16:10 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 B52A93A09C4 for <spasm@ietfa.amsl.com>; Mon, 21 Sep 2020 09:10:54 -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 s0HqFiouPu9O for <spasm@ietfa.amsl.com>; Mon, 21 Sep 2020 09:10:53 -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 8F25D3A09C3 for <spasm@ietf.org>; Mon, 21 Sep 2020 09:10:53 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mail.smeinc.net (Postfix) with ESMTP id 402CD300BB1 for <spasm@ietf.org>; Mon, 21 Sep 2020 12:10:51 -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 z8NdJKI6RXAH for <spasm@ietf.org>; Mon, 21 Sep 2020 12:10:49 -0400 (EDT)
Received: from [192.168.1.161] (pool-141-156-161-153.washdc.fios.verizon.net [141.156.161.153]) by mail.smeinc.net (Postfix) with ESMTPSA id 66015300BAF; Mon, 21 Sep 2020 12:10:49 -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: <AM0PR10MB241834D3212142CE41D2F347FE3A0@AM0PR10MB2418.EURPRD10.PROD.OUTLOOK.COM>
Date: Mon, 21 Sep 2020 12:10:49 -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: <BF69ACE6-2B7E-412C-8ED7-6311E6DAB1E4@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> <A997BF81-E150-46F9-8D02-1E5125BB391F@vigilsec.com> <AM0PR10MB241834D3212142CE41D2F347FE3A0@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/mEwouniesTSUnsp-KR1oKkeF1uw>
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: Mon, 21 Sep 2020 16:10:55 -0000

Hendrik:

>>> 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 agree. 
> But I just think I caused a little confusion above. I will try to sort this out:
> - 5.3.19.2 and 5.3.19.3 already allow for a list of AlgorithmIdentifier. This should be fine except that one cannot specify RSA key lengths this way.

Right.  As already pointes out on the list, this applies to RSA-PSS and RSA-OAEP as well as the umbrella RSA OID (rsaEncryption) that is in the current document.

In addition, DSA and Diffie-Hellman also have the need to name a group.  This is usually done by the Dss-Parms structure and the DomainParameters structure, respectively, (Both structures are defined in RFC 3279, and the were originally defined in RFC 2459.)

> - If id-it-certReqTemplate uses the new Controls element (instead of rsaKeyLen) it also allows specifying several AlgorithmIdentifier elements and in addition also several RSA key lengths.
> Therefore I feel like there is no need to add a note to 5.3.20 to point out that it is allowed to return several InfoTypeAndValue elements of same type but different values.
> Do we have the same understanding?

Yes.

Russ