Re: [lamps] draft-gazdag-x509-hash-sigs-00
Tim Hollebeek <tim.hollebeek@digicert.com> Wed, 01 February 2023 15:48 UTC
Return-Path: <tim.hollebeek@digicert.com>
X-Original-To: spasm@ietfa.amsl.com
Delivered-To: spasm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 91970C15153C; Wed, 1 Feb 2023 07:48:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_NONE=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=digicert.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N7o266y214Rz; Wed, 1 Feb 2023 07:48:00 -0800 (PST)
Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2094.outbound.protection.outlook.com [40.107.93.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7E45FC14CE4C; Wed, 1 Feb 2023 07:48:00 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TRiWsgF6OyCDaOuazNhmzGiTddhy8+h2hemf9N1cqrx0Ez8xbahJ9hMov+Kq1OXTlqQeQcBiPFvg1zDBPPBRnDo73P2PKpwXtZpjufF08mp41vt9SeVVXIBCocDxlKcgVUDqsTm8Bjsd8MlLSvXO/owax7yUy/Vr7LAjIgsepQFzRqdZw+3IX0DbmNKqNhUJMvhLClqYJ+ydNDnRy+AjjLA/7bhYcD0oSdwJdaO/Ia4ZgfAzdFTXE3ji40EURTZlxDoyZ5MRakn6G//urTvLDDcBM4OdQQBZneXwp/z57L4By8C527uRLfE0JvG0XruKOUHpzWpx4n4/Ix7sq/TTSg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dbsAOGtcZiVPHtC/47C2o2UeslmYTqtWtRmI5RnPRyw=; b=Vi5bJRcMVyhD0AOCW9j+XYIOLA3SvYMoeSR/cmn9ms/x+uy+STUZpexiL20mpRRYmaICCNJOtmNYJxhkFEEYpE3uPRu+MR+d2d3kFYO/kplDZjQWLcQu6IPcYxS15hpAFPO1fGSzR0iDQkhLflg1A+IQOxatbu9xVjYtAwHa/ck3AW62HdpqtRb7SPrtH8YVQ+EGhDMWVY7jAAXBhbXKOVURzx4ERiwa2i/Rhb+/gHKTYv5pwjZmpIgp0f2meur7xp2+jNDHJTU6rvz3dJrnDMRnfK1PEDI7WjeMdFKs8AXlCahQj+HMtKL7KgiNeWoJMxkdZ/cwEe6psOArME5jgg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=digicert.com; dmarc=pass action=none header.from=digicert.com; dkim=pass header.d=digicert.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digicert.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dbsAOGtcZiVPHtC/47C2o2UeslmYTqtWtRmI5RnPRyw=; b=Bjw8PMX8FidlI9NzQDqmdLyP6F2cu70EzGdsqzLAxc5HxTXbuE7593mTmvXQEUhcoV3IzPp2BdxK96T7/pv7DGOf7XfDFxbL0PlTPZrv0yJISlw7vIbmqe5GayHnLx9icjsE+xBqaZ6NiQ9YjWv2cIxtKJ2RqmRENDsSZ9L6cJAdrjE5bWZ8uB0pQKHpAzHM3FSWTsu6RUATK3WVPmCxu01qPegvzkorgWKL4gVY0HOWVv8iuP9TaJ40842AXFQcSRtN2LlpxJxPGXP+vGCs77gh282y77KULMXtZXtza2skgnT9goka3cacgKmsQSOf16LLuq3Lc7Kwlv64Fy+etg==
Received: from SJ0PR14MB5489.namprd14.prod.outlook.com (2603:10b6:a03:423::22) by DM6PR14MB3403.namprd14.prod.outlook.com (2603:10b6:5:1e9::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.24; Wed, 1 Feb 2023 15:47:57 +0000
Received: from SJ0PR14MB5489.namprd14.prod.outlook.com ([fe80::8b0b:76db:50a8:c41a]) by SJ0PR14MB5489.namprd14.prod.outlook.com ([fe80::8b0b:76db:50a8:c41a%8]) with mapi id 15.20.6064.025; Wed, 1 Feb 2023 15:47:57 +0000
From: Tim Hollebeek <tim.hollebeek@digicert.com>
To: Seo Suchan <tjtncks@gmail.com>, "spasm@ietf.org" <spasm@ietf.org>, "Vaira, Antonio" <antonio.vaira@siemens.com>, "Kousidis, Stavros" <stavros.kousidis@bsi.bund.de>
CC: LAMPS <spasm@ietf.org>, "draft-gazdag-x509-hash-sigs.authors@ietf.org" <draft-gazdag-x509-hash-sigs.authors@ietf.org>, "pqc@ietf.org" <pqc@ietf.org>, "Kampanakis, Panos" <kpanos@amazon.com>
Thread-Topic: [lamps] draft-gazdag-x509-hash-sigs-00
Thread-Index: AQHZFvGqyjVG/7uVZ0iCJYsTpShgbK58fj4AgAioM4CAJrZkAIAM1ZkAgAFEboCAAE1bgIAACBOAgAAu74A=
Date: Wed, 01 Feb 2023 15:47:57 +0000
Message-ID: <SJ0PR14MB5489FFDB8BDFD4DEE74D86B883D19@SJ0PR14MB5489.namprd14.prod.outlook.com>
References: <08C331ED-453C-4812-955A-F2161B960329@vigilsec.com> <3439f87bb3bb4a199f706b791cba6b6a@bsi.bund.de> <6828097d5b5b4beabb0c4243b150077f@amazon.com> <99a43b5f4620438a9cb7ca539f70dbcb@bsi.bund.de> <DU0PR10MB5244B1BC5E40204EDBD0AFD1E0D09@DU0PR10MB5244.EURPRD10.PROD.OUTLOOK.COM> <eca0e0bf0e0b416e894da9b6a10ca0e8@bsi.bund.de> <DU0PR10MB52448D302AE6793801DE8122E0D19@DU0PR10MB5244.EURPRD10.PROD.OUTLOOK.COM> <D9946064-3884-4044-A5C5-0DE72D8CCF13@gmail.com>
In-Reply-To: <D9946064-3884-4044-A5C5-0DE72D8CCF13@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=digicert.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SJ0PR14MB5489:EE_|DM6PR14MB3403:EE_
x-ms-office365-filtering-correlation-id: 825be489-545d-4e56-1711-08db046bb089
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: FV9oj7+Af1SvEro9g6fEIZ7f05zMW5X4FQX1+1WAl+Omr+Xema3avdMygvEiJEtAvxqSTXeIEMoZePXkAQadJX22lQPT1SRtuf6E6P94t9GrIsTgzG2vdLeJ9T62+emCJg1THmMnfSY88e9ahYyq/g9t/KR9sFcnAAp8tjDaO1LxYEA4yEBidhnDjh9/+A+2kBgX37qUk7UHQr3pl2zRAmRT4I2uq0yzeUrmK3Ac88SGVea2ALQaMXRMI/7h+ddV4JbKDTJ65xpSrP4Nn3Xi8u9eg5pdkqLIBEyM0ZnJOjomwzGIIcIVYFGN7Y3ZCOO1CBzpN6ws2wJoTtZ6I97LmPcP8tnGtnuNzC1tbf75YMg+uyqOd+GVtwlOPr1AnoIt/+jgq2hOFDeMxIPTxJEyXllWy8ZuSxNo2SMLrxA8IYPTdxkbCwDxl9JZVipzYidBJmj/X7mR2bvkmvtqQf0Bu62I9BBE0Y7uuX5vHL5rCfCX6MBYDJ2Uts3zUUsLzL/fk7uhshU0JanL1pmIoum2RzH8syaZyw9UwiG+LHpzyQhXWt6iTZtBHyzgQK29EClLSLlmLKiQDANKpaAWAGJNwCgC5HeR8nm5jpr5cEBGsAiVTX1mKMos9Y7OU/LFzqSsx/YBzJOETIN+vj6pNtXTQdHqYxz7asKxwyzm+fDXsRWYpFS/vyv5bTFjcjgWU6b/oqzNCxRobr6GIZXig7+OXLbcAx25+3C1Ug8xysk+RUY=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR14MB5489.namprd14.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(376002)(366004)(396003)(39850400004)(136003)(346002)(451199018)(166002)(33656002)(66574015)(7696005)(316002)(38070700005)(55016003)(30864003)(44832011)(54906003)(110136005)(71200400001)(5660300002)(2906002)(966005)(478600001)(8936002)(52536014)(45080400002)(86362001)(8676002)(38100700002)(4326008)(76116006)(66946007)(66556008)(66446008)(64756008)(66476007)(6506007)(53546011)(186003)(26005)(9686003)(122000001)(41300700001)(83380400001)(66899018)(559001)(579004); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: EAn4INREl9lgGjuW4eAUCGCXqPGG6RSBQs9XMO5sxAnGBAh0AYzG1i94oQ4WH8KS0m5vVrMV5Y0vKl+CxiwcmIfHbqic7cPmEsrVajtDInjG7p3GtljbpeOsYVYrpxQxb8z6ZaAo9hQ+9bbt+4xsLgGp918eJXKp92kbsrDDXcaioTtEdi3msLU1UuI7Xyg5yYRJmHVGmCXTseFtv6woGOs8JmjMtFtDcmjWTJqM9tzSKzNClU+KhO5m7RZAOwq8DUf9XFIPgUcbLAxjt3dCcK/cldpBihBNoSdpUroqEdeEGmbzt+bYfoGRpDj1uqz+vZyHgmuVobNtZ7Gsm0iJK1nLyiRqq6VS0xBEe46AdIRKireF/1q/hLnfUowhUZ7bsotZfsnL2+41S/IFRcTfcgEBuTDrRB6egJncah5fvnMVrI1cxxDWMFa+mZdimFM/vlt38VNgP+kkAi3yUnD1VdMwCLBqMrH+ypZ2X02+mCHghpPfNdqJ8V+YmSYYhkTApWPS4gQjB9j9d6ExLCsX/jdr2UbLk+bM+BILu1FTOT/5F0yY5Pi0Ek2urIoc8/Fe2MXvLknmuo1HMo4HJ0fcAQpe3OpAVBs6eINu9toM3iokwX8IdkeWjo/EPk31NA2ppJEQ1anT6Jnl2cQ8gwyNz/kW7Z7KJ5YQCGX2GzxzC5etpQ4d1lHoQFNan4R1SKjKRntw2/BFOmzpYRP/Ge+iXc6sMfCJh1jz8DUNCJKu55cL+itrAAAOiK3KFqWrHsC18aG1NSeOgzd6x70JqHtWtYshQ/LRAVvl2qIo7XTmKDhpAhouaq777qXv6ClhrcKOy3T3xfNtT+yen5eiURItuixd+6+8FtdZ6PUNW1NEqZvx5qzQCoHSaKzISYfB0dYDDAoHnS5u+aFT0KmE1Dwfu9jwlwT8GM1/987kZJzbFHInPhP9xPMu1OBhoPtjl6Mwnzz5VhdZvOeuaeaDtxrrkN6EbqCojcQDbshfesIxk4BD1A0NRsauw/a7cg+kyMiBJn9Eemz7jTJe7ZzzufwkYidx3FdK1dxfw71umGhFu+NFdDhEYD1H5i+ptf2xMQh1cgPWgAO/vJhaM/rfAc7/82vBQTHKwnnJY2Xbb0UHSFHD4iFzcMxNRXbsfpw/v5D5WrQjATduBGIrtvMQrd2MhDFFyCuJJ1uwatl8Xg+zBnDHZL3gnFGdGTo2lnUuN0gFgGva4SDSkR5WW3wt6v4hwFMT3MmMFRLzP2fhPnK1kV7ms71aOV8iGIAo+4hQOu+QXl2rx9o87e/jggHhNeLSTbDIXHqxYVu7lo6iz0mj/pCsD9mVLaov89mwo8yKM3bITrVJfd+n8SzPw0Cvr9eq7Wfq6q5kwRZ5l+tIU1dHKKBkWEkJmo1ISDBi6LJGwZ/8IKBlGxa2edxMlGCh1C8nJlQGzCc/YP0/Bcg9265njNv/4zlom88xfvY5MqqaWmNbWJ1VIo0MHFUJMXv2FG3tAlI4N/HTn6kOEuZVP9qOBCYs/8kyMdI4qmj9nM6i4WkQCnk9GHtodnvJpv+ZqTExrfvBobUiFIIOMRKWjHusj1iWe8PtDE0jsUixa1y1TUlRRUnn/0iqWuPt9ZFlubRuiQ==
Content-Type: multipart/alternative; boundary="_000_SJ0PR14MB5489FFDB8BDFD4DEE74D86B883D19SJ0PR14MB5489namp_"
MIME-Version: 1.0
X-OriginatorOrg: digicert.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR14MB5489.namprd14.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 825be489-545d-4e56-1711-08db046bb089
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2023 15:47:57.2218 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cf813fa1-bde5-4e75-9479-f6aaa8b1f284
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: JhKJzfJt0DQJMxOC8xRbV3dL3SwE/ugKSJvu623BoI8e3RiAGm/uvfvsvdnhC/vMMaSreSy8dUcRDlahLZWvm5JMDXfXerQ1ordVnzFlrFE=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR14MB3403
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/-vNSZIAIfpU7wz28EO3Wjh4RKb8>
Subject: Re: [lamps] draft-gazdag-x509-hash-sigs-00
X-BeenThere: spasm@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "This is a venue for discussion of doing Some Pkix And SMime \(spasm\) work." <spasm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spasm>, <mailto:spasm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spasm/>
List-Post: <mailto:spasm@ietf.org>
List-Help: <mailto:spasm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spasm>, <mailto:spasm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Feb 2023 15:48:04 -0000
It’s more similar to the sharding that’s currently done for CT logs, which share the same Merkle structure and many of the same design considerations. -Tim From: Spasm <spasm-bounces@ietf.org> On Behalf Of Seo Suchan Sent: Wednesday, February 1, 2023 8:00 AM To: spasm@ietf.org; Vaira, Antonio <antonio.vaira@siemens.com>; Kousidis, Stavros <stavros.kousidis@bsi.bund.de> Cc: LAMPS <spasm@ietf.org>; draft-gazdag-x509-hash-sigs.authors@ietf.org; pqc@ietf.org; Kampanakis, Panos <kpanos@amazon.com> Subject: Re: [lamps] draft-gazdag-x509-hash-sigs-00 isn't this in effect make them 5 year roots that are cross signed by older roots? like eg: ISRG X1 signed by DST X3 On 2023년 2월 1일 오후 9시 31분 5초 GMT+09:00, "Vaira, Antonio" <antonio.vaira@siemens.com<mailto:antonio.vaira@siemens.com>> 작성함: Hi Stavros, My interpretation is that the SEED should be indeed considered as "private keying material" therefore I am also concerned with the point b) you raised. I would also add, even if we theoretically do not concern ourselves with the operational/cost overheads of having a lot of HSMs initialized and put in storage, can we realistically be sure that by the time we will need these HSMs they will all boot? The timeline I have in mind is 20+ years (realistic RootCA lifetime) and I am not sure if an HSM, even if stored in “perfect conditions”, will still boot after 20 years. For the reason above, I was thinking about an alternative approach that can be summarized with the following steps: 1. the tree #1 is generated, with a height that is proportional to the required number of signatures and its leaves can be used to perform digital signatures, 2. after X years, for example 5 years, the last leaf of tree #1 is used to sign a new subtree, tree #2, that corresponds to OTS private keys that are initialized in a new HSM, 3. repeat step 2 after every X years, initializing each time new OTS private keys in a new HSM. After 3 iterations the HBS state would look like the following: root - / \ / \ / \ / \ / \ / \ / \ ----------------- | | | | | | sig1 sig2 ... - / \ / \ / \ / \ / \ / \ / \ ----------------- | | | | | | sig1 sig2 ... - / \ / \ / \ / \ / \ / \ / \ ----------------- | | | | | | | | sig1 sig2 ... ... The first 2 trees can be considered as no longer usable, even if there are still unused leaves, because their corresponding OTS private keys are in HSMs which may no longer be available. The OTS keys associated to the tree corresponds are generated and stored on a “fresh” HSM. Without considering redundancy requirements (also not considered in the steps above for sake of simplicity), with this approach it would be possible to use one HSM at the time and replace it after X years with a new one (avoiding to initialize HSMs and securely store them) and it would not be needed to redistribute the root to all the relying parties. But the signature would increase of a fixed number of bytes (i.e., the signature performed over the root of the new subtree using the last OTS private key of the parent tree) every X years. What do you think? Thanks Antonio -----Original Message----- From: Kousidis, Stavros <stavros.kousidis@bsi.bund.de<mailto:stavros.kousidis@bsi.bund.de>> Sent: Wednesday, 1 February 2023 08:54 To: Vaira, Antonio (T CST SEA-DE) <antonio.vaira@siemens.com<mailto:antonio.vaira@siemens.com>> Cc: LAMPS <spasm@ietf.org<mailto:spasm@ietf.org>>; draft-gazdag-x509-hash-sigs.authors@ietf.org<mailto:draft-gazdag-x509-hash-sigs.authors@ietf.org>; pqc@ietf.org<mailto:pqc@ietf.org>; Kampanakis, Panos <kpanos@amazon.com<mailto:kpanos@amazon.com>> Subject: AW: [lamps] draft-gazdag-x509-hash-sigs-00 Dear Antonio, I feel that we will have to take up a discussion on practical issues that CAs face when using stateful HBS in our draft. This already came up in comments that Panos sent, see here: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailarchive.ietf.org%2Farch%2Fmsg%2Fspasm%2FhUe6bBqGoJhyu5vObbYJMbtCEDw%2F&data=05%7C01%7Cantonio.vaira%40siemens.com%7Cd988d9a6eb5d4ac79f4808db042989a7%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638108348674728031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BjO3%2Bi0NfdqHmSaEJ9BCbpE3Hv8xwsaoVfnkuWfwfVg%3D&reserved=0 The §7 of NIST SP 800-208 elaborates on distributed multi-trees instantiated via cryptographic modules. It is stated there that "due to the risks associated with copying OTS keys, this recommendation prohibits exporting private keying material (Section 8)." I do ask myself if the "private keying material" described here includes the secret value "SEED" that can be used to pseudorandomly generate an LMS or XMSS private key (see Appendix A in RFC8554 or analoguously §3.1.7 in RFC8391). On the one hand I would say yes, but: a) As I read NIST SP 800-208 the requirements described in §7 and §8 are primarily concerned with the OTS private keys (that is when the counter comes into play along with the SEED). b) I cannot imagine how one can practically address the "do not export private keying material" requirement if the SEED is included here. This would imply your interpretation that at key generation time one would have to put a lot of sleeping HSMs on the shelf. As a concrete example, imagine aiming for 2^20 signatures and instantiating HSS with two levels, height 10 on the top level and height 20 on the bottom level. The top level covering the distribution/redundancy aspect. That would mean that your shelf is packed with 2^10 HSMs holding the bottom level LMS instances. You could aim for height 5 on the top level tree, but still 2^5 HSMs are not practical in my personal opinion. @All: May I ask, how the above mentioned requirement about exporting private keying material has to be interpreted? However, I (personally) still think that stateful HBS should be available as an option in our ecosystems. Best Stavros -----Ursprüngliche Nachricht----- Von: Vaira, Antonio <antonio.vaira@siemens.com<mailto:antonio.vaira@siemens.com>> Gesendet: Dienstag, 31. Januar 2023 13:33 An: Kousidis, Stavros <stavros.kousidis@bsi.bund.de<mailto:stavros.kousidis@bsi.bund.de>>; Kampanakis, Panos <kpanos@amazon.com<mailto:kpanos@amazon.com>> Cc: LAMPS <spasm@ietf.org<mailto:spasm@ietf.org>>; draft-gazdag-x509-hash-sigs.authors@ietf.org<mailto:draft-gazdag-x509-hash-sigs.authors@ietf.org> Betreff: RE: [lamps] draft-gazdag-x509-hash-sigs-00 Dear Stavros, Dear Panos, I hope I am not intruding this conversation, I would like to add a couple of personal considerations: - I believe that we will also need to have "stateful HBS ICAs", to at least sign "stateful HBS code-signing certificates". This would allow a relying party to validate the code-signing certificates, and its associated certificate chain, by verifying only one type of digital signatures, which in this case would be a stateful HBS scheme. This type of ICAs may be handled as RootCA, so probably there is not much to add to the security considerations. - my understanding of stateful HBS schemes is that the state of the private key can be uniquely identified by the authentication path that is part of the signature. Could we think to derive a unique value, out of this authentication path and embed it into a certificate field? Maybe such certificate can be further published, for example on CT, to allow public scrutiny of the CA operations? - on a more generic note, the recent publication of CNSA 2.0, despite applying only to NSS, may trigger other regulatory bodies, which may be transversal to the scope of NSS, to adopt similar guidelines. Therefore I think we might have to deal with stateful HBS sooner than later. - @Stavros: it would be very interesting to know more about how you plan to handle the requirements from §7 of NIST SP 800-208. > in my understanding, to fulfil the requirements set forth in this section one would that initializing several hypertrees on different HSMs. One or more HSMs may be used immediately and the remaining should be securely stored for later use (as disaster recovery mechanism for example). I think this approach might prove to be quite cumbersome, at least over a long period of time (which is intended use of stateful HBS). > do you see additional approaches that would allow to comply with the requirements from §7 of NIST SP 800-208? Many thanks Antonio Vaira -----Original Message----- From: Spasm <spasm-bounces@ietf.org<mailto:spasm-bounces@ietf.org>> On Behalf Of Kousidis, Stavros Sent: Monday, 23 January 2023 09:33 To: Kampanakis, Panos <kpanos=40amazon.com@dmarc.ietf.org<mailto:kpanos=40amazon.com@dmarc.ietf.org>> Cc: LAMPS <spasm@ietf.org<mailto:spasm@ietf.org>>; draft-gazdag-x509-hash-sigs.authors@ietf.org<mailto:draft-gazdag-x509-hash-sigs.authors@ietf.org> Subject: Re: [lamps] draft-gazdag-x509-hash-sigs-00 Dear Pano, thank you for your comments and suggestions, and sorry for the late reply. The typical use case we have in mind are root and (potentially also subordinate) CAs which are using an HSM for cert signing that ensures the secure handling of the state. When discussing this in the security considerations we would also stress on NISTs proposal to use "Distributed Multi-Tree Hash-Based Signatures" (see NIST SP 800-208 §7) as a design to further ensure that states are handled appropriately. We have tracked the other use cases you mentioned as an issue in in our repository. I think Stefan Gazdag has some experience here and we will discuss how to incorporate your suggestions in the security considerations. Best Stavros -----Ursprüngliche Nachricht----- Von: Kampanakis, Panos <kpanos=40amazon.com@dmarc.ietf.org<mailto:kpanos=40amazon.com@dmarc.ietf.org>> Gesendet: Donnerstag, 29. Dezember 2022 18:23 An: Kousidis, Stavros <stavros.kousidis@bsi.bund.de<mailto:stavros.kousidis@bsi.bund.de>> Cc: LAMPS <spasm@ietf.org<mailto:spasm@ietf.org>>; draft-gazdag-x509-hash-sigs.authors@ietf.org<mailto:draft-gazdag-x509-hash-sigs.authors@ietf.org> Betreff: RE: [lamps] draft-gazdag-x509-hash-sigs-00 One more comment regarding draft-gazdag-x509-hash-sigs. Stateful HBS had come up previously for X.509 and some participants voiced serious concerns https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailarchive.ietf.org%2Farch%2Fmsg%2Fspasm%2FDKPDfaQZxF5_De9BYuoWsRKp4gM%2F&data=05%7C01%7Cantonio.vaira%40siemens.com%7Cd988d9a6eb5d4ac79f4808db042989a7%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638108348674728031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Wedj6fJ8p564lYwaDHXQAjbEYjT8oX5jl1A8eNop9So%3D&reserved=0 A summary of the counter-arguments could be that CAs have messed up before, how can we rest assured they will not reuse state. I think your argument for Stateful HBS in this draft is only for root CAs which sign a few ICAs and then go to sleep and rarely wake up. Maybe another use is for code-signing EKU certs where the signer controls its signing process and the verifiers trust it. The draft also mentions subordinate CA certificates. I don't think these are good use-cases for stateful HBS. I would suggest for the draft to clearly stress the potentially use-cases for Stateful HBS. Also I suggest for the security considerations section to stress the importance and how you envision these use-cases will be able to address the state concern. For example a Root CA uses an HSM and signs very few ICA certs and then goes offline. Another example is a code-signer keeps track of all its signatures and can go back and attest the state was not reused periodically and its verifiers usually trust the signer. Another one could be the state look ahead where you retrieve x states and change your pointer before you even start signing anything. -----Original Message----- From: Spasm <spasm-bounces@ietf.org<mailto:spasm-bounces@ietf.org>> On Behalf Of Kousidis, Stavros Sent: Saturday, December 24, 2022 12:11 AM To: Russ Housley <housley@vigilsec.com<mailto:housley@vigilsec.com>> Cc: LAMPS <spasm@ietf.org<mailto:spasm@ietf.org>>; draft-gazdag-x509-hash-sigs.authors@ietf.org<mailto:draft-gazdag-x509-hash-sigs.authors@ietf.org> Subject: RE: [EXTERNAL][lamps] draft-gazdag-x509-hash-sigs-00 CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. Dear Russ, thank you for the information. In the next version we will adopt the "OCTET STRING" definition of RFC 8708 for HSS and apply this also to XMSS/XMSS^MT. The same applies to SPHINCS+ where we will adopt the definition of "draft-ietf-lamps-cms-sphincs-plus-01". Best Stavros -----Ursprüngliche Nachricht----- Von: Russ Housley <housley@vigilsec.com<mailto:housley@vigilsec.com>> Gesendet: Freitag, 23. Dezember 2022 18:12 An: draft-gazdag-x509-hash-sigs.authors@ietf.org<mailto:draft-gazdag-x509-hash-sigs.authors@ietf.org> Cc: LAMPS <spasm@ietf.org<mailto:spasm@ietf.org>> Betreff: [lamps] draft-gazdag-x509-hash-sigs-00 Dear I-D Authors: RFC 8708 has this definition: HSS-LMS-HashSig-PublicKey ::= OCTET STRING This will carry the bytes as defined in RFC 8554. draft-gazdag-x509-hash-sigs-00 says: HSS-HashSig-PublicKey ::= SEQUENCE { levels OCTET STRING, -- number of levels L tree OCTET STRING, -- typecode of top-level LMS tree ots OCTET STRING, -- typecode of top-level LM-OTS identifier OCTET STRING, -- identifier I of top-level LMS key pair root OCTET STRING -- root T[1] of top-level tree } This will produce a different byte string than RFC 8554. I think this is a problem. There should only be one way to encode the HSS/LMS public key. Russ _______________________________________________ Spasm mailing list Spasm@ietf.org<mailto:Spasm@ietf.org> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf.org%2Fmailman%2Flistinfo%2Fspasm&data=05%7C01%7Cantonio.vaira%40siemens.com%7Cd988d9a6eb5d4ac79f4808db042989a7%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638108348674728031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=wFkKzzwn5JFkvymGcyOrOix99O8otkKQ5pdOmuGwh5M%3D&reserved=0 _______________________________________________ Spasm mailing list Spasm@ietf.org<mailto:Spasm@ietf.org> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf.org%2Fmailman%2Flistinfo%2Fspasm&data=05%7C01%7Cantonio.vaira%40siemens.com%7Cd988d9a6eb5d4ac79f4808db042989a7%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638108348674728031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=wFkKzzwn5JFkvymGcyOrOix99O8otkKQ5pdOmuGwh5M%3D&reserved=0
- [lamps] draft-gazdag-x509-hash-sigs-00 Russ Housley
- Re: [lamps] draft-gazdag-x509-hash-sigs-00 Kousidis, Stavros
- Re: [lamps] draft-gazdag-x509-hash-sigs-00 Kampanakis, Panos
- Re: [lamps] draft-gazdag-x509-hash-sigs-00 Kousidis, Stavros
- Re: [lamps] draft-gazdag-x509-hash-sigs-00 Vaira, Antonio
- Re: [lamps] draft-gazdag-x509-hash-sigs-00 Kampanakis, Panos
- Re: [lamps] Auditing HBS state usage Mike Ounsworth
- Re: [lamps] draft-gazdag-x509-hash-sigs-00 Tim Hollebeek
- Re: [lamps] Auditing HBS state usage Scott Fluhrer (sfluhrer)
- Re: [lamps] Auditing HBS state usage Russ Housley
- Re: [lamps] [Pqc] Auditing HBS state usage Fregly, Andrew
- Re: [lamps] draft-gazdag-x509-hash-sigs-00 Kousidis, Stavros
- Re: [lamps] [Pqc] Auditing HBS state usage Vaira, Antonio
- Re: [lamps] draft-gazdag-x509-hash-sigs-00 Vaira, Antonio
- Re: [lamps] draft-gazdag-x509-hash-sigs-00 Seo Suchan
- Re: [lamps] draft-gazdag-x509-hash-sigs-00 Tim Hollebeek
- Re: [lamps] draft-gazdag-x509-hash-sigs-00 Kousidis, Stavros
- Re: [lamps] draft-gazdag-x509-hash-sigs-00 antonio.vaira@siemens.com