[Suit] draft-housley-suit-cose-hash-sig

Michael Richardson <mcr+ietf@sandelman.ca> Wed, 13 June 2018 18:12 UTC

Return-Path: <mcr+ietf@sandelman.ca>
X-Original-To: suit@ietfa.amsl.com
Delivered-To: suit@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 245C8130F69 for <suit@ietfa.amsl.com>; Wed, 13 Jun 2018 11:12:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level:
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 JFUjKyMsvVfz for <suit@ietfa.amsl.com>; Wed, 13 Jun 2018 11:12:07 -0700 (PDT)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [209.87.249.19]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7F6D8130E06 for <suit@ietf.org>; Wed, 13 Jun 2018 11:12:07 -0700 (PDT)
Received: from sandelman.ca (obiwan.sandelman.ca [209.87.249.21]) by tuna.sandelman.ca (Postfix) with ESMTP id 771D020090 for <suit@ietf.org>; Wed, 13 Jun 2018 14:25:57 -0400 (EDT)
Received: by sandelman.ca (Postfix, from userid 179) id 0F5BD53; Wed, 13 Jun 2018 14:09:11 -0400 (EDT)
Received: from sandelman.ca (localhost [127.0.0.1]) by sandelman.ca (Postfix) with ESMTP id 0C0EB4F for <suit@ietf.org>; Wed, 13 Jun 2018 14:09:11 -0400 (EDT)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: suit <suit@ietf.org>
X-Attribution: mcr
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 24.5.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha1"; protocol="application/pgp-signature"
Date: Wed, 13 Jun 2018 14:09:11 -0400
Message-ID: <31676.1528913351@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/suit/IhqPT9wy9ZpVVvRksQNBRSUiVYY>
Subject: [Suit] draft-housley-suit-cose-hash-sig
X-BeenThere: suit@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: Software Updates for Internet of Things <suit.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/suit>, <mailto:suit-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/suit/>
List-Post: <mailto:suit@ietf.org>
List-Help: <mailto:suit-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/suit>, <mailto:suit-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Jun 2018 18:12:10 -0000

I have read the -01 draft today.
I have not read [HASHSIG] yet.
I thought I'd try reading this first, to see what questions I had.

I have implemented COSE Sign1 with ECDSA in Ruby, so I have a grasp of
what we are trying to plug hash-sig *into*.


Suggestions:
1) would the structure show in section 3 be easier if it was described by
   CDDL?  I'm rather unclear about this.

2) I din't understand section 4, where it says:
      o  If the 'key_ops' field is present, it MUST include 'sign' when
                 creating a hash-based signature.

      o  If the 'key_ops' field is present, it MUST include 'verify'
                 when verifying a hash-based signature.

Clearly this is not something that travels over the network.  Is this
somehow indicating how to understand if one is dealing a public (verify) key
or a private (sign) key?

3) the variations: LMS_SHA256_M32_H20, and LMOTS_SHA256_N32_W2, etc. are
   listed, but I don't know if they need to be carried in the signature
   structure somehow.

4) I thought that perhaps we'd need CBOR or COSE specific way to transport
   the signatures.  I guess I shall read HASHSIG to find out what the
   signatures look like.

I understand draft-mcgrew-hash-sigs-11 is being advanced by CFRG.
I believe that SUIT should adopt this document, and should do so in the
current state.

I would like to have some examples in CBOR/COSE worked out with private keys
available in the appendices.

--
]               Never tell me the odds!                 | ipv6 mesh networks [
]   Michael Richardson, Sandelman Software Works        | network architect  [
]     mcr@sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [

--
Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
 -= IPv6 IoT consulting =-