Re: [jose] JOSE in Python

Richard Barnes <rlb@ipv.sx> Fri, 16 August 2013 02:12 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 E484311E8233 for <jose@ietfa.amsl.com>; Thu, 15 Aug 2013 19:12:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.976
X-Spam-Level:
X-Spam-Status: No, score=-2.976 tagged_above=-999 required=5 tests=[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 1mqBF1BqYk1C for <jose@ietfa.amsl.com>; Thu, 15 Aug 2013 19:12:29 -0700 (PDT)
Received: from mail-oa0-f45.google.com (mail-oa0-f45.google.com [209.85.219.45]) by ietfa.amsl.com (Postfix) with ESMTP id CEEFB11E81AA for <jose@ietf.org>; Thu, 15 Aug 2013 19:12:29 -0700 (PDT)
Received: by mail-oa0-f45.google.com with SMTP id m1so1686824oag.32 for <jose@ietf.org>; Thu, 15 Aug 2013 19:12:29 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=K5bb2e1O3XQaG+EjERy1sZ9O6qI4rTO+i7zKgpmd5QY=; b=nLHAMvCY1ep7QAwesLTyUjLAml9qntb1AWwUbPS+hN+75e1W6+TV5M+6ClAh+6w1dw 2Bvx7eaRxmcEVULRR8RV4pZbdtOTpJBEQ1r+PtbR7bGg13H3jdqClc/US9O2BV3m/xde GVyRjLY1of7hqZUT9zXM1YPfAdFkT5sk8/7nhrdkNo/8yUw7PMz8xNFSXbvgYbQvRYfp KZxYGfXCLHdgAQGWR87DDMjFhognGbCgPEqD+1lN07oFKIZ2OWqMNvO4wqY0xp/XBTHI WUOhS+mHgPKSjppaJEwloPBOEmk5SAG9O5IYr7pL2k+OMq6OfuWG5H7OAfGiDdsW5wxg SIvw==
X-Gm-Message-State: ALoCoQlwFq4WyiUJfzPfGtc5hIdyhUWEXxRF1qe5ptjxQ806mOEQfl0wH4OsqXDi5rD9UY9xWpOy
MIME-Version: 1.0
X-Received: by 10.182.186.102 with SMTP id fj6mr5737409obc.19.1376619149184; Thu, 15 Aug 2013 19:12:29 -0700 (PDT)
Received: by 10.60.31.74 with HTTP; Thu, 15 Aug 2013 19:12:29 -0700 (PDT)
X-Originating-IP: [108.48.145.202]
In-Reply-To: <520D7022.5040005@cs.tcd.ie>
References: <CAL02cgTPyqUkr5Awj4iW=QNkC5hBtR=RnaTcm5hUtdEzjh1nOQ@mail.gmail.com> <520D7022.5040005@cs.tcd.ie>
Date: Thu, 15 Aug 2013 22:12:29 -0400
Message-ID: <CAL02cgQj2M9C0KZPwrW9sHCj3rEqE=VPGsAoOpX_ShDWi2UEFw@mail.gmail.com>
From: Richard Barnes <rlb@ipv.sx>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Content-Type: multipart/alternative; boundary="089e0149c47c614b5404e4071f00"
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] JOSE in Python
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, 16 Aug 2013 02:12:39 -0000

On Thursday, August 15, 2013, Stephen Farrell wrote:

>
>
> On 08/16/2013 12:47 AM, Richard Barnes wrote:
> > interoperates with itself
> > in all 288 different configurations
>
> 288? Really?
>
> Sounds like a fail to me to be honest.
>
> S.
>

To break that out:
JWS: 36 = 12 JWS "alg" values * 3 header protection levels (some/all/none)
JWE: 288 = 16 "alg" values * 6 "enc" values * 3 header protection levels
Plus 2 for multi-signer and multi-recipient

So it seems I mis-counted, and there are actually 326 tests.  (I tried to
be thorough!)

If you tried to do something similar with CMS or IKE, I think the
combinatorics would be similar.  The TLS cipher suite registry is of
comparable size, and less organized (flat list instead of separate
parameters).