Re: [Cbor] [Rats] Combining CBOR protocol libraries

Laurence Lundblade <lgl@island-resort.com> Fri, 21 May 2021 19:12 UTC

Return-Path: <lgl@island-resort.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 79AE53A1D43 for <cbor@ietfa.amsl.com>; Fri, 21 May 2021 12:12:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.893
X-Spam-Level:
X-Spam-Status: No, score=-1.893 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=unavailable 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 hocvBbS6hcEP for <cbor@ietfa.amsl.com>; Fri, 21 May 2021 12:12:29 -0700 (PDT)
Received: from p3plsmtpa08-07.prod.phx3.secureserver.net (p3plsmtpa08-07.prod.phx3.secureserver.net [173.201.193.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2BB453A1D41 for <cbor@ietf.org>; Fri, 21 May 2021 12:12:29 -0700 (PDT)
Received: from [192.168.1.81] ([76.167.193.86]) by :SMTPAUTH: with ESMTPA id kAZQlWewzglockAZQlAO1T; Fri, 21 May 2021 12:12:28 -0700
X-CMAE-Analysis: v=2.4 cv=LMqj/La9 c=1 sm=1 tr=0 ts=60a8061c a=t2DvPg6iSvRzsOFYbaV4uQ==:117 a=t2DvPg6iSvRzsOFYbaV4uQ==:17 a=0XtbOteLAAAA:20 a=7CQSdrXTAAAA:8 a=K6EGIJCdAAAA:8 a=48vgC7mUAAAA:8 a=HEonoVtKCSpAnO0fw30A:9 a=QEXdDO2ut3YA:10 a=k7KLY2EzodI-C8f_:21 a=_W_S_7VecoQA:10 a=a-qgeE7W1pNrGK8U0ZQC:22 a=L6pVIi0Kn1GYQfi8-iRI:22 a=w1C3t2QeGrPiZgrLijVG:22
X-SECURESERVER-ACCT: lgl@island-resort.com
From: Laurence Lundblade <lgl@island-resort.com>
Message-Id: <F3009559-9208-4373-8C2A-F8A288AECCB9@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_D56675B0-7497-43A2-9F96-B073E398FF8B"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\))
Date: Fri, 21 May 2021 12:12:27 -0700
In-Reply-To: <899303B0-5428-43C3-963A-F9270688F2D6@arm.com>
Cc: "cbor@ietf.org" <cbor@ietf.org>, "rats@ietf.org" <rats@ietf.org>
To: Thomas Fossati <Thomas.Fossati@arm.com>
References: <2AE5612D-B305-4F2C-BC1A-F36F0093F0C0@island-resort.com> <3382F797-49C8-4ECC-AA86-08AD53240D73@arm.com> <445B2798-B484-4106-9D8B-2B6A4CC35D99@island-resort.com> <899303B0-5428-43C3-963A-F9270688F2D6@arm.com>
X-Mailer: Apple Mail (2.3445.104.17)
X-CMAE-Envelope: MS4xfP1rJjDXTiVcMBDvalsAGT43U0VUXUMcG6Cwzwdr5RWE1F6yEzIrbMPq7K5AaVo0SBLjxS+VhYibbNkBQMJXP50Z9z2cyMmaoZlrjqag4bvTu/StfQYZ gqvILrm3LXovYpO14RRSUfw0j7S7yv7+uJIg4S8HACT1SCqW2tgfYP5kz+BObcssZrl+zNN1G7kV5mD+/bj0f6/W6yPkBtellYmO34Pjq4ly4EnihL8DFHSn haCBKueu6K2ixaMGVHbUXg==
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/ZCeSVwyPZuFKGJAv8CbfvXjtXK4>
Subject: Re: [Cbor] [Rats] Combining CBOR protocol libraries
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: Fri, 21 May 2021 19:12:35 -0000

I’ve made an update to the manifests and swevidece EAT claims here <https://github.com/ietf-rats-wg/eat/pull/102> that requires byte string wrapping. It also puts tags to use for kind of a full solution for identifying and handing off sub-protocol in the CBOR context. It goes like this:

If the sub-protocol is CBOR based (e.g. a CoSWID), then wrap it in a byte string and rely on the sub-protocol tag for dispatch to the correct handler.

If the sub-protocol is NOT CBOR based (e.g. and XML SWID), then contain it in a tagged byte string and again use the tag for dispatch.

In the first the tag is the contents of the byte string wrapping and in the second the byte string is the contents of a tag.

Note that I’m using the word “tag” here to mean the tag number AND tag content. I believe the at is the correct use of the tag in the CBOR context, even though it is counter intuitive.

(I also plan to eventually allow QCBOR to return raw encoded CBOR for arrays and maps to be able to implement protocols that don’t add the byte string wrapping layer)

LL



> On May 21, 2021, at 12:16 AM, Thomas Fossati <Thomas.Fossati@arm.com> wrote:
> 
> On 20/05/2021, 22:10, "Laurence Lundblade" <lgl@island-resort.com> wrote:
>> So which is the better practice, byte-string wrapping for protocols or
>> a requirement on your better CBOR decoders?
> 
> From an IETF perspective, what we can do to make protocol composition
> easier is to do as you suggested.
> 
> 
> 
> 
> 
> IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor
>