[COSE] Re: draft-ietf-cose-hash-envelope-07 ietf last call Secdir review

Henk Birkholz <henk.birkholz@ietf.contact> Tue, 21 October 2025 19:04 UTC

Return-Path: <henk.birkholz@ietf.contact>
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 78A0579C18FE; Tue, 21 Oct 2025 12:04:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -4.979
X-Spam-Level:
X-Spam-Status: No, score=-4.979 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, NICE_REPLY_A=-2.182, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=ietf.contact
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 u8z--o_-6xRW; Tue, 21 Oct 2025 12:04:44 -0700 (PDT)
Received: from smtp02-ext3.udag.de (smtp02-ext3.udag.de [62.146.106.33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 27F6A79C18DD; Tue, 21 Oct 2025 12:04:41 -0700 (PDT)
Received: from [172.20.16.161] (unknown [208.253.71.133]) by smtp02-ext3.udag.de (Postfix) with ESMTPA id 334FBE05C4; Tue, 21 Oct 2025 21:04:33 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ietf.contact; s=uddkim-202310; t=1761073474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7QX7oXWO3xz7zkDEKxBRrBrSR1ewoMG7JMW8OhkFhIc=; b=Mbvm1UHbZkc85IpSOTQmICzg0AL2fmNAiWgo3i/GHBE3gEDcGOT0cFW9r1kXoL9MJxVYBn EJDXYid+sOlKORcnYsJU74llKaNmC04qHD5hILTFI+RikTNyvqlgSBWY6yZXGi96E8XNXg mp5oznqDsB4eO3YOTB/V5Syro3MnYSNVI14Wl6U7mtcUfnbR7nGu9GVQYNvo/ojkvwnIDN 6M0qKuwl8ypDX8//aAy1YeHB3Q0Hj1BAbXQq109KHzem5la6rMyGUF7RVMnDzRiX2DWV9G xumiLmBe6yyK5U9OPDu8qB81KBLL/GZGbGoouhNW2uY1cwKgfNrVmuScBm4fEw==
Authentication-Results: smtp02-ext3.udag.de; auth=pass smtp.auth=henk.birkholz@ietf.contact smtp.mailfrom=henk.birkholz@ietf.contact
Message-ID: <05b5b6a2-424c-bc7b-d5a9-8f49ef932ba6@ietf.contact>
Date: Tue, 21 Oct 2025 21:04:32 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
Content-Language: en-US
To: Yaron Sheffer <yaronf.ietf@gmail.com>, secdir@ietf.org
References: <176086053141.1901057.17549953020709693701@dt-datatracker-84f8f646b-tg6mn>
From: Henk Birkholz <henk.birkholz@ietf.contact>
In-Reply-To: <176086053141.1901057.17549953020709693701@dt-datatracker-84f8f646b-tg6mn>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Message-ID-Hash: EJSNLZFMYWPAFA6BJ2SW5VTGHOMJJGOC
X-Message-ID-Hash: EJSNLZFMYWPAFA6BJ2SW5VTGHOMJJGOC
X-MailFrom: henk.birkholz@ietf.contact
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: cose@ietf.org, draft-ietf-cose-hash-envelope.all@ietf.org, last-call@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [COSE] Re: draft-ietf-cose-hash-envelope-07 ietf last call Secdir review
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/rK15Q6CwsZ-DKY-3SL8HYmqcGYw>
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 Yaron,

thank you for the excellent review. We tried to address your feedback in 
the latest draft:

> https://author-tools.ietf.org/iddiff?url1=draft-ietf-cose-hash-envelope-07&url2=draft-ietf-cose-hash-envelope-08&difftype=--html

Please find specific replies in-line.


For the I-D authors,

Henk

On 19.10.25 09:55, Yaron Sheffer via Datatracker wrote:
> Document: draft-ietf-cose-hash-envelope
> Title: COSE Hash Envelope
> Reviewer: Yaron Sheffer
> Review result: Has Nits
> 
> Overall the document is clear and mostly ready for publication.
> 
> - I suggest to add to the Terminology section a definition of "payload" and
> "preimage".

That should be addressed.

> 
> - "Envelope Extended Diagnostic Notation" - this is unclear as text, is it
> supposed to be a subsection header?

Yes, thank you, that has been fixed.

> 
> - It would be good to describe in detail the verifier's behavior (maybe an
> actual list of steps), including the decision on regular/detached/hashed
> payload.

The verifier's behavior does not differ from standard COSE, except for a 
possible optional additional step, now described in Section 5.3.

> 
> - If content_type is not allowed, please mention that the payload is always
> expected to be a bstr.

content-type is disallowed in favor of preimage-content-type, not 
forbidden altogether. Signers can still use preimage-content-type as 
they would content-type for a non-hashed payload, but verifiers benefit 
from the parameter being explicitly different.

When the actual content is a bstr, a verifier contemplating a 
content-type bstr might ask itself if that described the digest itself 
or the actual preimage. With preimage-content-type set to bstr, it is 
clear that the preimage itself was a bstr.

The text has been edited to add the example given in the paragraph above.

> 
> - Marking the new headers as critical is only a MAY. Should it be stronger? How
> important is this for integrity?

There are valid applications, such as transparency services/ledgers, 
which do not need to understand these header parameters to conduct 
meaningful authentication and registration.
The sentence only stated that Profiles are allowed to make these 
parameters critical, which is also possible without that sentence 
present... Hence, we removed it.

> 
> - Sec. 5.1: the second half of this section is a long and convoluted sentence
> ("The approach...") that I find hard to parse.

That sentence has been removed, too.

> 
> - Encrypted hashes: I'm not sure if this is a real use case. But if it is, a
> clearer recommendation on how to use this draft in that case would be better
> than the current section.

We are also not sure if this is a valid use case and have clarified the 
scope of the document in Section 5.2.

Many thanks again for the review. Please let us know if further 
improvements are useful.

> 
> 
> _______________________________________________
> COSE mailing list -- cose@ietf.org
> To unsubscribe send an email to cose-leave@ietf.org