Re: [Cbor] tags for non-CBOR Content-Formats (was Re: I-D Action: draft-ietf-cbor-file-magic-07.txt)

Ira McDonald <blueroofmusic@gmail.com> Thu, 16 December 2021 02:16 UTC

Return-Path: <blueroofmusic@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 B5C1B3A099F for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 18:16:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zbF7_BCnpQMU for <cbor@ietfa.amsl.com>; Wed, 15 Dec 2021 18:16:54 -0800 (PST)
Received: from mail-vk1-xa2c.google.com (mail-vk1-xa2c.google.com [IPv6:2607:f8b0:4864:20::a2c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0973E3A09A6 for <cbor@ietf.org>; Wed, 15 Dec 2021 18:16:53 -0800 (PST)
Received: by mail-vk1-xa2c.google.com with SMTP id s1so15879514vks.9 for <cbor@ietf.org>; Wed, 15 Dec 2021 18:16:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jvNUlJlIhpSbhX723cGFE5T11Rooihi3Cj95jtnvVYQ=; b=CBVvfnLs3P8wlXAvMWezQlMlWESjTi0j+vDe8k7xFJi7h3rnKnaY3dGo4VTa4VaP8f Z0wuG+kDmPslLADg2A+5uZnWcLHOJXIKrjLYTkg0mlWJItbDU6EPIrLYoVyppEchW3Gu 8eiNJ86GwGyXzP/SrnFWQ43w+M9vVbxItOhB7UyARQFAMAkzZwSxLP6AH657gufUywEH BGSPBYKEnb/bmMnanp+R2l+rbgQB901GLVg5OwQUzndoYjt0zMDW+lEjICR7huuAsEDI DWPH8iZA2nLdqwTElKIbkL7UiUY+UXxEmu9iO4WRKkQDmwDNpTkpx6Pf0GYphKk4muMS +N8Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jvNUlJlIhpSbhX723cGFE5T11Rooihi3Cj95jtnvVYQ=; b=swuG0TTLPazTt8PRhOglpnyFwYnhxs+w27lXG+5rEijgh/b27MJ/TWXQtsZSiHjzGp 0DqL92bPHLNTv3PE9u0ZuNvUNfi8RHhu+do6V/jq9BcvFgYeSKRiuJXfWH6Pp8nHdVCa T8oVsD/bmaxOJ4mq27dSoFnalFioeqt+xL8tEf0/PnGpvp4CJ1vMpqELXGeLMHg4EcYP QtIkTNH3sdOegWBw8T9rslZcLJLQJRMJ0YmKYU9AjmnI3+7omD3vsqCcSqyI6/gTViNn PHZ99z5BMbt8mYmGoYdLrmvq3cIjUjTgfKhEUW9xtSw/egv3hTLToW1vIwF++FZ/t304 Nv4w==
X-Gm-Message-State: AOAM532enDmfQUKBrny2A6efMLG+qhf6kqGdu6nOa3qHmDUEV7JjGPeM oGd2peTQQ2SD2znjZHtVCqY7M/bGfUPHyutejAg=
X-Google-Smtp-Source: ABdhPJzK/VI11k+DiYDDGVPCNwrvEdEiW+uz/fblAdJ0qj/dgXBfVdHnywwXYZDqPDT1cNWLpnsZz+wMw4PHLFiIbWY=
X-Received: by 2002:a05:6122:732:: with SMTP id 50mr5579035vki.28.1639621012195; Wed, 15 Dec 2021 18:16:52 -0800 (PST)
MIME-Version: 1.0
References: <163957657258.13411.7816087918094513382@ietfa.amsl.com> <4768.1639592647@localhost> <86C6CE04-19A2-43D2-B10A-935F68D1E469@tzi.org> <31680.1639619194@localhost>
In-Reply-To: <31680.1639619194@localhost>
From: Ira McDonald <blueroofmusic@gmail.com>
Date: Wed, 15 Dec 2021 21:16:32 -0500
Message-ID: <CAN40gSuVxjxHMPJUK60kVGCTcohFtuh2fSR-C_1eP+4gdv1MZg@mail.gmail.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>, Ira McDonald <blueroofmusic@gmail.com>
Cc: Carsten Bormann <cabo@tzi.org>, cbor@ietf.org
Content-Type: multipart/alternative; boundary="000000000000ff8dff05d33a0395"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/lIH6FmghAqQeAJO-Cm6Nf8CAPn8>
Subject: Re: [Cbor] tags for non-CBOR Content-Formats (was Re: I-D Action: draft-ietf-cbor-file-magic-07.txt)
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 16 Dec 2021 02:16:59 -0000

Hi Carsten and Michael,

Just a thought.  What about "CBXX" (for CBOR wrapped external data)?

Cheers,
- Ira


On Wed, Dec 15, 2021 at 8:46 PM Michael Richardson <mcr+ietf@sandelman.ca>
wrote:

>
> Carsten Bormann <cabo@tzi.org> wrote:
>     >> This is in:
> https://datatracker.ietf.org/doc/html/draft-ietf-cbor-file-magic-07.txt#appendix-C
>     >> I see the argument to make this an appendix since it does not tag
> CBOR
>     >> content.  I fear that the reviewers and IESG will be confused
> though.
>
>     > We could add more text why this is in an appendix.
>
> I guess so.
>
>     >>
>     >> Should it really use CBOR as bytes 8-11, since the content is not,
> in fact, CBOR?
>
>     > The header is.
>
> Yeah, but for the human who saw this in the hexdump-C, if they get their
> CBOR
> decoder out, they will be slightly annoyed once they realize that it is
> only
> the header.
> Is there another four letter word that starts with C?
> (no, not that one)
>
> %grep -i '^c[a-z][a-z][a-z]$' /usr/share/dict/words | wc -l
> 186
>
> "cite" is one.... coax. coat. cork. crop.... czar.
> I have no reason to pick these, but the prefix is kinda of a coat.
> It could also be "CONT"ains.
>
>     >> Maybe we should say something else.  I don't feel strongly about
> this.
>
>     > I thought about that, but the tag should be the determining factor;
>     > keeping the information in two places invites mismatches.
>
> I take your point.
> My point is that those bytes were because we had to wrap something, and it
> provided a nice clue to the human who sees them.
> Again, I don't feel strongly.
>
>
>
>
>
>
>
> --
> Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 IøT consulting )
>            Sandelman Software Works Inc, Ottawa and Worldwide
>
>
>
>
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor
>