[Cbor] Re: I-D Action: draft-ietf-cbor-cde-04.txt
Anders Rundgren <anders.rundgren.net@gmail.com> Wed, 24 July 2024 18:48 UTC
Return-Path: <anders.rundgren.net@gmail.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 61763C14F6A9 for <cbor@ietfa.amsl.com>; Wed, 24 Jul 2024 11:48:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.105
X-Spam-Level:
X-Spam-Status: No, score=-2.105 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, FREEMAIL_FROM=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 lrbdJ6KBgPUV for <cbor@ietfa.amsl.com>; Wed, 24 Jul 2024 11:48:34 -0700 (PDT)
Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 D00DCC14F699 for <cbor@ietf.org>; Wed, 24 Jul 2024 11:48:34 -0700 (PDT)
Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-368526b1333so723263f8f.1 for <cbor@ietf.org>; Wed, 24 Jul 2024 11:48:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721846913; x=1722451713; darn=ietf.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=y4yBopHEIWw7UQsUNqIkCOnityAYIh7k50zUMhGyBXQ=; b=Noeaofa27MEH5S1ZHwTpGPIdpSCkUK/pgZAmGDZOcWB7c2hcOpL7xQT6nL+wfGNxov fpntLpogumpnxUNQrvIW1Psu+qlXJc4FkAM0LH27zXyKVuIE0R55emgy723CYtfU+jkG GhL/56YzT2BPTCZZqgOPN0khbFVqORYK1K023KCuNiIho4P8keEocVz95Uh4ViJgf2pD pEfwAgw974PNM4Zvrzo2+MxpC/GuPqRjXidN+lAVAmQ4VtKeeiABPWStWAzzWu41BAGf GsrJ9gne4sRAnu43JkRVFjUd/ikaRMk/Qy8HIIIy3wzzOJibGmgaYzphC/IKVhHwz1X5 zKEw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721846913; x=1722451713; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=y4yBopHEIWw7UQsUNqIkCOnityAYIh7k50zUMhGyBXQ=; b=LlagRIptL0Y1Z1ODGfDKLGLCuD5k4JmnyeNQ8MNcCLQO3wbH3m6+HpO7jgbzSQt2FN 8NT3qWcADOLwOfhZ8BIwGdW3S1ppxI6TXD+4lBRo3AWIEJitHpJ+xAfQTkIlG7sCeDKl D9Lj46/4Tdz3n/U7l4KHQjIRqQHXy5H43pIT3myCzqAO+MiPxhdeBEUE7mP1WBlEgTzb pQZdwEkONMOzbNFgC2mUeSRCihnwCAHaIyq+eJvAOAKe9Hl38n4KQppVBP8sGvHJ2HQv 8pem1tGWv75JE+YGIcdzFGoSaeeqMls17PcQF49zNGS1//wztdzq2Zfh0eBW8g7uDGap b4Ug==
X-Gm-Message-State: AOJu0YzaQE0KqpD+9/cUMaTjC9R8X4DZl261eO0LOmBtEi19/0nZs2WP n7jJcHZ1FT1OUJBIBDHqIKRrlvtjvFjvJRDDADSe7d93+XFVkHPrIM69yw==
X-Google-Smtp-Source: AGHT+IG48nSDFcfccQmIL4aaJJqjfdMGb/nAkBdwpBlrT4RyWLL1tkV6TsQNfguR0N2a4i02uReFpw==
X-Received: by 2002:a5d:6512:0:b0:366:e9fa:17b with SMTP id ffacd0b85a97d-36b31b30883mr389292f8f.1.1721846912458; Wed, 24 Jul 2024 11:48:32 -0700 (PDT)
Received: from ?IPV6:2a01:e0a:e1b:64b0:85d3:bb06:4cc4:d62e? ([2a01:e0a:e1b:64b0:85d3:bb06:4cc4:d62e]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-368786949f5sm15059649f8f.57.2024.07.24.11.48.31 for <cbor@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jul 2024 11:48:31 -0700 (PDT)
Message-ID: <f48cc88d-7dfb-4a5d-9991-e8233dc5fdb7@gmail.com>
Date: Wed, 24 Jul 2024 20:48:30 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: cbor@ietf.org
References: <172156651003.87787.9508704613033229196@dt-datatracker-659f84ff76-9wqgv>
Content-Language: en-US
From: Anders Rundgren <anders.rundgren.net@gmail.com>
In-Reply-To: <172156651003.87787.9508704613033229196@dt-datatracker-659f84ff76-9wqgv>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Message-ID-Hash: 35P23M5HUVBDRWKMED4XVUGHCYLD6T22
X-Message-ID-Hash: 35P23M5HUVBDRWKMED4XVUGHCYLD6T22
X-MailFrom: anders.rundgren.net@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cbor.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Cbor] Re: I-D Action: draft-ietf-cbor-cde-04.txt
List-Id: "Concise Binary Object Representation (CBOR)" <cbor.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/IwZBL1Q522pZA3pIJfo5WJ0YVtY>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Owner: <mailto:cbor-owner@ietf.org>
List-Post: <mailto:cbor@ietf.org>
List-Subscribe: <mailto:cbor-join@ietf.org>
List-Unsubscribe: <mailto:cbor-leave@ietf.org>
https://www.ietf.org/archive/id/draft-ietf-cbor-cde-04.html#name-implementers-checklists "CBOR decoders in general are not required to check for preferred serialization or CDE and reject inputs that do not fulfill their requirements. However, in an environment that employs deterministic encoding, employing non-checking CBOR decoders negates many of its benefits. Decoder implementations that advertise "support" for preferred serialization or CDE need to check the encoding and reject input that is not encoded to the encoding specification in use" https://www.ietf.org/archive/id/draft-ietf-cbor-cde-04.html#appendix-B.2.2 "CDE decoders MUST follow the rules for preferred serialization decoders (Appendix B.1.2). CDE decoders MUST check for ordering map keys and for basic validity of the CBOR encoding (see Section 5.3.1 of RFC 8949 [STD94], which includes a check against duplicate map keys. and invalid UTF-8)" This is slightly confusing. In the first section you "need to check the encoding and reject" and in the second section you "MUST follow/check" but nothing is said what to do when there is a mismatch. Since the appendix is non-normative, my interpretation is that the handling of non-compliant CDE is up to each implementer to specify. Anders On 2024-07-21 14:55, internet-drafts@ietf.org wrote: > Internet-Draft draft-ietf-cbor-cde-04.txt is now available. It is a work item > of the Concise Binary Object Representation Maintenance and Extensions (CBOR) > WG of the IETF. > > Title: CBOR Common Deterministic Encoding (CDE) > Author: Carsten Bormann > Name: draft-ietf-cbor-cde-04.txt > Pages: 14 > Dates: 2024-07-21 > > Abstract: > > CBOR (STD 94, RFC 8949) defines "Deterministically Encoded CBOR" in > its Section 4.2, providing some flexibility for application specific > decisions. To facilitate Deterministic Encoding to be offered as a > selectable feature of generic encoders, the present document defines > a CBOR Common Deterministic Encoding (CDE) Profile that can be shared > by a large set of applications with potentially diverging detailed > requirements. > > The IETF datatracker status page for this Internet-Draft is: > https://datatracker.ietf.org/doc/draft-ietf-cbor-cde/ > > There is also an HTML version available at: > https://www.ietf.org/archive/id/draft-ietf-cbor-cde-04.html > > A diff from the previous version is available at: > https://author-tools.ietf.org/iddiff?url2=draft-ietf-cbor-cde-04 > > Internet-Drafts are also available by rsync at: > rsync.ietf.org::internet-drafts > > > _______________________________________________ > CBOR mailing list -- cbor@ietf.org > To unsubscribe send an email to cbor-leave@ietf.org
- [Cbor] I-D Action: draft-ietf-cbor-cde-04.txt internet-drafts
- [Cbor] Re: I-D Action: draft-ietf-cbor-cde-04.txt Carsten Bormann
- [Cbor] Re: I-D Action: draft-ietf-cbor-cde-04.txt Anders Rundgren
- [Cbor] Re: I-D Action: draft-ietf-cbor-cde-04.txt Carsten Bormann