Re: [jose] Canonical JSON form

Bret Jordan <jordan.ietf@gmail.com> Thu, 11 October 2018 20:05 UTC

Return-Path: <jordan.ietf@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AB00B12785F for <jose@ietfa.amsl.com>; Thu, 11 Oct 2018 13:05:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, 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 (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 spvXq6OTzv4I for <jose@ietfa.amsl.com>; Thu, 11 Oct 2018 13:05:16 -0700 (PDT)
Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) (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 3BAFA127333 for <jose@ietf.org>; Thu, 11 Oct 2018 13:05:16 -0700 (PDT)
Received: by mail-yb1-xb2d.google.com with SMTP id e16-v6so4099423ybk.8 for <jose@ietf.org>; Thu, 11 Oct 2018 13:05:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=JBwKOGoTZapvrQAsJLAUhwWrfBGQ1nTs9YnVHFmgjjs=; b=YLmECJqCo7rIgMOhpoRJYSUz9r7Wpu6uU1nkFBmEK++ypR7GWWiFeSCRxWqC6nE7Rt vIUV7H28NEPL3JIU1zEXmSRU/rKyECwOHGAvfqojornCWe0ERP7x2YyXj78qsKx+RmIe bVBwxqNTX29j72Ym2nDKzfZn9j+/ISGTTthk0Sro2321geQLvhXCtz3tzDFMJ5dH87Nc /QXJF3x7xL7bW7UBg7q151FIk4Z7A+WO8w4t3VRBigANMpnTqd0rc+p+SDNRyBVgfpeB tzFWKeQTo9LkhluJwTIlXpBNN1sknfD2AugY/gAU6NTkBzd8RZirCJsJ8MO4BRa/2Y4N E6+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=JBwKOGoTZapvrQAsJLAUhwWrfBGQ1nTs9YnVHFmgjjs=; b=kzCZs7ol7tE/wlb5pQbA5HYFSwV+2jCGzZAwQR69PGkiSqQMFy4NZBmAZBFqwGdxHL AE4+0uKqHP+Upa9oYX5BS1JFbWZ0s6gZFwlk3/StxVqe2P3aYPqE9sgsTXs6Y03EACyU ijBIEpqM+MT+KdSk9OiqwtS9Y/Wkay0p4TXnH/316c7sUkH80eZgqqg2WVttxCEQKAon Ueiw+Jk9QqXBzCzF1hxeBHBu+QdrHhQZTDLFA+WHEWAIe64OwUa0Dt+Mx3goU35k+jCL PJk6WvWyQuobGylU3kT2s2gsoFCXmfv8eh8dnfccp3aHjwNbII0BF0HBZUmBBQFdhE38 2G/A==
X-Gm-Message-State: ABuFfoijN+qSCZ+qZNFH/1jiiJNd1M+8sROGRkeNZ4R5JKkXvXZaTKBn iiDY1IcGZ8d9tcscp400Q+Y=
X-Google-Smtp-Source: ACcGV61Vlf/WPjyK4xmKzNXrrld81Bmm5GDxglTAtOWyP9YOkv05HIdl6rhGgjIS5So6kVI77RToLQ==
X-Received: by 2002:a25:7ec5:: with SMTP id z188-v6mr1739109ybc.250.1539288315415; Thu, 11 Oct 2018 13:05:15 -0700 (PDT)
Received: from ?IPv6:2605:a601:3260:266:b07e:3f9:8bc0:bb28? ([2605:a601:3260:266:b07e:3f9:8bc0:bb28]) by smtp.gmail.com with ESMTPSA id r8-v6sm18342453ywa.56.2018.10.11.13.05.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 13:05:14 -0700 (PDT)
From: Bret Jordan <jordan.ietf@gmail.com>
Message-Id: <213796DB-D875-46B0-9F3C-1A56F9E154BA@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_9D1363C1-26C7-484A-9F7A-7AC1CDF6DD70"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
Date: Thu, 11 Oct 2018 14:05:08 -0600
In-Reply-To: <45bf6c0f-e510-4afc-4277-bdd486a8ce8c@gmail.com>
Cc: Carsten Bormann <cabo@tzi.org>, Phil Hunt <phil.hunt@oracle.com>, Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>, "Manger, James" <James.H.Manger@team.telstra.com>, jose@ietf.org
To: Anders Rundgren <anders.rundgren.net@gmail.com>
References: <12DD2F97-80C3-4606-9C6B-03F7A4BF19DE@gmail.com> <CAOASepNX4aYVmPWXyODn0E2Om_rimACPECqJBvZSOXVVd_p8LA@mail.gmail.com> <D21F3A95-0085-4DB7-A882-3496CC091B34@gmail.com> <CAOASepM=hB_k7Syqw4+b7L2vd6E_J0DSAAW0mHYdLExBZ6VBuw@mail.gmail.com> <00ad01d460f4$69ae8a00$3d0b9e00$@augustcellars.com> <8436AEE7-B25A-4538-B8F6-16D558D9A504@gmail.com> <MEAPR01MB35428606C09BF315DE04CC79E5E10@MEAPR01MB3542.ausprd01.prod.outlook.com> <CAHbuEH6DCD7Zc+PK3TnCBkKv1esnROwyCcDb8ZR+TKwgQQ+yXQ@mail.gmail.com> <0E6BD488-74D5-4640-BC31-5E45B0531AFC@gmail.com> <CAHbuEH5oH-Km6uAjrSr0pEHswFBLuDpfVweQ+gpj472yk+8iTQ@mail.gmail.com> <073CB50F-8D91-4EF6-90BE-FC897D557AA6@oracle.com> <A37D69B1-6B77-4E11-8BB9-A0209C77752C@tzi.org> <45bf6c0f-e510-4afc-4277-bdd486a8ce8c@gmail.com>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/cGp8Gz0yTzFzte3N2HunNndAW_g>
Subject: Re: [jose] Canonical JSON form
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Oct 2018 20:05:19 -0000

Anders,

I really like what you have done with this.  I am trying to figure out if it will work 100% for my needs, or if it will need some tweaking.  If it does work, then I think we should really try and figure out how we get your work standardized. 


Thanks,
Bret
PGP Fingerprint: 63B4 FC53 680A 6B7D 1447  F2C0 74F8 ACAE 7415 0050
"Without cryptography vihv vivc ce xhrnrw, however, the only thing that can not be unscrambled is an egg."

> On Oct 11, 2018, at 1:58 PM, Anders Rundgren <anders.rundgren.net@gmail.com> wrote:
> 
> Before dismissing Canonical JSON, you may take it for spin at:
> https://mobilepki.org/jws-jcs/home
> 
> This particular signature variant is 100% JWS compatible.
> 
> Although enveloped signatures may be "out of fashion", I find them quite practical since they don't interfere with the message structure.
> 
> An example: In the IETF TEEP work (building on JOSE), the designers were forced adding an unsigned outer JSON layer in order to get a reasonable system.
> 
> The idea is not replacing JOSE, only creating a viable alternative for folks who don't want to shroud their precious JSON data in Base64Url!
> 
> Thanks,
> Anders