Re: [jose] #20: Shorter names for JSON serialization

Richard Barnes <rlb@ipv.sx> Wed, 08 May 2013 15:43 UTC

Return-Path: <rlb@ipv.sx>
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 72F4D21F901B for <jose@ietfa.amsl.com>; Wed, 8 May 2013 08:43:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.106
X-Spam-Level:
X-Spam-Status: No, score=-2.106 tagged_above=-999 required=5 tests=[AWL=0.870, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XH8kGxBqMJbu for <jose@ietfa.amsl.com>; Wed, 8 May 2013 08:43:06 -0700 (PDT)
Received: from mail-oa0-f44.google.com (mail-oa0-f44.google.com [209.85.219.44]) by ietfa.amsl.com (Postfix) with ESMTP id DBB2121F8FE9 for <jose@ietf.org>; Wed, 8 May 2013 08:43:05 -0700 (PDT)
Received: by mail-oa0-f44.google.com with SMTP id n12so2209471oag.31 for <jose@ietf.org>; Wed, 08 May 2013 08:43:05 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:x-originating-ip:in-reply-to:references :date:message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=3pxsjz+/uOLq557hKDLkkWZaMqO2lnCgsz70gXxlCnA=; b=Q8i9F8Zop2RlX4D6T2cU0vwJAXEIyU9/gIWYZDTtYYnL+ULlf6vEoRQuuZ688e/kaQ wB4ZT73tlZN8ob7Rz3LJSFywieF4/iOXSKGJ5SBQ9jCeFG2IHaqf0XJLzeFf9xwFYVHu 4/VaDD264ZJ1A3y+I7aAB/ZJhoiAVE7YFENUMU+MnX8M47WwnQatWxa0eYp0A8wls4ld 0gQ+3jSia7B5F7bt6/ZGe8zmwwJAOdo14skcpdJDyDeMvG5PaTFsJURkrWfy2bOjM5GE vGCS+TOsLKNGtpRP47VXg0TEtNnvPV5fzX42VXf5gg0hjX1wbhWMEInCvDtooQG7Nl7o 52ig==
MIME-Version: 1.0
X-Received: by 10.182.34.164 with SMTP id a4mr865779obj.43.1368027785156; Wed, 08 May 2013 08:43:05 -0700 (PDT)
Received: by 10.60.132.165 with HTTP; Wed, 8 May 2013 08:43:05 -0700 (PDT)
X-Originating-IP: [193.1.64.8]
In-Reply-To: <20130508013941.cc40c4f3d92d2001859047cd8cabb9ab.48b3dedebc.wbe@email07.europe.secureserver.net>
References: <20130508013941.cc40c4f3d92d2001859047cd8cabb9ab.48b3dedebc.wbe@email07.europe.secureserver.net>
Date: Wed, 08 May 2013 16:43:05 +0100
Message-ID: <CAL02cgTF-Jsfvw+qTEfw8yTcsKm-dQ1u66k6xb9pgW8fB8JM=w@mail.gmail.com>
From: Richard Barnes <rlb@ipv.sx>
To: Vladimir Dzhuvinov / NimbusDS <vladimir@nimbusds.com>
Content-Type: multipart/alternative; boundary="001a11c1daa22d6a5e04dc36ca86"
X-Gm-Message-State: ALoCoQlKuHdzOp2q7Tq0LiIxIZnRD7CFf/H9MiCN4r3f7EBCnJUO41RxjoMUztTJg9qT1vuSU6ri
Cc: "draft-ietf-jose-json-web-encryption@tools.ietf.org" <draft-ietf-jose-json-web-encryption@tools.ietf.org>, jose issue tracker <trac+jose@trac.tools.ietf.org>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] #20: Shorter names for JSON serialization
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.12
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: <http://www.ietf.org/mail-archive/web/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: Wed, 08 May 2013 15:43:10 -0000

"iv" and "tag" would be OK.  I still prefer "mac" over "tag", for
consistency with CMS, and just because I think MAC is a more uniformly used
phrase.

