Re: [lamps] WG Last Call for draft-housley-lamps-cms-kemri

David von Oheimb <it@von-Oheimb.de> Thu, 13 July 2023 06:57 UTC

Return-Path: <it@von-Oheimb.de>
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 3B250C13AE37 for <spasm@ietfa.amsl.com>; Wed, 12 Jul 2023 23:57:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Level:
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VeWH_PO8v7bX for <spasm@ietfa.amsl.com>; Wed, 12 Jul 2023 23:57:24 -0700 (PDT)
Received: from server8.webgo24.de (server8.webgo24.de [185.30.32.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2DB37C151AF3 for <spasm@ietf.org>; Wed, 12 Jul 2023 23:57:18 -0700 (PDT)
Received: from [192.168.178.115] (dynamic-077-004-076-224.77.4.pool.telefonica.de [77.4.76.224]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by server8.webgo24.de (Postfix) with ESMTPSA id CE1F961418F1; Thu, 13 Jul 2023 08:57:15 +0200 (CEST)
Message-ID: <83632635247614bcf2625a30c497eed261d2aa91.camel@von-Oheimb.de>
From: David von Oheimb <it@von-Oheimb.de>
To: Tim Hollebeek <tim.hollebeek=40digicert.com@dmarc.ietf.org>, SPASM <spasm@ietf.org>
Date: Thu, 13 Jul 2023 08:57:15 +0200
In-Reply-To: <SN7PR14MB64924FA4CCE7E4D05B5F29608327A@SN7PR14MB6492.namprd14.prod.outlook.com>
References: <SN7PR14MB6492AC56DC21E783256482C38327A@SN7PR14MB6492.namprd14.prod.outlook.com> <SN7PR14MB64924FA4CCE7E4D05B5F29608327A@SN7PR14MB6492.namprd14.prod.outlook.com>
Content-Type: multipart/alternative; boundary="=-nPggEAqQB2Bf8NqdQtjK"
User-Agent: Evolution 3.38.3-1+deb11u2
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/WbPDmTeQjzsr7koG3-9UZMox8fI>
Subject: Re: [lamps] WG Last Call for draft-housley-lamps-cms-kemri
X-BeenThere: spasm@ietf.org
X-Mailman-Version: 2.1.39
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: Thu, 13 Jul 2023 06:57:26 -0000

> Please review the document and send your comments to the list by 14
> July 2023.

After having a look at core pieces of this draft earlier, this time I
went through it in detail
(except for section 6, which is on the ASN.1 module). Also Hendrik had a
look again.
We make use of this draft for adding KEM support to CMP in rfc4210bis.

This is consolidated feedback from both of us.
For most part, we find the text well written and clear.
We see room for improvement mostly regarding the description of details
on KDF use.

While it is clear that the 'ukm' field in the CMSORIforKEMOtherInfo is
optional,
it does not become clear to us from the text whether the KDF 'info'
parameter (of type CMSORIforKEMOtherInfo) is meant to be mandatory or
optional. We believe that it should be in general optional because there
are KDF algorithms that do not have such an extra parameter. (Of course,
in case the KDF chosen requires such a parameter, it must be provided.)

A related issue is some ambiguity within the last paragraph of Section
5.
It did not become clear to us how to provide the 'salt' parameter
supported/required by many KDF algorithms. 
Is it meant to be the same as the 'info' parameter (which in turn
contains the optional 'ukm' field, which may contain salt-like random
values)?
Or is it meant to be provided as a separate (more implicit) parameter
within the AlgorithmIdentifier for the KDF chosen?
To me, it looks like that the explicitly listed KDF input 'info' is
essentially the optional KDF 'salt' parameter,
while any "other inputs" to the KDF are considered implicit parameters
to be provided as part of the 'kdf' field (of type
KeyDerivationAlgorithmIdentifier) within the KEMRecipientInfo structure.

Below is a list of nits.

 David and Hendrik



Section 2:

each recipient recipient -> 
each recipient

A word seems missing or superfluous in:
"Thus, the content-encryption key is used to protect the in CMS
content."

Two occurrences of:
other data that is send in the clear -> 
other data that is sent in the clear

Section 7:

is used to with ->
is used with



On Tue, 2023-06-27 at 20:25 +0000, Tim Hollebeek wrote:
> Oops, of course I mean the LAMPS draft, not the Housley draft.
>  
> “Using Key Encapsulation Mechanism (KEM) Algorithms in the
> Cryptographic Message Syntax (CMS)” <draft-ietf-lamps-cms-kemri-01>
>  
> https://datatracker.ietf.org/doc/draft-ietf-lamps-cms-kemri/
>  
> -Tim
>  
> From: Spasm <spasm-bounces@ietf.org>On Behalf Of Tim Hollebeek
> Sent: Tuesday, June 27, 2023 12:04 PM
> To: SPASM <spasm@ietf.org>
> Subject: [lamps] WG Last Call for draft-housley-lamps-cms-kemri
>  
>  
> It appears that the discussion of the CMS kemri has settled down, and
> the active participants have implementations that seem to work
> together successfully.
>  
> Russ has asked for us to proceed to WG Last Call, and I agree it is
> ready for that discussion.  So this is the LAMPS WG Last Call for
> “Using Key Encapsulation Mechanism (KEM) Algorithms in the
> Cryptographic Message Syntax (CMS)” <draft-housley-lamps-cms-kemri-
> 02>.  Please review the document and send your comments to the list by
> 14 July 2023.
>  
> The datatracker page for the document is
> https://datatracker.ietf.org/doc/draft-housley-lamps-cms-kemri/
>  
> Thanks,
>  
> -Tim
> _______________________________________________
> Spasm mailing list
> Spasm@ietf.org
> https://www.ietf.org/mailman/listinfo/spasm