Re: [TLS] HSM-friendly Key Computation

Peter Gutmann <pgut001@cs.auckland.ac.nz> Sun, 19 April 2015 04:23 UTC

Return-Path: <pgut001@cs.auckland.ac.nz>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5E74B1AD09D for <tls@ietfa.amsl.com>; Sat, 18 Apr 2015 21:23:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.81
X-Spam-Level:
X-Spam-Status: No, score=-2.81 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 fivGv0RsOlNA for <tls@ietfa.amsl.com>; Sat, 18 Apr 2015 21:23:06 -0700 (PDT)
Received: from mx2.auckland.ac.nz (mx2.auckland.ac.nz [130.216.125.245]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 193681AD09C for <tls@ietf.org>; Sat, 18 Apr 2015 21:23:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=uoa; t=1429417386; x=1460953386; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=WtCkuLF+Qmg5C9iEUQdkIpdGAe88yCaBNdchtaY16nQ=; b=DWZTF8vPweqLGR9viZ4pDRoSgdVuwnKxYNeptYwezuX7835JNFB3Rnl1 nQ0XHLtYlwz+mExxY+SJJQAqaycDIg0saUnn57cZpOQB9EfHvdG3WJ1/c xuVUtTMpAdsQNAHxFS1njmdDE0cEJiXl/zgJ7pRBwyZOVyrjKNCbs31WY 4=;
X-IronPort-AV: E=Sophos;i="5.11,602,1422874800"; d="scan'208";a="321134535"
X-Ironport-HAT: MAIL-SERVERS - $RELAYED
X-Ironport-Source: 130.216.4.106 - Outgoing - Outgoing
Received: from uxchange10-fe2.uoa.auckland.ac.nz ([130.216.4.106]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES128-SHA; 19 Apr 2015 16:23:01 +1200
Received: from UXCN10-TDC05.UoA.auckland.ac.nz ([169.254.9.151]) by uxchange10-fe2.UoA.auckland.ac.nz ([130.216.4.106]) with mapi id 14.03.0174.001; Sun, 19 Apr 2015 16:23:01 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: Russ Housley <housley@vigilsec.com>, IETF TLS <tls@ietf.org>
Thread-Topic: [TLS] HSM-friendly Key Computation
Thread-Index: AQHQeUD/sI9Vub+bgUe0zBomNwpDNJ1Tvnox
Date: Sun, 19 Apr 2015 04:22:59 +0000
Message-ID: <9A043F3CF02CD34C8E74AC1594475C73AB000B0C@uxcn10-tdc05.UoA.auckland.ac.nz>
References: <0694C3DB-FB87-42A2-BCC4-CC0F761E9A03@vigilsec.com>
In-Reply-To: <0694C3DB-FB87-42A2-BCC4-CC0F761E9A03@vigilsec.com>
Accept-Language: en-NZ, en-GB, en-US
Content-Language: en-NZ
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [130.216.158.4]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/Mnj9kpmL3dnQzQld4wp4cjdG9hM>
Subject: Re: [TLS] HSM-friendly Key Computation
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 19 Apr 2015 04:23:08 -0000

Russ Housley <housley@vigilsec.com> writes:

>If one wants to implement the cryptographic functions in a Hardware Security
>Module (HSM), this structure is far from ideal.

Weelll... it's far from ideal if you want to use traditional/historic PKCS #11
mechanisms, but since a new PRF will need updated HSM support anyway it
shouldn't be any problem to accommodate it, and now that PKCS #11 is being
managed by OASIS rather than RSADSI/EMC and things have got moving again in
advancing the spec, it shouldn't be that big a deal.  If you look at how
CKM_TLS_PRF works, it's a significant change from how C_DeriveKey() normally
functions that was made in order to accommodate how TLS wants to do things.
For the TLS 2.0 (a.k.a. 1.3) PRF the PKCS #11 folks can make the same
accommodation.  It's an issue for the HSM vendors to adapt, not the TLS spec
to adapt.

Peter.