[Cbor] draft-ietf-cbor-packed - Have you considered infixes?

John Mattsson <john.mattsson@ericsson.com> Mon, 08 March 2021 16:10 UTC

Return-Path: <john.mattsson@ericsson.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 1B2B63A2CED for <cbor@ietfa.amsl.com>; Mon, 8 Mar 2021 08:10:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.348
X-Spam-Level:
X-Spam-Status: No, score=-2.348 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.248, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 hzvDkeJhBKmr for <cbor@ietfa.amsl.com>; Mon, 8 Mar 2021 08:10:28 -0800 (PST)
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130072.outbound.protection.outlook.com [40.107.13.72]) (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 86CCC3A2CEB for <cbor@ietf.org>; Mon, 8 Mar 2021 08:10:28 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XYaLSxDO1TqNX9qO15ZIrJoJwpC+FFJNaHV7TCurJhaSVqMjjCi9CgPp3F/yU6beTx/3nLbtivYTne4yRN9Atjd0/GhT7TliTht2oMMT8g2A07Y0xaTXQKY/IX/UpdAXAwav+Z3mORwF/yUL+MLTa8wRqvpjelnvug7Q9PYwOwd1eUMUuMiWRDtIuXFW9g5VY4hG/+6dROV1pVXvaLjN6xnXE+xB4rXYKLufFp0dnfyQJyk/jqKXmDnke4R6HfMCvNDubEDkwiA7uBqAyOZVpaY5Fs3tnA5rTPV/tliFIwR7Y8ascGJCNkLr7Dg0nerDs+/GGwSMm+zfc/pBWySHLw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O0SZtIv3Ww3Ssb16N4bk9HEapHUb4eLfvhrHbhC3FT4=; b=TP5Rlf/alp6X72VXbpzjjJQbjHEW4SA1qDxVq9IAsR8iaf59xzYN5zx3zoQGSu9cpK3Mtn2DkcvPIr92EJspQAVEb8c7rKi9H+FfId4ldG8hVqJXdY9WRpw85wQD8Z6/dnk2fV/yfL74P098dG1CEIcD+9g+6FXaysWKCuemZfIrCBTeH6cBj+JJiAP8MkHToSXvQ5Bd2n3bMtSZgpS9rCK0sBiyqVQczMucEnFP0hXtdRrs5mT6Lxa5Lkoipo8N4qMbVo42E4V2qPUMr0RjjpjolpCsU01Dfh18ki8wxkHJxZFrKrB095YAUjEJPDMjW6vhX6JKbrx7/7Ju+4dHmQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O0SZtIv3Ww3Ssb16N4bk9HEapHUb4eLfvhrHbhC3FT4=; b=NxMq+Rllan4ixJX4wyb4XONoSqv8ZTB8G4+n1XalihP7yRYJyrapMiXzy+n5MWYpB6Sffz4ngFBf005WB8dvfpUwPlUP/du1MnGhkRutIepi9w+dYg7VG3l93cnJLTi4UjeiuQHAc4aUGeCvAtZukkDMQr+O07MifDQZck/r+5Y=
Received: from HE1PR0701MB3050.eurprd07.prod.outlook.com (2603:10a6:3:4b::8) by HE1PR07MB3434.eurprd07.prod.outlook.com (2603:10a6:7:2c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.11; Mon, 8 Mar 2021 16:10:25 +0000
Received: from HE1PR0701MB3050.eurprd07.prod.outlook.com ([fe80::69ab:83ff:dd6e:3536]) by HE1PR0701MB3050.eurprd07.prod.outlook.com ([fe80::69ab:83ff:dd6e:3536%4]) with mapi id 15.20.3912.027; Mon, 8 Mar 2021 16:10:25 +0000
From: John Mattsson <john.mattsson@ericsson.com>
To: "cbor@ietf.org" <cbor@ietf.org>
Thread-Topic: draft-ietf-cbor-packed - Have you considered infixes?
Thread-Index: AQHXFDWMSXjgSOcRs0eUlmEgK0oWcA==
Date: Mon, 8 Mar 2021 16:10:24 +0000
Message-ID: <76541F9A-947C-42FC-8427-89BAEEF5DB7F@ericsson.com>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.46.21021202
authentication-results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=ericsson.com;
x-originating-ip: [192.176.1.85]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: bccbf667-2e57-46bf-75eb-08d8e24caec4
x-ms-traffictypediagnostic: HE1PR07MB3434:
x-microsoft-antispam-prvs: <HE1PR07MB3434650CD5E6FA40F4EFAE3789939@HE1PR07MB3434.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:7691;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: Ibsbds9qZgYAQMWc9FPnxMeIw0zL4YDd665droCjMTxOE2E6yBcO3ekDrwUhSuqHexIpUY6Z7Be1UJQ9aVGUwqd1kK1gfF4sTU2pyvpEW/BQABrQ/eOSeV1PvSL2MBnlmLMlH6+1P0WM2NDi/mdFV7PPMBetYII3E/nGJkM6gRDnEa8kcurIn6pFftyUYVgNvUxo9CnQWKwN6mLFP/oCcAm4G0KEhfT8B+Vr3u2+tORb6eHDEWA3fkMlOW7i8UAQRiAwohngtjg+ecClP/Sj+1o8eVzEt6X/v0nTHEdNs+UMRvKt666TBcAfkaRanrdsGE6wa4wcHr9yIeswoMyMYERtt084kn4TVs1/au0ogK8XZrxOy88fRPf27IiP8aPUa1tbGHGODtAhSMZxd7kLNeU5hvj4YgcpizwpzWKN2h//YMQvH03Bu8+Zkq/mIoaiXb3uzdOpjd+LC1Dw0N88mnvVqZJT0seSbJAPHkNJmSrac3EZ+hPmq5OGp1VTePS4gJHpwb68WujWC0kCkV8ozmaozuBDEnNVu21c2lAD8Hw0wuvZZmCa34O1EFKXCm9YsY0PS4h+Baowrh/R7fM4Fb34jeXY0/eVvRYA8I0CL6P6oo6Spzj4CRv7HqcAaBWKGfWVaJ5qJ5vf9C2ZKOvBWP8SQ+etql4ijqo1GDc/IFGk7mAAL1WCnPjZEUoIxf1i
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0701MB3050.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(346002)(39860400002)(396003)(366004)(186003)(6506007)(8676002)(26005)(6486002)(33656002)(6512007)(166002)(5660300002)(44832011)(86362001)(8936002)(66946007)(316002)(76116006)(2906002)(478600001)(66446008)(64756008)(66556008)(966005)(66476007)(6916009)(36756003)(71200400001)(4744005)(2616005)(562404015)(45980500001); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: =?utf-8?B?OTd6RDVFbVorNWtaUlpJeGM0Y0k3MVp0Zlhx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undary="_000_76541F9A947C42FC842789BAEEF5DB7Fericssoncom_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: HE1PR0701MB3050.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: bccbf667-2e57-46bf-75eb-08d8e24caec4
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2021 16:10:24.9358 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: kaMd5BdqQLmX0Eoc2INuNYo1pXOJ5lU/DAvaLUPWBZWV3T4+LkVLXWMnhnuHexAO+a4kUU/wEhe13wf1k2EzP9vqU6i6FZBEOCKdQZBtpeE=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3434
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/2G6tQ0WkfaN8xxxMARCTUJE8Hf0>
Subject: [Cbor] draft-ietf-cbor-packed - Have you considered infixes?
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: Mon, 08 Mar 2021 16:10:31 -0000

Hi,



There was a suggestion from Michael to use Packet CBOR for CBOR encoded X.509 chains

https://datatracker.ietf.org/doc/draft-mattsson-cose-cbor-cert-compress/



I have not looked deeply into this and don’t know yet if it is a good idea or not but a quick look at the CBOR encoded X.509 shows that shared information between strings are not necessarily prefixes or suffixes, but rather infixes.



Have you considered adding infixes to draft-ietf-cbor-packed?



[

-4, "US",

-6, "Arizona",

-5, "Scottsdale",

-8, "Starfield Technologies, Inc.",

-9, "http://certs.starfieldtech.com/repository/",

-1, "Starfield Secure Certificate Authority - G2"

],

[

  4, "http://crl.starfieldtech.com/sfig2s1-242.crl",

  5, [ h'6086480186fd6e01071701', "http://certificates.starfieldtech.com/repository/", 1 ],

  8, [ 1, "http://ocsp.starfieldtech.com/", 2, "http://certificates.starfieldtech.com/repository/sfig2.crt" ]

]



Cheers,

John