Re: [lamps] draft-housley-lamps-cms-aes-mac-alg-00 Section 7

Russ Housley <housley@vigilsec.com> Mon, 23 November 2020 18:02 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 A41D53A0BEF for <spasm@ietfa.amsl.com>; Mon, 23 Nov 2020 10:02:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.003
X-Spam-Level:
X-Spam-Status: No, score=0.003 tagged_above=-999 required=5 tests=[SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=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 iZTM4GdVeHzn for <spasm@ietfa.amsl.com>; Mon, 23 Nov 2020 10:02:18 -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 136CC3A0BE7 for <spasm@ietf.org>; Mon, 23 Nov 2020 10:02:18 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail.smeinc.net (Postfix) with ESMTP id 9ABA5300AA4 for <spasm@ietf.org>; Mon, 23 Nov 2020 13:02:15 -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 DsjTyMKKvcWy for <spasm@ietf.org>; Mon, 23 Nov 2020 13:02:14 -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 04E25300A4B; Mon, 23 Nov 2020 13:02:13 -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: <AM0PR10MB2418A264551A8315DFE6E968FEFC0@AM0PR10MB2418.EURPRD10.PROD.OUTLOOK.COM>
Date: Mon, 23 Nov 2020 13:02:15 -0500
Cc: LAMPS <spasm@ietf.org>, "hans.aschauer@siemens.com" <hans.aschauer@siemens.com>
Content-Transfer-Encoding: quoted-printable
Message-Id: <22D76412-D502-45B4-80E3-6DC80449C6A8@vigilsec.com>
References: <AM0PR10MB2418A264551A8315DFE6E968FEFC0@AM0PR10MB2418.EURPRD10.PROD.OUTLOOK.COM>
To: "Brockhaus, Hendrik" <hendrik.brockhaus@siemens.com>
X-Mailer: Apple Mail (2.3445.104.17)
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/WTS-BoKivKIkRdp8I36VNxGZgxE>
Subject: Re: [lamps] draft-housley-lamps-cms-aes-mac-alg-00 Section 7
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, 23 Nov 2020 18:02:20 -0000

Section 3.1 says: Within the scope of any content-authentication key, the nonce value MUST be unique.

I agree that the Security Considerations should also talk about the consequences of reusing a nonce value.

Russ


> On Nov 23, 2020, at 12:36 PM, Brockhaus, Hendrik <hendrik.brockhaus@siemens.com> wrote:
> 
> Hi Russ
> 
> As in AES-GMAC the uniqueness of the nonce is crucial,  I want to propose to add the following text in Section 7 right before the last paragraph.
> "Implementations must generate nonce values which must be unique for a given message-authentication key. Repeating a nonce value only once allows an attacker to generate valid AES-GMAC authentication codes for arbitrary messages, which results in no security of the authentication code (see [GCM], Appendix A)."
> 
> May be it is also of value to add this in Section 5 of draft-housley-lamps-crmf-update-algs as well.
> 
> Hendrik
> 
> 
> Hendrik Brockhaus
> Siemens AG
> T RDA CST SEA-DE
> mailto:hendrik.brockhaus@siemens.com
> 
> www.siemens.com
> 
> Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Jim Hagemann Snabe; Managing Board: Joe Kaeser, Chairman, President and Chief Executive Officer; Roland Busch, Klaus Helmrich, Cedrik Neike, Matthias Rebellius, Ralf P. Thomas, Judith Wiese; Registered offices: Berlin and Munich, Germany; Commercial registries: Berlin-Charlottenburg, HRB 12300, Munich, HRB 6684; WEEE-Reg.-No. DE 23691322