Re: [Rats] OIDs for profile (was Re: IANA pre-RFC code points)

Thomas Fossati <tho.ietf@gmail.com> Mon, 01 March 2021 07:04 UTC

Return-Path: <tho.ietf@gmail.com>
X-Original-To: rats@ietfa.amsl.com
Delivered-To: rats@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B2E703A16BB for <rats@ietfa.amsl.com>; Sun, 28 Feb 2021 23:04:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.198
X-Spam-Level:
X-Spam-Status: No, score=-0.198 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 mTKxY3QavXXu for <rats@ietfa.amsl.com>; Sun, 28 Feb 2021 23:04:04 -0800 (PST)
Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (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 10E783A16BA for <rats@ietf.org>; Sun, 28 Feb 2021 23:04:04 -0800 (PST)
Received: by mail-lf1-x12e.google.com with SMTP id b1so12956242lfb.7 for <rats@ietf.org>; Sun, 28 Feb 2021 23:04:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=HCmj5dlbIyXGgoPJP1gSCw1u6n50o2QkHFXDiyH650s=; b=cLv+69mC02K1VxXRPNPkhwwhbjbyY9Cku5WedHFKLzZbXZ7YM+B4lrzU5sGiRe0pHO lsooqdfTnG9Drflm8zPq/CHjNznCWsCkj4zXXuUvtPy/5vP4dBzj0dXnlWdYR695r9ax 5fWB6aHB0QEYbrYurca8ojpwPHaVsm/RyT7oawBqeuzkN4srpAoIF95ZcjsUVUxxg914 cS2EnQKe0bT9npWFMJh17uGmxnC0R7P+NZWG5q8UdS/G2LtP+qKpaZJlRwAIuY6MUbtc 67h6f67/wM8ujAuLrAM0m1NxbykKbTEq1SKyRuUveNzuBvrgb7iQ8Qvq3pgdYkjjem3g 31Tg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=HCmj5dlbIyXGgoPJP1gSCw1u6n50o2QkHFXDiyH650s=; b=guSiMCqy9SM3TXhcaukhbdEzOT8s/4oO8S2zfw992N07o0itoJtCMihRPfRs4x/S2V G4m0GZXk5r2FleaSYkKrxvk63RvMfvCemeMF924bSFzALIIw0dIbZPc+ic4YcoOeUw3t +5kR+/Sz/LW94rLNq8a3oRNUuQ1gxX5TWJS09fiv0v1cf2NWy2MKg5f0P0HxLnWbx5qo Gz7yBujGrBvO9tQwNvS59X7+zvASMZ4OBOMhN0tyrPiXrnZ2dbM7x6vjc6nFx5C3Jq52 IfFcoIDE8Mm2xy8HTdOBZJCTWLmbte/GM/Sy0nvmlqkCZsvFti/1o3cRwZiazPEPwK3o QRLA==
X-Gm-Message-State: AOAM532iLJLkLvH071sykAtMg4IJVNMNfPtXZb2L8MfPA/AYLrFmQvOp 4fbphKNN2L0oV69JMcKh0JpRH6Ya87+9dQEgojo=
X-Google-Smtp-Source: ABdhPJx9OP4j/9As5OhFLH42t0an5Ld1SXRKUQiUZoj9MFdOhjEo6vmbNVphnLVVlP0NoRPUtGPijy7oVq1JRmCaZhM=
X-Received: by 2002:ac2:47ea:: with SMTP id b10mr4087879lfp.499.1614582237079; Sun, 28 Feb 2021 23:03:57 -0800 (PST)
MIME-Version: 1.0
References: <80F4DFAD-8A5D-44DC-BEDF-BA96B7F21991@arm.com> <D7AFAA80-B8EE-4657-8A81-71FE4F79E23B@island-resort.com> <CO1PR11MB51690D5D3D7EA17153C83EBAE5889@CO1PR11MB5169.namprd11.prod.outlook.com> <B549435F-1896-4A8D-A1FB-CE57567E824D@island-resort.com> <0CF448FE-B249-496E-B1A8-528B189DA16C@intel.com> <E386083F-DD06-452D-A6A7-6EEC0C79A1F8@island-resort.com> <DC3C69C6-4995-4050-B8E0-38057B321DE7@arm.com> <AC5754A8-1BC3-49E9-8B61-F7DA96BDDA99@island-resort.com> <79A5E862-B336-4B67-AE02-9E6F2E9375AC@arm.com> <B34C7BD7-6EE7-4948-911F-F1F92FAB3954@island-resort.com> <4473BF8F-2681-4F0B-8152-2194F23A12CE@arm.com> <7b79459f-b766-d821-e549-7b3068760a10@sit.fraunhofer.de> <31513B32-3CC6-4AE0-8C79-4A9078DEE3EE@island-resort.com> <115687F0-10AE-4710-BE0C-8D35AC8D8B94@island-resort.com>
In-Reply-To: <115687F0-10AE-4710-BE0C-8D35AC8D8B94@island-resort.com>
From: Thomas Fossati <tho.ietf@gmail.com>
Date: Mon, 01 Mar 2021 07:03:46 +0000
Message-ID: <CAObGJnMx-H0Ky3JZdOXKue4rrT0bHPa7RYxqy9P5u0Zv77qMmQ@mail.gmail.com>
To: Laurence Lundblade <lgl@island-resort.com>
Cc: "Smith, Ned" <ned.smith@intel.com>, Henk Birkholz <henk.birkholz@sit.fraunhofer.de>, Thomas Fossati <Thomas.Fossati@arm.com>, "rats@ietf.org" <rats@ietf.org>, Simon Frost <Simon.Frost@arm.com>, Adrian Shaw <Adrian.Shaw@arm.com>, Hannes Tschofenig <Hannes.Tschofenig@arm.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/rats/4DKMljhqYgTogheKBVExvwCG5LA>
Subject: Re: [Rats] OIDs for profile (was Re: IANA pre-RFC code points)
X-BeenThere: rats@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Remote ATtestation procedureS <rats.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rats>, <mailto:rats-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rats/>
List-Post: <mailto:rats@ietf.org>
List-Help: <mailto:rats-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rats>, <mailto:rats-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Mar 2021 07:04:06 -0000

Hi Laurence, thanks for the PR!

On Mon, Mar 1, 2021 at 3:11 AM Laurence Lundblade <lgl@island-resort.com> wrote:
>
> FYI, one of the implications of using an OID here is that to translate a token to/from CBOR to JSON will require code to turn CBOR OIDs into text string dotted-decimal OIDs and vice versa. That’s going to require a full encoder/decoder of the ASN.1 OID format.
>
> This is probably OK because:
> - this is nothing near a full ASN.1 encoder/decoder
> - this will happen mostly on servers where code size is not an issue
>
> Note that the plan to format an OID in JSON is to use a text string like “1.2.20.1”.
>
> (I’m working on code that will translate CBOR tokens to JSON; it’s a good validation of the EAT draft).

We have an implementation that can do this [1].  Once you have yours
up & running it'd be great to get together and define a bunch of test
cases to exercise the full round trip between codebases.

We are at the RATS hackathon table all week if you are interested.

cheers!

[1] https://github.com/veraison/eat/blob/c058d63f0079e62819434681d0cbf9a5283b8fef/eat_test.go#L164)