What about "data" for "payload" and "ciphertext"?


On Wed, May 8, 2013 at 9:39 AM, Vladimir Dzhuvinov / NimbusDS <
vladimir@nimbusds.com> wrote:

> +1 for "iv" and "tag"
>
> --
> Vladimir Dzhuvinov : www.NimbusDS.com : vladimir@nimbusds.com
>
>
>
> -------- Original Message --------
> Subject: Re: [jose] #20: Shorter names for JSON serialization
> From: Mike Jones <Michael.Jones@microsoft.com>
> Date: Tue, May 07, 2013 10:40 pm
> To: Richard Barnes <rlb@ipv.sx>, Jim Schaad <ietf@augustcellars.com>
> Cc: "draft-ietf-jose-json-web-encryption@tools.ietf.org"
> <draft-ietf-jose-json-web-encryption@tools.ietf.org>, jose issue tracker
> <trac+jose@trac.tools.ietf.org>, "jose@ietf.org" <jose@ietf.org>
>
>   What about “iv” and “tag”?  For the other names, I’d
> actually prefer staying with those that are full words rather than those
> that are abbreviations of words, since they’re more descriptive.  But
> I agree that “initialization_vector” and “authentication_tag”
> were overkill.
>
>                                                              -- Mike
>
>  From: Richard Barnes [mailto:rlb@ipv.sx]
>  Sent: Monday, May 06, 2013 2:51 PM
>  To: Jim Schaad
>  Cc: jose issue tracker;
> draft-ietf-jose-json-web-encryption@tools.ietf.org; jose@ietf.org
>  Subject: Re: [jose] #20: Shorter names for JSON serialization
>
>  Even that's the name for the corresponding field in CMS
> AuthEnvelopedData and AuthenticatedData?
>
>
>  On Monday, May 6, 2013, Jim Schaad wrote:
>  I would be againist calling the authentication_tag mac.  I don't object
> to
>  something like AuthTag.  It is not necessarily a MAC in all cases so
> calling
>  it one make thing problematical - much like calling a mac a sig.
>
>  Jim
>
>
>  > -----Original Message-----
>  > From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf
> Of
>  > jose issue tracker
>  > Sent: Monday, May 06, 2013 2:29 PM
>  > To: draft-ietf-jose-json-web-encryption@tools.ietf.org; rlb@ipv.sx
>  > Cc: jose@ietf.org
>  > Subject: [jose] #20: Shorter names for JSON serialization
>  >
>  > #20: Shorter names for JSON serialization
>  >
>  >  I noticed as I was doing some programming with the JSON syntax for
>  JWE/JWS
>  > that the current field names in the JSON format are unnecessarily
>  > cumbersome.  Nobody in the real world names a variable
>  >  "initialization_vector", it's "iv".   Proposed changes:
>  >
>  >  || OLD                     || NEW  ||
>  >  || signatures              || sigs ||
>  >  || signature               || sig  ||
>  >  || payload                 || data ||
>  >  || recipients              || keys ||
>  >  || ciphertext              || data ||
>  >  || initialization_vector   || iv   ||
>  >  || authentication_tag      || mac  ||
>  >
>  > --
>  >
> -------------------------+----------------------------------------------
>  > -------------------------+---
>  >  Reporter:  rlb@ipv.sx   |      Owner:  draft-ietf-jose-json-web-
>  >      Type:  defect       |  encryption@tools.ietf.org
>  >  Priority:  minor        |     Status:  new
>  > Component:  json-web-    |  Milestone:
>  >   encryption             |    Version:
>  >  Severity:  -            |   Keywords:
>  >
> -------------------------+----------------------------------------------
>  > -------------------------+---
>  >
>  > Ticket URL: <http://trac.tools.ietf.org/wg/jose/trac/ticket/20>
>  > jose <http://tools.ietf.org/jose/>
>  >
>  > _______________________________________________
>  > jose mailing list
>  > jose@ietf.org
>  > https://www.ietf.org/mailman/listinfo/jose
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>