[COSE] Re: draft-ietf-cose-dilithium-08 ietf last call Secdir review

Orie <orie@or13.io> Sat, 23 August 2025 13:34 UTC

Return-Path: <orie@or13.io>
X-Original-To: cose@mail2.ietf.org
Delivered-To: cose@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id EE1BB57E5D39 for <cose@mail2.ietf.org>; Sat, 23 Aug 2025 06:34:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=or13.io
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b4z4XKtEebXK for <cose@mail2.ietf.org>; Sat, 23 Aug 2025 06:34:26 -0700 (PDT)
Received: from mail-vk1-xa30.google.com (mail-vk1-xa30.google.com [IPv6:2607:f8b0:4864:20::a30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 1615D57E5D18 for <cose@ietf.org>; Sat, 23 Aug 2025 06:34:26 -0700 (PDT)
Received: by mail-vk1-xa30.google.com with SMTP id 71dfb90a1353d-53b1736eae2so2301529e0c.1 for <cose@ietf.org>; Sat, 23 Aug 2025 06:34:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=or13.io; s=google; t=1755956065; x=1756560865; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=DbfFwDSuMtTc6nBadkJiUt6pJdvli9olpJ6IZAWnw/4=; b=M4PGkW+zfali8bP4EQJ6/L4ejgqhaujThNCb/e/YNw53UxIC+s81nWz4m631DQ3Ocj T1YXvQSBExHvjCp6XjGMrArIC0VyRf9N0IdUACZCh1oWytnhS0jWqvOSTJrBALbynvJ6 bG+NBX6iF144rj/RJ5alNjlNuMmOyaBDVc5hYKkaCVaSXWGoRVe6mEV4Kg3S9A5b/vcq 184BsKsxtCkDFSO5xk1tfnu96gOEEoxplUqu4UxvknG0dmn4TAilwij8Zq0tHkb9c1ef YQkkiKmnTIOhCjxQFL5fGsX55xoC6PcRsThKuDi7rn4DhKFPYZLBJKmRmcP8dGZKGK5D opZA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755956065; x=1756560865; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DbfFwDSuMtTc6nBadkJiUt6pJdvli9olpJ6IZAWnw/4=; b=JnL4CFlYEphZ1J2xTYEteI/6PawSedhrd2BEY8H8FN50lfLm95NYl7vZ/z4Z9jxqx0 WWB1hEczepU3TAKvPAo57Ohy6otej1tcYKbYjjVWTOxWzsRGmmOcIGynb1sbVnGLJOpK ELpQqe3r95ak/HLzrGqAoqJPQ3JWF3kpiyTGkpUQ46p00JztT3xEoBKpfs/olL5C7dPL fZl/1cH/w+10kX5CsKI5jkE7O2a2xDzWS6YDlpC74WOMaKvV2WqOLZ+/URCTWLqgBtlc lkH4vk9RloKbq2wsvD24QuGd9wrW2VvGwb/Bca4D+eqW4jqX2ojDx27KpK8rQAnnQKgE 0PpA==
X-Forwarded-Encrypted: i=1; AJvYcCWsSVcSWaKl9Capwt94yaL9A2fAo45Q46+pvCOXGxLR1vNFa2/l87qI3cOQmVBBSp8p9+n7@ietf.org
X-Gm-Message-State: AOJu0Yy+3PkW8T7dXjwYT86Oz2Xz330bJeqKKeLMYuYeA0qhhsu1uUkt hcUQLHocb49StPo11OGilQpvIYSoM8SQCBf2juCmWlCogO+YVpN136vIjl81nfxecZMecbO7t/c Xb3uyhKrrXw2J79unP/cBwQG/CwrKmFDrCs/KShTtTg==
X-Gm-Gg: ASbGncty2XSQXJ1d4N0D38L7AF8O4sYPmrdf9pHvBa50KXwhzQII9HoISBQr7p1yGfS O1WcaMMqwmrVtl0WH8/3TOTfvNu03oaDMtc18Y96mXxcDOblTjfDvpKt9BjzFuwKvGWfx71cxcv ioQMq4SP8d8gehAPZVbgdeui7VQhc2sxflqxGQ/zlBf2vKGjxpBJngS8dZPdt9LKAeWDfTVrNKA rC60NFfUUWsqrnqlSmdtHcJpYT2rqdls53B/EEOB/sTF1CMOBUPwwqDTWofbbRXPabYagXcIgpE lrVXZlK9
X-Google-Smtp-Source: AGHT+IEPLPwQf74ONLLEUPqLDqIrSqa2gjkpMXTiHx6pnPxy2Q/vrrn++R0f2m0jh3rKF7GgDFoyYRJoTnkaluzVLwo=
X-Received: by 2002:a05:6122:1783:b0:539:3524:2138 with SMTP id 71dfb90a1353d-53c8a2d71a5mr2325217e0c.4.1755956065452; Sat, 23 Aug 2025 06:34:25 -0700 (PDT)
MIME-Version: 1.0
References: <175539972904.264689.564055117935460831@dt-datatracker-d8bcd59c-frtgg>
In-Reply-To: <175539972904.264689.564055117935460831@dt-datatracker-d8bcd59c-frtgg>
From: Orie <orie@or13.io>
Date: Sat, 23 Aug 2025 08:34:13 -0500
X-Gm-Features: Ac12FXw0AAj9tJybl-SgRtgx7TMU5PHWQWfzsLSePfriXCMZmIYQsfVXc8NTEC4
Message-ID: <CAMzqgowP5pq2sj3r9iZAs2oRkLnW7kC2jXXCTnSZL6eJPaEULQ@mail.gmail.com>
To: Peter Yee <peter@akayla.com>
Content-Type: multipart/alternative; boundary="00000000000085d835063d086164"
Message-ID-Hash: N7D6QW6B4I5F4OZ3XPVIGKOW3RDCSOMB
X-Message-ID-Hash: N7D6QW6B4I5F4OZ3XPVIGKOW3RDCSOMB
X-MailFrom: orie@or13.io
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cose.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: secdir@ietf.org, cose@ietf.org, draft-ietf-cose-dilithium.all@ietf.org, last-call@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [COSE] Re: draft-ietf-cose-dilithium-08 ietf last call Secdir review
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/-K8bQkZMOiinSSYq2XZdyVks-R0>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cose>
List-Help: <mailto:cose-request@ietf.org?subject=help>
List-Owner: <mailto:cose-owner@ietf.org>
List-Post: <mailto:cose@ietf.org>
List-Subscribe: <mailto:cose-join@ietf.org>
List-Unsubscribe: <mailto:cose-leave@ietf.org>

Hi Peter,

Thank you for your review.

I've raised https://github.com/cose-wg/draft-ietf-cose-dilithium/pull/23

Please let me know if you have any additional suggestions to improve this
document.

See inline comments for your specific points.

Regards,

OS

On Sat, Aug 16, 2025 at 10:02 PM Peter Yee via Datatracker <noreply@ietf.org>
wrote:

> Document: draft-ietf-cose-dilithium
> Title: ML-DSA for JOSE and COSE
> Reviewer: Peter Yee
> Review result: Has Issues
>
> Reviewer: Peter Yee
> Review result: Has Issues
>
> I have reviewed this document as part of the security directorate's ongoing
> effort to review all IETF documents being processed by the IESG. These
> comments
> were written primarily for the benefit of the security area directors.
> Document
> editors and WG chairs should treat these comments just like any other last
> call
> comments.
>
> Summary: This document adds IANA registrations and support for the ML-DSA
> algorithm to both JOSE and COSE. It’s mostly straightforward material with
> reasonable pointers into FIPS 204, but it has a couple of areas I’d like
> to see
> explained better and a few harmless nits that could be fixed.
>
> The summary of the review is Has Issues.
>
> Major issues: None
>
> Minor issues:
>
> Page 8, section 7.1: I don’t see how this is really a security
> consideration.
> It’s an operational consideration to be sure.
>

I moved this section out.


>
> Page 8, section 7.2: Is this meant to intimate that HashML-DSA is not
> desirable? Or that you’ve merely declined to specify such algorithms? I’m
> not
> sure the sentence adds much as FIPS 204 already says, “…the digest that is
> signed needs to be generated using an approved hash function or XOF (e.g.,
> from
> FIPS 180 [8] or FIPS 202 [7]) that provides at least 𝜆 bits of classical
> security strength against both collision and second preimage attacks”.
>

I added some elaboration and reference to
https://datatracker.ietf.org/doc/draft-ietf-lamps-dilithium-certificates/which
has more language relevant to the decision to not register algorithm
identifiers for HashML-DSA.


>
> Page 8, section 7.3, 2nd paragraph, 2nd sentence: What does “validated”
> mean
> here? Looking at FIPS 204, Algorithms 22 and 23 (pkEncode and pkDecode) are
> format translators. I don’t see mention of validation, and neither
> algorithm
> returns a status as part of the specified steps. If you mean that the
> inputs
> are within the ranges given for the inputs, then say that.
>
>
I've taken your suggested framing.


> Nits:
>
> Page 4, Figure 1 caption: change “all zeroes” to “all-zeroes”. Same for
> Figure
> 2.
>
> Page 8, section 7, 1st paragraph: Append a comma after “[RFC7517]”.
>
> Page 8, section 7.3, 1st paragraph: change “algorithm related” to
> “algorithm-related”.
>
> Page 9, section 8.1.1, 2nd sentence: Change “RFC9053” to “RFC 9053” and
> “RFC9054” to “RFC 9054”. See RFC 7322, section 3.5.
>
> Page 10, section 8.1.2, 2nd sentence: Change “RFC9053” to “RFC 9053”.
>
> Page 10, section 8.1.3, 2nd sentence: Change “RFC9053” to “RFC 9053”.
>
> Page 11, section 8.1.4, 2nd sentence: Change “RFC7518” to “RFC 7518”.
>
> Page 12, section 8.1.5, 2nd sentence: Change “RFC7518 RFC7638” to “RFC
> 7518 and
> RFC 7638”.
>
> Page 13, section 8.1.6, 2nd sentence: Change “RFC7517” to “RFC 7517” and
> “RFC7638” to “RFC 7638. Elide the comma.
>

Thank you for these nits, I believe I got them all.

>
> Page 15: the text version of the document has really confused page numbers
> in
> the Appendix. I’m not sure there’s much to be done for that, but it makes
> for
> an odd table of contents that makes one think the examples are a page each
> and
> the document in total is 17 pages. In text format, it really takes up 50
> “printed” pages.
>

I suspect this is due to the examples, I am not sure what to do about this,
but thanks for your patience in reviewing the document.


>
> I have not made any attempt to review Appendix A as I lack the ready
> capability
> to do so.
>

Acknowledged.