Re: [jose] PBES2-HS256+A128KW: where do salt and iteration count go?

Richard Barnes <rlb@ipv.sx> Fri, 19 July 2013 16:56 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 2D10B21E8100 for <jose@ietfa.amsl.com>; Fri, 19 Jul 2013 09:56:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.012
X-Spam-Level:
X-Spam-Status: No, score=-4.012 tagged_above=-999 required=5 tests=[AWL=0.964, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, GB_I_LETTER=-2, 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 nY52BQP14dqF for <jose@ietfa.amsl.com>; Fri, 19 Jul 2013 09:56:20 -0700 (PDT)
Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) by ietfa.amsl.com (Postfix) with ESMTP id D485721F9A78 for <jose@ietf.org>; Fri, 19 Jul 2013 09:56:16 -0700 (PDT)
Received: by mail-ob0-f173.google.com with SMTP id wc20so5633790obb.18 for <jose@ietf.org>; Fri, 19 Jul 2013 09:56:16 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=0Bsyzhh4pKT6LY7PXdMB7Px1rio59vPdi48C/HKxEr0=; b=NIgCehLdEQ/UIoRcvpWhKip2Hit+3m+KwYNjLbjbQvviZyinZcIVfnQ4aW5vbBqiFa xsSy+H5IXR193nEDpJK/YnQJip0TLPmzw+w0jASx3SeIXxQFykxWgzBr3S4QT6APYfvu n4XFGSFPr4ECv/iwHBgYKUfBRdjBSDSvfFCP5EtE9uJ+lryXYUSLXn49iWNznjHFigkR MbFFJ6UxDw0QBwVOYinu8LfDYDetxZMioQJ6eQ87LYJKas//K0I9yNH0imPY6CPfvvxk 0L3tSMJk1ZDozh9I48f44VnhXzfj1KTInOgRRmnDG7iLttAUXHfT+4klh0ehKHj86smB lc/g==
MIME-Version: 1.0
X-Received: by 10.182.27.74 with SMTP id r10mr12972593obg.63.1374252976378; Fri, 19 Jul 2013 09:56:16 -0700 (PDT)
Received: by 10.60.26.135 with HTTP; Fri, 19 Jul 2013 09:56:16 -0700 (PDT)
X-Originating-IP: [192.1.51.54]
In-Reply-To: <4E1F6AAD24975D4BA5B16804296739436B6EB008@TK5EX14MBXC284.redmond.corp.microsoft.com>
References: <255B9BB34FB7D647A506DC292726F6E1151C7C31BF@WSMSG3153V.srv.dir.telstra.com> <BF7E36B9C495A6468E8EC573603ED941152C0944@xmb-aln-x11.cisco.com> <CAL02cgQF1O67LMivM+tzuAb-6BawPDL1m0mPC7+s=FzN7zrjwg@mail.gmail.com> <4E1F6AAD24975D4BA5B16804296739436B6C8153@TK5EX14MBXC283.redmond.corp.microsoft.com> <CAL02cgS8iVs5Qz0T6CeA-6uCoVGYwfjvDf4KvZ7svxwkVvmcGg@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E1151C7C3E1D@WSMSG3153V.srv.dir.telstra.com> <BF7E36B9C495A6468E8EC573603ED941152C1638@xmb-aln-x11.cisco.com> <4E1F6AAD24975D4BA5B16804296739436B6EB008@TK5EX14MBXC284.redmond.corp.microsoft.com>
Date: Fri, 19 Jul 2013 12:56:16 -0400
Message-ID: <CAL02cgSPdASYCiUc8NmYan6djniaeYnSB=BwbPNgoZg1kFaymA@mail.gmail.com>
From: Richard Barnes <rlb@ipv.sx>
To: Mike Jones <Michael.Jones@microsoft.com>
Content-Type: multipart/alternative; boundary="089e01184b2e7d225604e1e03481"
X-Gm-Message-State: ALoCoQlNGvBNEXAZxm3jagcT+MMuwZlQdlvhNRERHmsHJ3iun6Ew85NYEyLQuemmn8btSOGa126Q
Cc: "jose@ietf.org" <jose@ietf.org>, "Matt Miller (mamille2)" <mamille2@cisco.com>
Subject: Re: [jose] PBES2-HS256+A128KW: where do salt and iteration count go?
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: Fri, 19 Jul 2013 16:56:25 -0000

If we can spare one more octet, how about "salt" and "iter"?  Otherwise, I
would be fine keeping "s" and "c", or maybe "p2s" and "p2c" to indicate
their use with PBKDF2.


On Thu, Jul 18, 2013 at 2:39 PM, Mike Jones <Michael.Jones@microsoft.com>wrote:

> Wearing my editor's hat, it seems like the direction from the working
> group is to make the salt and iteration count be explicit header parameter
> values and to drop the "kty":"PBKDF2".  Any disagreement, or shall I do
> that in the next drafts?
>
> FYI, I was thinking that I'd use "slt" and "itc" for the parameter names.
>
>                                 -- Mike
>
> -----Original Message-----
> From: Matt Miller (mamille2) [mailto:mamille2@cisco.com]
> Sent: Tuesday, July 16, 2013 6:52 PM
> To: Manger, James H
> Cc: Richard Barnes; Mike Jones; jose@ietf.org
> Subject: Re: [jose] PBES2-HS256+A128KW: where do salt and iteration count
> go?
>
> I think the basic concept is fine, but I would rather not add any more
> human-facing fields.  It has too much potential to open the Pandora's box
> that is localization and internationalization.  Hint is something one human
> enters directly (I assume), so said human could communicate it to other
> humans.
>
> I do understand your concerns with "password" (or "pwd" to continue our
> exuberant use of three-letter fields), but that seems like a more general
> issue to discuss.
>
>
> - m&m
>
> Matt Miller < mamille2@cisco.com >
> Cisco Systems, Inc.
>
> On Jul 16, 2013, at 6:08 PM, "Manger, James H" <
> James.H.Manger@team.telstra.com>
>  wrote:
>
> > "kty":"PBKDF2" feels unnecessary, though "kty":"password" would be
> useful. A key set could have an entry like the following:
> >
> > {
> >  "kty":"password",
> > "alg":" PBES2-HS256+A128KW",
> > "c-min":2000,
> > "prompt":"Payment approval PIN",
> > "hint":"last 4 digits of \u03C0"
> > }
> >
> > The entry could also have a "password" field holding the actual password.
> > Mind you, I think mixing public (eg kty, alg) and sensitive (eg hint,
> password) fields side-by-side in a JSON object is a design guaranteed to
> lead to security breaches from poor handling.
> >
> > --
> > James Manger
> >
> > From: Richard Barnes [mailto:rlb@ipv.sx]
> > Sent: Wednesday, 17 July 2013 9:37 AM
> > To: Mike Jones
> > Cc: Matt Miller (mamille2); Manger, James H; jose@ietf.org
> > Subject: Re: [jose] PBES2-HS256+A128KW: where do salt and iteration
> count go?
> >
> > I was thinking that the "jwk" would be unnecessary.  We could have
> "hint" at the top level, or just use "kid" for that purpose.
> >
> > --Richard
> >
> > On Tue, Jul 16, 2013 at 7:30 PM, Mike Jones <Michael.Jones@microsoft.com
> <mailto:Michael.Jones@microsoft.com>> wrote:
> > If we move "s" and "c" to being header parameters from the JWK, would we
> still need the JWK with "kty":"PBKDF2"?  All that would be left would be
> the "hint" JWK parameter.
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>