Re: [jose] #23: Make crypto independent of binary encoding (base64)

Dick Hardt <dick.hardt@gmail.com> Wed, 12 June 2013 03:24 UTC

Return-Path: <dick.hardt@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 5B54121F9A29 for <jose@ietfa.amsl.com>; Tue, 11 Jun 2013 20:24:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.617
X-Spam-Level:
X-Spam-Status: No, score=-1.617 tagged_above=-999 required=5 tests=[AWL=0.983, BAYES_00=-2.599, HTML_MESSAGE=0.001, NO_RELAYS=-0.001]
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 DLboCtvVTSdy for <jose@ietfa.amsl.com>; Tue, 11 Jun 2013 20:24:25 -0700 (PDT)
Received: from mail-bk0-x22f.google.com (mail-bk0-x22f.google.com [IPv6:2a00:1450:4008:c01::22f]) by ietfa.amsl.com (Postfix) with ESMTP id 33E7F21F9A27 for <jose@ietf.org>; Tue, 11 Jun 2013 20:24:24 -0700 (PDT)
Received: by mail-bk0-f47.google.com with SMTP id jg1so4061256bkc.6 for <jose@ietf.org>; Tue, 11 Jun 2013 20:24:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=1lvr0V29dGdTcYlACI7BY7WqON3GOa4IP1eHaNzkIRk=; b=ayhbDekuAtfr2Lzp4u5K2qYpcWiAa7qp2Tr95VX+JfwjQQ/0EZiwuBzBkmqsw9jnkZ woiVMqswyZBNlJdU9K1S/4LfleYyHdSpwamZhKQPffKukqjMm7pQWYXLTt0BsOZf+Yzd JJjYRv6aCVgVPTTTYoA63XA5q/PjtTVXfHsALo+0AgG8N8bIp81Cra6rUeU46Mgz+pgO S2x6jc+tM5Lt5Ej0i7KyKnxkzfCKjQ2n1qxmqNeQqOlNmD8lUHA4scxL9cxbPvhKO18I dgm+UlCh/h1OASt1+a9hWLYg4ZaZ9Bacc17TAdOTb0R05YM7PE7daO2zruYUPMVvhS7y pJqQ==
X-Received: by 10.205.37.16 with SMTP id tc16mr1168186bkb.100.1371007463904; Tue, 11 Jun 2013 20:24:23 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.204.168.12 with HTTP; Tue, 11 Jun 2013 20:24:03 -0700 (PDT)
In-Reply-To: <049.69ffc5ebf959c6eac7990651822fadf9@trac.tools.ietf.org>
References: <049.69ffc5ebf959c6eac7990651822fadf9@trac.tools.ietf.org>
From: Dick Hardt <dick.hardt@gmail.com>
Date: Tue, 11 Jun 2013 20:24:03 -0700
Message-ID: <CAD9ie-sntiA+nQk9XnwfUNdGDiEZ78zFQB9HAyJ-1TOQvaxNeA@mail.gmail.com>
To: jose issue tracker <trac+jose@trac.tools.ietf.org>
Content-Type: multipart/alternative; boundary="bcaec52c5d49df096604deec8c86"
Cc: Richard Barnes <rlb@ipv.sx>, draft-barnes-jose-use-cases@tools.ietf.org, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] #23: Make crypto independent of binary encoding (base64)
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, 12 Jun 2013 03:24:26 -0000

I don't understand what is being suggested. What is the conversion to UTF-8
for?


On Tue, Jun 11, 2013 at 10:58 AM, jose issue tracker <
trac+jose@trac.tools.ietf.org> wrote:

> #23: Make crypto independent of binary encoding (base64)
>
>  The cryptographic operations that JOSE performs should not depend on the
>  transfer encoding used for binary components.  The operations should work
>  directly on the encoded byte strings, not on the encoded form.
>
>  This is already true for content, IV, ciphertext, encrypted key, and
>  authentication tag.  The only thing that needs fixing is the protected
>  header value.  That's a little tricky, since the protected header value is
>  JSON, which doesn't have a standard encoding.  But it's not that onerous
>  just to convert it to UTF-8 -- in fact, senders are already required to
>  convert the protected header to UTF-8.
>
>  So the only change is to require recipients to convert the protected
>  header to UTF-8 before using it.   This can be accomplished with two minor
>  changes:
>
>  <http://tools.ietf.org/html/draft-ietf-jose-json-web-
>  signature-11#section-5.2>
>  OLD: "The resulting JWS Protected Header MUST be a completely valid JSON
>  object conforming to RFC 4627 [RFC4627]."
>  NEW: "The resulting JWS Protected Header MUST be a completely valid JSON
>  object conforming to RFC 4627 [RFC4627].  If the JWE Protected Header is
>  valid, convert it to the UTF-8 encoding.  Otherwise, reject the JWE."
>
>  <http://tools.ietf.org/html/draft-ietf-jose-json-web-
>  encryption-11#section-5.2>
>  OLD: "The resulting JWE Protected Header MUST be a completely valid JSON
>  object conforming to RFC 4627 [RFC4627]."
>  NEW: "The resulting JWE Protected Header MUST be a completely valid JSON
>  object conforming to RFC 4627 [RFC4627].  If the JWE Protected Header is
>  valid, convert it to the UTF-8 encoding.  Otherwise, reject the JWE."
>
> --
> -------------------------------------+-------------------------------------
>  Reporter:  rlb@ipv.sx               |      Owner:  draft-barnes-jose-use-
>      Type:  defect                   |  cases@tools.ietf.org
>  Priority:  major                    |     Status:  new
> Component:  draft-barnes-jose-use-   |  Milestone:
>   cases                              |    Version:
>  Severity:  -                        |   Keywords:
> -------------------------------------+-------------------------------------
>
> Ticket URL: <http://trac.tools.ietf.org/wg/jose/trac/ticket/23>
> jose <http://tools.ietf.org/jose/>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>