Re: [lamps] draft-housley-lamps-crmf-update-algs - proposal on adding text regarding iterationCount and pwd quality

Russ Housley <housley@vigilsec.com> Fri, 27 November 2020 20:09 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 684143A0E70 for <spasm@ietfa.amsl.com>; Fri, 27 Nov 2020 12:09:56 -0800 (PST)
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 uYXCLuI22kKX for <spasm@ietfa.amsl.com>; Fri, 27 Nov 2020 12:09:54 -0800 (PST)
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 E98BC3A0E6F for <spasm@ietf.org>; Fri, 27 Nov 2020 12:09:53 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail.smeinc.net (Postfix) with ESMTP id 0F34A300BA6 for <spasm@ietf.org>; Fri, 27 Nov 2020 15:09:51 -0500 (EST)
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 qKO61YzEOx-d for <spasm@ietf.org>; Fri, 27 Nov 2020 15:09:49 -0500 (EST)
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 29A90300670; Fri, 27 Nov 2020 15:09:49 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\))
From: Russ Housley <housley@vigilsec.com>
In-Reply-To: <CALhKWgjoQsdWtpA3uhGL21rfKRLdwnfxvCd0_azd7s+1=40fww@mail.gmail.com>
Date: Fri, 27 Nov 2020 15:09:50 -0500
Cc: LAMPS <spasm@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <3784F36B-563A-486C-B073-EB2E302E0068@vigilsec.com>
References: <AM0PR10MB24188049A1B53C88EE19B606FEF90@AM0PR10MB2418.EURPRD10.PROD.OUTLOOK.COM> <86E7B55E-986C-42C1-8E02-20FB70C2F022@vigilsec.com> <CALhKWgiA+kg3OxzZndwiwPNexk6ABJAKn1AQmZ_LL5YcQSFvSw@mail.gmail.com> <314553E7-B3D9-43B4-B775-31482C5035C6@vigilsec.com> <CALhKWgjoQsdWtpA3uhGL21rfKRLdwnfxvCd0_azd7s+1=40fww@mail.gmail.com>
To: Jonathan Hammell <jfhamme.cccs@gmail.com>
X-Mailer: Apple Mail (2.3445.104.17)
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/TJUB-q6jlZKveNheXu2ZWvziooY>
Subject: Re: [lamps] draft-housley-lamps-crmf-update-algs - proposal on adding text regarding iterationCount and pwd quality
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, 27 Nov 2020 20:09:56 -0000

Jonathan:

>>> However, I'm concerned about the ASN.1 for PBMParameter Section 4.4 of
>>> RFC 4211 for the following reasons.  If one wanted to use scrypt (RFC
>>> 7914) for the owf, there is duplication of the salt parameter and the
>>> iterationCount in PBMParameter would no longer be relevant.  One might
>>> even want to use Argon2 (draft-irtf-cfrg-argon2), but unfortunately
>>> there is no ASN.1 module in that I-D to specify parameterization.  I
>>> realize that backwards compatibility needs to be maintained for
>>> PBMParameter so those parameters cannot be made OPTIONAL, but perhaps
>>> some guidance like the following should be added?
>>> 
>>> "If a salt value is specified in the AlgorithmIdentifier parameters
>>> for owf (such as in [RFC7914]), the salt value in PBMParameter MUST
>>> NOT be used and it SHOULD be the zero-length octet string.  Similarly,
>>> if the mechanism specified in owf has its own cost parameter for
>>> deriving a key (such as in [RFC7914]), then the iterationCount value
>>> in PBMParameter MUST NOT be used and it SHOULD be set to 0."
>> 
>> I do not think I agree.  If you want to use one of these other constructions, wouldn't completely replace id-PasswordBasedMAC?
> 
> You would not be able to just replace id-PasswordBasedMAC with
> id-scrypt since you need the specification for the MAC construction to
> perform the proof of possession.  However, you are right, it might be
> best to use a new OID and define a new parameters structure to use a
> MAC with one of these alternative PBKDF mechanisms.

It seems like a two page document + boilerplate.

Russ