Re: [TLS] Comments on draft-celi-wiggers-tls-authkem-00.txt

"Blumenthal, Uri - 0553 - MITLL" <> Thu, 22 July 2021 12:48 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id C0B803A4533 for <>; Thu, 22 Jul 2021 05:48:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id qLHHVoZg8v5O for <>; Thu, 22 Jul 2021 05:48:47 -0700 (PDT)
Received: from (LLMX3.LL.MIT.EDU []) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 841CB3A4535 for <>; Thu, 22 Jul 2021 05:48:47 -0700 (PDT)
Received: from ( by (unknown) with ESMTPS id 16MCmdRf014886; Thu, 22 Jul 2021 08:48:39 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector5401;; cv=none; b=YOi3AW3Dgpx+QWrSYGDIIXo637TZ9z9H6noGL8CMdxftyQbLTmc/P09D/n7Iap5iDwehFY7z5jEBi9dG5M1kBGSf/o7HauP3Wz/1Wx/2BsLzdXnRgc6/qGGtc9iFrNHZLLmBlBZMuCrd7b8lHt/YJLZnc/P/AdbQTFo3v/8Th+crTm4+Gkj52cLcf3d4EHfGTLvMRaEBwe9gV4PnbkjPlR6qhFgVrkw2fYxh65Mcp4l/3m9pH8ZIwPrg+WBLCV7CpgEeeWiTT30v6FoGWZk5pZAKy1Wv5Xt6MnhFYgNBN+30MSGmdOZBNZ7poWm6I5nROF53LbaJZb7lC/VXZLta6Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;; s=arcselector5401; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2T6L2C0vHNL02TSQwnCYU1THvWqLAUYDmaX+HcpNpe8=; b=llxLToE0UVvN07SZAYzQit3Rn34lki8LWVCppNqElKIA/ABveGOK+/8Q0YZrsScmSEXAoR3emUJvkDyTGdhNhXdMcrcfxsX0ZFL94/lYfXkYRrWo9c9+3RLxMnr8f8anzO/Zps+9auC6CkTox4rIYOiIyNc6I+QXu5HulnrRy0aAmMINMdW7qcwysLLD6fgUMUqJtrMV5ndzup3IM7ie/OhY4y/No0DGOK3WAd7EEoD1TTFWmgLickBhXdgz7Uq8oXCdlDKdLsfuI2O+INgtpm+xAaJfiE/NmOWaosKIozOBN9M4MsCuFbHVHqOxlCpep862yk+gv6z+/phqDuDnVg==
ARC-Authentication-Results: i=1; 1; spf=pass; dmarc=pass action=none; dkim=pass; arc=none
From: "Blumenthal, Uri - 0553 - MITLL" <>
To: "Kampanakis, Panos" <>
CC: "" <>, Douglas Stebila <>, "Eric Rescorla" <>
Thread-Topic: [TLS] Comments on draft-celi-wiggers-tls-authkem-00.txt
Thread-Index: Add+tHdLT0JcZqpyTOWwQ+3dwbToQgAQ2naA
Date: Thu, 22 Jul 2021 12:48:35 +0000
Message-ID: <>
References: <>
In-Reply-To: <>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
authentication-results:; dkim=none (message not signed) header.d=none;; dmarc=none action=none;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 5319c8d6-fc98-450a-2c62-08d94d0f04ef
x-ms-traffictypediagnostic: SN5P110MB0335:
x-microsoft-antispam-prvs: <SN5P110MB03352478CABF767C986B5A2C90E49@SN5P110MB0335.NAMP110.PROD.OUTLOOK.COM>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: twT19Hwnv9tFEDzrpsZ4xakF5ZxUUBbEVkhc+cAxWhoDs7zyu/ORS9nJXZ6J7BYB70xgarYC1w8wo++gtgLBgr8Zunge4x4JizxPu5koQvRYKNkQPxBuiHbtIkd62cueNQ63c+6KIqOSMo8uOE1UbaCQyYRFVhhaqlLFB2bo5VEXqJ2HrfmYYkfC0ZEYImlGXd7icDFaaQ7Dp4gNN7vY5UqpIrW7P68kd95pHB2oiUOUfyb0idRV3PlDbi2v1U3FpMacmaT5Ym43t/Mk+//lknE8U4tswtbpCe5z8225/q3hx/6g/PVTqf51bu1JYZ7IPaPc40sVFEsgcqkUf38LcCXm3poROQWh0v9Ekb/ThsfS/iYkCaXggEBk+H+1t/R00llPMKvIT23GB8sKuvZ/hnajzAkpBFQSyFpAStMrKR2f8XLrZ8V/awU2UQgGo6aNJPaVE1cOuaKUhuDtbneAQ1IEBPUk0gMjiFieCYppzveeP5ql+vT7zpmoFXLkcLvSQHn6QZXDu03SpOJR1aTuK0lvTqXaB+q7Ls9ORloshoXpsIFiVEchimBfocYxDrxKYgArtWon+CwgPEkx4+H1bQNG8OeqbB0PXnAZzppOGBj+usS1ZMXchOJIt9+FGYk24zH5cB4crtiOBzGFvs2k8PbvzdY6cBnPcM3kFnoJJbk=
x-forefront-antispam-report: CIP:; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN5P110MB0560.NAMP110.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(396003)(39850400004)(136003)(366004)(54906003)(508600001)(99936003)(76116006)(122000001)(83380400001)(86362001)(6512007)(8936002)(6486002)(5660300002)(66946007)(2906002)(71200400001)(75432002)(4326008)(66446008)(64756008)(186003)(53546011)(6916009)(8676002)(6506007)(66476007)(966005)(2616005)(66556008)(66616009)(33656002)(38070700004)(45980500001); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: f6Ok1SuYU2YPFlGd0RH3aPn7E6gduyHqJSBYgHFA1tPnexMBI8MBL1eO2xC7uR6JmVrTVngMGL2+nf+yr6MeGmUGggPd4BD1RmAnU0mt2yATnPX7zoLGUyL6b5j7Nrew8fprX8zPWeMZK1DdSkfJLWkcNJ86MQh8TlJ3nYbYh6gS5wIHnD22ZKFTRPmA5taI7Ft3LBhSHK3DcJOSWG5KSWn1mLRNYSUFwNf3lsu27KxKNXMnnIXDwRz0vNC9+hf96BYkYt7zqS3BnMeuevbce0CEagDZCcoF94bmUuwzHL8V3Y261wBYPbl7x4U05RYG1ghF5vsMTGfVh5RrtS3DJKZ0PkkagYuxqkdEX3bVaeQzQDDT+7cllowQxPDqu41FgECVnGMw4H8HaueC5FKkY9h6MoVfolZof2y7mxSTHfmxT8P6AYlPLBxmT418F+obo8tofHzMItncG4oQQG6ix/Tp1IuqNRxNs4OE2w6RwjFlr6a22A/m6fdCB7swgKMLR6o2tkZBHNbLyoZEL2DcYUKGybIx+vmZiMeMW3gj8iL9YNadgHiI9N8LddaE20OevTaCNvILi5x4skYI3lZ/f+Vp0RYUoswQEFutQlSbqQ0=
x-ms-exchange-transport-forked: True
Content-Type: multipart/signed; boundary="Apple-Mail-3CCB5FA3-F315-41CC-9FE7-381A459765E8"; protocol="application/pkcs7-signature"; micalg=sha-256
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SN5P110MB0560.NAMP110.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-Network-Message-Id: 5319c8d6-fc98-450a-2c62-08d94d0f04ef
X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jul 2021 12:48:35.1517 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 83d1efe3-698e-4819-911b-0a8fbe79d01c
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN5P110MB0335
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-22_07:2021-07-22, 2021-07-22 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2103310000 definitions=main-2107220084
Archived-At: <>
Subject: Re: [TLS] Comments on draft-celi-wiggers-tls-authkem-00.txt
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Thu, 22 Jul 2021 12:48:53 -0000

On Jul 22, 2021, at 00:46, Kampanakis, Panos <> wrote:
> Hi Uri,
> Thank you for the clarifications. 
> So you have a usecase that 
> - want to use PQ algorithms
> - is significantly affected by an extra 1-2 or 4-5KB on the link
> - does not send a cert chain, only leaf certs


> - can cache or fetch the peer public keys in order to do KEMTLS

I did not say that. As far as I can tell now, there's no way to fetch (outside/OOB of this protocol) peer's pub keys or certs. 

Caching received and validated keys to ease the reconnects is an interesting idea. I'll need to figure whether the comm savings outweigh the extra complexity and branching of the protocol. 

> Although I don't consider it the general usecase, maybe KEMTLS is the way to go there. 

I'm 99.9% sure it is.

> Other good options imo for it would be draft-ietf-tls-ctls and rfc7924 to save even more on data put on the link.

Thank you! Seems applicable - let me check. 


> -----Original Message-----
> From: Blumenthal, Uri - 0553 - MITLL <> 
> Sent: Tuesday, July 13, 2021 1:17 AM
> To: Kampanakis, Panos <>
> Cc: <> <>rg>; Douglas Stebila <>om>; Eric Rescorla <>
> Subject: RE: [EXTERNAL] [TLS] Comments on draft-celi-wiggers-tls-authkem-00.txt
>> If we are talking NIST Level 5 (and I am assuming you are
>> discussing mTLS), 
> Yes. ;-)
>> ...have you calculated the total CertVerify+cert chain sizes
>> there assuming 2 ICAs let's say? 
> More or less. ;-)
> My use case has all the ICAs pre-loaded - the transmitted chain contains only one entity cert. I'm sacrificing flexibility for performance under constraints. Size is the real enemy here.
>> And would constrained devices or mediums that sweat about 5KB
>> really be able to support PQ KEMs and Sigs at NIST Level 5?
> My tests showed that they *do* support PQ KEMs (NTRU and Kyber - haven't tried McEliece ;) and Sigs (Falcon and Dilithium - haven't tried Rainbow ;) at Level 5. Caveat - they do only Sig *verification* (which suits me fine).
> (I posted benchmarks from Intel Core i9, but they work acceptably well on the "smaller" chips.)
> Also, sorry if I did not make it clear - it's not the *devices* themselves that sweat 5KB, it's their austere links.
>    -----Original Message-----
>    From: TLS <> On Behalf Of Blumenthal, Uri - 0553 - MITLL
>    Sent: Monday, July 12, 2021 11:39 PM
>    To: Douglas Stebila <>om>; Eric Rescorla <>
>    Cc: <> <>
>    Subject: RE: [EXTERNAL] [TLS] Comments on draft-celi-wiggers-tls-authkem-00.txt
>    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.
>    Let me emphasize the reasons Douglas brought up. Note that I need to use NIST Sec Level 5 algorithms. So, Kyber-1024 and Dilithium5 (other algorithms show even worse ratio between KEM and signature!).
>    Communications costs:
>    - Difference in public key sizes: 1568 bytes of Kyber vs. 2592 bytes of Dilithium => 1024 extra bytes to carry over channel each way;
>    - Signature: extra 4595 bytes each way, because in addition to exchanging certs (aka "signed public keys", which is inevitable) you need to sign the exchange and communicate that signature across;
>    - Total: 5619 extra bytes each way. For peer-to-peer broadband connections, you can say "so what?". But my links are *very* austere.
>    Computation costs (ballpark, on a powerful CPU):
>    - KEM: keygen 15us, encap 18us, decap 14us (say, double encap and decap for PFS-providing exchange);
>    - Signature: sign 113us, verify 55us;
>    - Comparison: 134us for signature-less KEM vs. 215us for TLS-like exchange => almost twice as long;
>    - Difference may be negligible for Intel Xeon, but for my much weaker hardware it matters.
>    So, for constrained environments with austere comm links, signature-less "authkem" is God-sent.
>    Big servers that need to support many clients (so they care how much CPU cycles and comm bytes they spend on every connection) would appreciate these savings too.
>    @ekr,I hope this provides convincing explanation why "authkem" is needed.
>    P.S. I know that Falcon has much more favorable sizes - but (a) it takes three times as long to sign, and (b) it uses FP calculations, which isn't great to implement in my environment.
>    --
>    Regards,
>    Uri
>    There are two ways to design a system. One is to make is so simple there are obviously no deficiencies.
>    The other is to make it so complex there are no obvious deficiencies.
>                                                                                                                                         -  C. A. R. Hoare
>    On 7/12/21, 20:59, "TLS on behalf of Douglas Stebila" < on behalf of> wrote:
>        Hi Eric,
>        The main motivation is that, in some cases, post-quantum signatures are larger in terms of communication size compared to a post-quantum KEM, under the same cryptographic assumption.
>        For example, the KEM Kyber (based on module LWE) at the 128-bit security level has 800-byte public keys and 768-byte ciphertexts.  The matching signature scheme Dilithium (also based on module LWE) has 1312-byte public keys and 2420-byte signatures.  Doing KEM-based server authentication rather than signature-based server authentication would thus save 2164 bytes per handshake.
>        We would still need digital signatures for a PKI (i.e., the root and intermediate CAs would sign certificates using PQ digital signature schemes), but the public key of the endpoint server can be a KEM public key, not a digital signature public key.
>        Douglas
>> On Jul 12, 2021, at 20:30, Eric Rescorla <> wrote:
>> Hi folks,
>> I have just given draft-celi-wiggers-tls-authkem-00.txt a quick
>> read. I'm struggling a bit with the rationale, which I take to be
>> these paragraphs:
>>   In this proposal we use the DH-based KEMs from [I-D.irtf-cfrg-hpke].
>>   We believe KEMs are especially worth discussing in the context of the
>>   TLS protocol because NIST is in the process of standardizing post-
>>   quantum KEM algorithms to replace "classic" key exchange (based on
>>   elliptic curve or finite-field Diffie-Hellman [NISTPQC]).
>>   This proposal draws inspiration from [I-D.ietf-tls-semistatic-dh],
>>   which is in turn based on the OPTLS proposal for TLS 1.3 [KW16].
>>   However, these proposals require a non-interactive key exchange: they
>>   combine the client's public key with the server's long-term key.
>>   This imposes a requirement that the ephemeral and static keys use the
>>   same algorithm, which this proposal does not require.  Additionally,
>>   there are no post-quantum proposals for a non-interactive key
>>   exchange currently considered for standardization, while several KEMs
>>   are on the way.
>> I see why this motivates using a KEM for key establishment, but I'm
>> not sure it motivates this design, which seems like a fairly radical
>> change to TLS. As I understand the situation, in the post-quantum
>> world we're going to have:
>> - non-interactive KEMs (as you indicate above)
>> - some sort of signature system (otherwise we won't have certificates).
>> This certainly argues that we need a KEM for key establishment, but
>> not for authentication. Instead, why can't we use signatures for
>> authentication, as TLS does today? I.e., the certificates would have a
>> (potentially post-quantum) signing key in them and you then use the
>> KEM for key establishment and the signing key for authentication.
>> That would give us a design much closer to the present TLS 1.3
>> (effectively just defining a new group for the KEM).
>> What am I missing?
>> -Ekr
>> _______________________________________________
>> TLS mailing list
>        _______________________________________________
>        TLS mailing list