Re: [Ace] Syntax check of examples in draft-ietf-ace-cwt-proof-of-possession-05

Mike Jones <Michael.Jones@microsoft.com> Fri, 30 November 2018 19:45 UTC

Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: ace@ietfa.amsl.com
Delivered-To: ace@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 42B4D130F97 for <ace@ietfa.amsl.com>; Fri, 30 Nov 2018 11:45:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.46
X-Spam-Level:
X-Spam-Status: No, score=-3.46 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.46, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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=microsoft.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 0HTRcmtgXHFl for <ace@ietfa.amsl.com>; Fri, 30 Nov 2018 11:45:53 -0800 (PST)
Received: from NAM06-BL2-obe.outbound.protection.outlook.com (mail-eopbgr650119.outbound.protection.outlook.com [40.107.65.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BBDDB130F96 for <ace@ietf.org>; Fri, 30 Nov 2018 11:45:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=F+ZlLC8w1YGfmxQioOazyN2X3Aj/cwlBuyaIY4rr6ts=; b=doW+b1lYahjG8Zd+p2yNnioQDrUJGaNv5/DzIqhPHef6h+EVd+r0U6Z740NeCBVbW75NspF82t8rhEn1GvoJEAbuRbXLgP/DQIpeEZc66EVjWh5WkDCLWjnO9Djhq7VXN0mjKf7E6nSbnVEvfjGoD6WvI/kM+NC+0syoNHJyAAs=
Received: from SN6PR00MB0301.namprd00.prod.outlook.com (52.132.117.155) by SN6PR00MB0446.namprd00.prod.outlook.com (52.132.118.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.1429.0; Fri, 30 Nov 2018 19:45:49 +0000
Received: from SN6PR00MB0301.namprd00.prod.outlook.com ([fe80::2006:968c:9d8d:32b0]) by SN6PR00MB0301.namprd00.prod.outlook.com ([fe80::2006:968c:9d8d:32b0%2]) with mapi id 15.20.1429.000; Fri, 30 Nov 2018 19:45:49 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Roman Danyliw <rdd@cert.org>, "ace@ietf.org" <ace@ietf.org>
Thread-Topic: Syntax check of examples in draft-ietf-ace-cwt-proof-of-possession-05
Thread-Index: AdSI3wRNfJL7yZrTRs6T+pPDYimggAABj6nA
Date: Fri, 30 Nov 2018 19:45:49 +0000
Message-ID: <SN6PR00MB030160EE28834BA9EAC246FDF5D30@SN6PR00MB0301.namprd00.prod.outlook.com>
References: <359EC4B99E040048A7131E0F4E113AFC0184C52937@marathon>
In-Reply-To: <359EC4B99E040048A7131E0F4E113AFC0184C52937@marathon>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=mbj@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2018-11-30T19:45:47.0387872Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General
x-originating-ip: [2001:4898:80e8:8:535:6ce7:ef20:39c9]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; SN6PR00MB0446; 6:mmreNXLFyvf0w+6OEGsOQcmuj0uicKsLX25FRbiWQTj0oIyCkk+zoQpRV6Hxq+4O9V0EvWeOvLoxwWQXoAQ3omJeU8E7C4UxEZncACmAlvqtjc8cjy6bZNlm9nmDo2u9tusclWFWYSb+2ICXteix5sjamAd3wM42FPzEtwzqoGyLBRJFgL2SHQpyqhxOtGr8M+1rCxPFrnSf9EokxEtQyBMPCeTdTR/AX43UNiodni6q4Ew0fDU3q2S4Y4ppuAyqsDeEtFADlrLoRhXcdZrtKIJQF8XYm795uBhpPpiTmVrAnby0aZnvid4x0uAmbsoUMilXeR9meDfkr3i86Ff6E9co1QFywfHbCJUvHZr1qCw9AuUpXtpwI5V/Jm7SceA6st12cuOUQrvcUWen6eiv++Bg519IQVd6tnQF94SQ0emD55IUNC+hMxCiam04F/prhM1qO7aDImrm7t6aYjQTTg==; 5:noqOfZAG2Rj1JOtzgKx45fOsKn2uBvlHHeq2SFgcSIapFZh+Yqmf+to1Q48uco74+yrteBTy6kZx6i7/Btk6AbLOWfEJf1iQv4BUKz24Q+q0Dfy5/I0w11AjlHWCw4FGG7tDLsNLo76hHHC/nYtrZ3L6+5fN/xgOD62Wod/9oO0=; 7:lUNJhs7TRQOTFJMxRz632aPFdvWqvpoizON2RDq64DKwYFidQNTh+3voOojwkTlIJzfDeWH6Y07wn5Qrjzlu/gHFKxjyfol87GgRVp68rqGbGq+I2b9BRFBMBW1bwx1BKXLar1XD35XDJht/z5LzQw==
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 897b577d-d52f-4148-1b1e-08d656fc6db6
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:SN6PR00MB0446;
x-ms-traffictypediagnostic: SN6PR00MB0446:
x-ms-exchange-purlcount: 1
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.Jones@microsoft.com;
x-microsoft-antispam-prvs: <SN6PR00MB0446ABEA3DB74E5A44B3A652F5D30@SN6PR00MB0446.namprd00.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(2017102700009)(2017102701064)(6040522)(8220035)(2401047)(5005006)(8121501046)(2017102702064)(20171027021009)(20171027022009)(20171027023009)(20171027024009)(20171027025009)(20171027026009)(2017102703076)(93006095)(93001095)(3002001)(3231453)(999002)(944501468)(2018427008)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201708071742011)(7699051)(76991095); SRVR:SN6PR00MB0446; BCL:0; PCL:0; RULEID:; SRVR:SN6PR00MB0446;
x-forefront-prvs: 087223B4DA
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(396003)(346002)(366004)(136003)(39860400002)(13464003)(199004)(189003)(71190400001)(71200400001)(316002)(2501003)(55016002)(22452003)(97736004)(74316002)(6506007)(76176011)(8990500004)(6246003)(575784001)(14454004)(102836004)(7736002)(6116002)(11346002)(446003)(86612001)(5660300001)(110136005)(486006)(476003)(7696005)(25786009)(99286004)(53546011)(106356001)(86362001)(68736007)(33656002)(10290500003)(8676002)(81166006)(8936002)(81156014)(46003)(305945005)(229853002)(966005)(72206003)(186003)(256004)(53936002)(6306002)(9686003)(105586002)(6436002)(508600001)(10090500001)(2906002); DIR:OUT; SFP:1102; SCL:1; SRVR:SN6PR00MB0446; H:SN6PR00MB0301.namprd00.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: tWqva2nn71Xr0aanfyqNluHUcb5RQekzVF7cJUPUESe4cqYKUCLIqcbeiinLBZT5TPMrHyIf/Sth2vRr5vNCPeiLPb2bNrgs9E977bvqhloOQY2vNa13gxjBbaegBxt2O/98NvzyiDTXeqU5sQGW1YURITl9qHAcIMSuJuNVY1uN27cEPc1cUJ0Iyxs283SqHODVIPtuFTKcNdTXrX6GSIqpbaJsOp+3W28C5+Ux4/7nVC5GABIGQpdKGKV0zcPADDjtxa8SouM6L8Mn19dZ6GP1OXpDugrtWrjVsAKrqw4exii+LfC+wQb7FkEgFwvKqy4fbHctyXvG0iISMPd2iF9SSe2B9r/uG2ksYed3b/o=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 897b577d-d52f-4148-1b1e-08d656fc6db6
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2018 19:45:49.0871 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR00MB0446
Archived-At: <https://mailarchive.ietf.org/arch/msg/ace/39QigLVa4DnGKfwImZVFb4B50Oo>
Subject: Re: [Ace] Syntax check of examples in draft-ietf-ace-cwt-proof-of-possession-05
X-BeenThere: ace@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Authentication and Authorization for Constrained Environments \(ace\)" <ace.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ace>, <mailto:ace-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ace/>
List-Post: <mailto:ace@ietf.org>
List-Help: <mailto:ace-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ace>, <mailto:ace-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 30 Nov 2018 19:45:57 -0000

Thanks - we'll address that as well.

				-- Mike

-----Original Message-----
From: Ace <ace-bounces@ietf.org>; On Behalf Of Roman Danyliw
Sent: Friday, November 30, 2018 11:10 AM
To: ace@ietf.org
Subject: [Ace] Syntax check of examples in draft-ietf-ace-cwt-proof-of-possession-05

Hello!

As part of my shepherd review, I ran all of the examples in draft-ietf-ace-cwt-proof-of-possession-05 through a CBOR diagnostic-to-CBOR validator (thanks Carsten for cbor.me).  All of the examples were fine but the first one in Section 3.3:

--[current text]--
     {
      /kty/ 1 : /Symmetric/ 4,
      /alg/ 3 : /HMAC256/ 5,
      /k/ -1 : h'6684523ab17337f173500e5728c628547cb37df
                 e68449c65f885d1b73b49eae1A0B0C0D0E0F10'
     }
--[end]--

The error was:

Expected one of [ \t\n\r], "/", [0-9a-fA-F] at line 5, column 56 (byte 184) after { /kty/ 1 : /Symmetric/ 4, /alg/ 3 : /HMAC256/ 5, /k/ -1 : h'6684523ab17337f173500e5728c628547cb37df e68449c65f885d1b73b49eae1A0B0C0D0E0F10

It appears that the string of hex encoded octets in /k/ is short one character.

Roman 

_______________________________________________
Ace mailing list
Ace@ietf.org
https://www.ietf.org/mailman/listinfo/ace