[CFRG] Re: RGLC on draft-irtf-cfrg-cpace-15

"Hao, Feng" <Feng.Hao@warwick.ac.uk> Fri, 05 December 2025 21:32 UTC

Return-Path: <Feng.Hao@warwick.ac.uk>
X-Original-To: cfrg@mail2.ietf.org
Delivered-To: cfrg@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 1E0559635450 for <cfrg@mail2.ietf.org>; Fri, 5 Dec 2025 13:32:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=warwick.ac.uk
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NNhTFjPYB06D for <cfrg@mail2.ietf.org>; Fri, 5 Dec 2025 13:32:11 -0800 (PST)
Received: from PA4PR04CU001.outbound.protection.outlook.com (mail-francecentralazlp170130007.outbound.protection.outlook.com [IPv6:2a01:111:f403:c20a::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 6F4B596353F6 for <cfrg@irtf.org>; Fri, 5 Dec 2025 13:32:04 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SMKFbim7Bi+I48mMsYSz77lxQZr79JnYPov72QOqnU0AXNgThQ/cZdPmEvE9LusrlH8CRCFonJ9y0H3K2yG0iLk5OZrjMGWzXPR7nAWgvuKJAYxcuIrKy5BhbCpXLK+b07tk3HCerlg3YXUoJQz2N6ZI5tiU02UHXTosGiUZok7LxAs5+5G7MynuhTtg5JxvfeWtxKQww5EqoxKO2uHmsaHCSovQ3+6raj/kQDDGEKy+fYonrY2ucjyIUij5m8lYmfddKAOdYt75N4vCWUyCYcKqU4d8cUTJVYd3/coLTIb73PPgtTAyhYLh87lu1S8rXHtIYJZwTtjrGbvFHt1pBw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=i0bb8UOfwYAbW0BgYmGqOixYMKq7uShDHTSIkJrkkSA=; b=Yjb14t+QvZFsjnATkhvlzERPNzt8tjGJZyD7EQ37GU/i0QzHjblfsKAh0QbZxERqGhFSbyzRBOQseLL/EkJK9zVxfTtgA0l2MQVgqNSLQSedcfl6fFVXNxlGoszKwxTFgUlXY1fbDoPgm8pC0EUjQWs2cVVHLwm+9dp4h1LfgrHMpE3X5yPfozbobjD6Zfotxnx2eWjMp5+s45TxQsfFWTpSUmMPelERqcP0H3ErYPerv6czy63eHyCnY253uNkEoIVLv5iN0Et3/S4Nxb7GnUR2iEBsDXQhBIqXvnrdBfw7nfPfafsFxqEAuGfYplhTA/u1KYtaDbNvvj99cUI7XQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=warwick.ac.uk; dmarc=pass action=none header.from=warwick.ac.uk; dkim=pass header.d=warwick.ac.uk; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=warwick.ac.uk; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i0bb8UOfwYAbW0BgYmGqOixYMKq7uShDHTSIkJrkkSA=; b=jvBOzTZIoTumGh98NnmjAXGNREYyt1NQl11vHcVBnGUoczxg5P6HtWeYj4kcZ402OcR7HEX3zG7lx1ngTIHxqNQ/aEgASjK6rwqzk0T0fCWnYL0+bFEQokUZPTajA961e0hwLrm8e/PrIjIsjhzYGrdGFrb5N9+wQiVwGQmRUZH4smv8oe3oZfWk1WzuNYpbZakhHUbYMxYHJICvWlmUyM3Y1jEXZFpq3Qijw0EYwc76B2rC6IAXBKxTRJNW8/TnidOZHaL3o+idOTaQJfkQan9yTVu9dszXXn6QuLq5I4HV2VLCbU4FpgJYZAoo4+laIyfFXbu9Do1u1U9UbURUyQ==
Received: from AMBPR01MB12579.eurprd01.prod.exchangelabs.com (2603:10a6:20b:728::13) by DBAPR01MB6837.eurprd01.prod.exchangelabs.com (2603:10a6:10:17e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9388.12; Fri, 5 Dec 2025 21:32:01 +0000
Received: from AMBPR01MB12579.eurprd01.prod.exchangelabs.com ([fe80::db49:b884:435f:c2e]) by AMBPR01MB12579.eurprd01.prod.exchangelabs.com ([fe80::db49:b884:435f:c2e%5]) with mapi id 15.20.9388.003; Fri, 5 Dec 2025 21:32:01 +0000
From: "Hao, Feng" <Feng.Hao@warwick.ac.uk>
To: Björn Haase <bjoern.m.haase=40web.de@dmarc.ietf.org>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [CFRG] Re: RGLC on draft-irtf-cfrg-cpace-15
Thread-Index: AQHcYrpsEJ1juhAQe0C79ebLwz4+8bURr+3ggAFFzQCAADKugIAAQXwAgAAZ0xw=
Date: Fri, 05 Dec 2025 21:32:01 +0000
Message-ID: <AMBPR01MB12579DD38C86F6BB555945EEED6A7A@AMBPR01MB12579.eurprd01.prod.exchangelabs.com>
References: <CAMr0u6nQXQNs+BHZotaLeYZLAxDACMitFJYbZYN+_ZxadBA-Fg@mail.gmail.com> <CAMr0u6npX3ahP2CT5zhR8iZt-Z1yT8DwsbgOmjzEuTQaVzKLKA@mail.gmail.com> <AMBPR01MB125796BA8F202F088AFB8E0C5D6A6A@AMBPR01MB12579.eurprd01.prod.exchangelabs.com> <AS2PR05MB10246097F5A8501D08C43E20483A7A@AS2PR05MB10246.eurprd05.prod.outlook.com> <AMBPR01MB12579F739A40633559C561C41D6A7A@AMBPR01MB12579.eurprd01.prod.exchangelabs.com> <1e939670-7fe7-46db-b610-3e45a34f965f@web.de>
In-Reply-To: <1e939670-7fe7-46db-b610-3e45a34f965f@web.de>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-reactions: allow
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=warwick.ac.uk;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: AMBPR01MB12579:EE_|DBAPR01MB6837:EE_
x-ms-office365-filtering-correlation-id: faef7bf7-bb90-43ca-f467-08de3445ba1b
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;ARA:13230040|4022899009|376014|69100299015|1800799024|366016|8096899003|13003099007|38070700021|7053199007;
x-microsoft-antispam-message-info: 2uQPegaxEKI1ULQDxLN5mDtMiK8deE3+c/x/gM9nW/Pl92Mr0+rXmEK0OE58xE4u7ykHdPKr4D9a69+2faR9xR/K/gIbQJKROTsMA1MjAvst+2kxZOm7bcWiEQXjVTbTYTl6roS2+mj4XLBIkOC4GzcwEW5XsZUIb/xncqEYwtKxF8WZCZGzRMaiPfeYoD5TDXwn2TOwqxGkOCki4/RPaKBQZuWGt+srpS5GT25WA6nHkM/PsKhxlUIbiph9k+04O9umLLN7q3aiNvZL+/kzXBeXtY7AJ/LHMk4VxaytQ8bLFfI6QSWH8rGGBXPZLJCMB7uwVg4XeOBBmCpwQINsjfSbhrKfQTtw+qx/q4iwaN0/a3S1pIW6F+gbv70yhWuoRKR9fpt730tk6h/OmN68yo0R3J8dFa1jo+JUc6rSBEoPVGgyc3GYnu7jgzerLccWQyY4MnAPQhUZY7JoLeAZEsfrbDyWhpSuryaasY1JlR4U92aqwGlTSmzoeYoMnmN+XGKqs7tqoxz+ur3k5hXeDR7Fe7eOBjyE5BgWqh69QMkM50f/1MrMs3GGNbcYc12Cwpa+WD4HUCgyBfUolE/Rdph0benckwyjxK+4sgjZcM6or8iXV06gwwxbUStNbEXDY/qKqbwJdGT4o00O4XRMx50VR/uTap/xJggwfKqVcOCOLU4gUu5WMv52TLfA9dABE/+aGUcwgIL01+NCg+07xiXuc7ZbyNfpPRmmHMCqFbbs+ntzhpdKRIdCP/Na3fAuJORUm172o3yGwAoADVVZBNa/3bIeSPJJl2gCdWewuMdhLqtQjWvHSHbl9Tx/5Aow/s1xj77ey59QBsgsgXrgRupoIKdp3pTA+I/O+/klB4W7YtgpBBgR4WzrRc7M8STkK3lrZMQroJ5qV2AesUIt9lDumq9vX2v6ungzriLchW+MOKOebCju0+KSaRZOQ2VbxdTgcG7OllQv+MAoKXOXun6+0UAWREqyPfOk8wGI1R5ZgP0vlsxKxgG/PI278LEGTwOUvfzglpGtPMtjSN1TLJWCyj0ZIXKcnnfeGXY4RJmT+5TtesRdSugEF8/0w32ImbXfWj589paaC/1ofvc84BdFWiNax9Z4GCyQZK3hcpAD8tcN/pQ2DM3kfj1MQ3H2W3qwASVs+N4WJ2WQVmzl8Aom+Ry+ssNeXzWa62bcdt1T1JXer9JqgHT7UUy+hI5TfdHJQ3fR3mXJo7qDnGyBbmb0NHYNLL4xWwK1lQ5x/R82LMEkpx1wnLIt5MFxjpSvlAjQSu8y82F3UVN5j3O4j35FjK8UvUpsBnjGzzll40LHGvuKSmzc89ogsYlePGocnFp629lONZXRj+Vae3cPvLpOcU+OZ6v/0+O9fhdtv337UOlBuFf3Dur3lXCuechc65xyiyFky0kFz+PzwUJ8hK77maCvjnMlJ0sphPQ8aG2nEvxQU8SbkUe5vCWXufH0alL/V0vXlchLdupfQtxZzQ==
x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AMBPR01MB12579.eurprd01.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230040)(4022899009)(376014)(69100299015)(1800799024)(366016)(8096899003)(13003099007)(38070700021)(7053199007);DIR:OUT;SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: ulBvUKuwan1A5/JurD530792ji5sRieJIuVunPQ2vtCs1JzufKV1bCMwb8Ckbo/3KAJd3ET/DwHrI1wi/CFVG3RHAl6Qdf0VogHEvuHDW+rCQmH/8hrC2511EmCZmsKPzxO8QYKilGO/Viipu8HW6Iff65Z+KHCdYo4/69+l+2ULZii4z8NR/XYnFLHzgfwrIFq2tfD7NKNLkYvYbnRGW7InNNt2DZE0xHL79GDCq5jxdjZYNeDpnDxbMNHeMtC43Sh8J/vSo3c2dALMO3EBKJ8catF19gJCJxKhjxieAgUIRdUYt9I7afQ5CifZ5ro71UFo/OJ5Y5wqtBFFRqegyZY+Y3+UZlR62ck52DYte13BTvwIajzqlw4SWYLk6d1/cEAGYbqP+7zKEi2RH24NVa5TmbX0EdqBmV5G86yzKx84bTSaJPvjpZ29+wB7/25WfZm34BkpsjbIOlUdCdkMqrj08lhqNY8c9nQhU67rT/54xC05RE4tDh98jVrVkyfDFennANkoXGXmWr1Ih9HwLPd/nvDmR+fdK82bVgo2cpIOmVYPJpj8kHrVo+zcovUOOtwOykItLG4VOAyBKf9fH0nalB8OzZ32p1RWVBYkSjrUxkiuAtfCtP9LnE2pEmEslA8bpWdmPK2rEByGovCAu3mqJoHZo/EhzOFdVjO+PAKtGZs855/+RhRqoihqvaZTuM+QlYq6uKaNi2maugT0TT/2qrp+5nZb0PDHDgS9+9AgUnSm9CJ31N9d/URparlpbTD6eSOqG30KZ5oLLdjUHjJIOZKF57I4aSROlMxU9um9sVAsQxdkk5QNSJ17KwyNyMfguYClxSLCPm6i8laOViB7VjHuXklEX/7lKvYC3IF7OfojQkYHC6XYFxh2LIhgdtuwoI5RUrjckLCTwuTjk55APqcyo5jTohTnTYXJumcsCHeuzzxbcjAh+y+99RTtdbOfzlO0WSw5crt6AL97KB45hSokh7E953K+tITnrBf56BKbWzyR3FMur6xXBztXrthcvt5+kpoJru92hSJagUnE1Y2WnsJgZr4zOhV3W1OpdJLRK0gTRRJ+v3nMHyQ38Z6/01bT6X4iAHkIv5kt1MZblQ4Tjo4Yf5EO0pOaLMjad7S4QC6DC2lC0yWsZUOZRJbGlNGsJKZ6MUpP9VIEsgPkorJnJVh+2ENH5JqfSmqzuQ7QpArqF3kNQ3t4xcOTJvK4PlFVH/Kn6LNDqG4O0P/7XVBJrQY2b96nQ6wQy66ert92nEQCL0CjvMRXz6dOxXI8OIdI6ue7TDj7rx6TqeG+bZUdngfEWh0stMmBhAOOdfIp86cDAHy1P8bKy3DeubmAANsX09CYa/272RMJvjkHVzLBmP/JuQ1+O88tBXV3s0UakLK4kcy+AG0qI7HrG8tdwF3+eBSWLzr5dmejjxdwsLxocqj5Cnz/GsiHGpays4qnsXwWkrQG1H3tG8b0xtyAf7Abj9+0Ni2+ueGjxl+sT9mSpvsnwrBjd42AHUicKnJmxLSt91AIgbedUcQ9A5nC7I0ayQsylh5hTxWbhuOUWdlsFOYGqOBF319UGb/TPd7285LBX/bDTduyl5Ppoamq92HRZC3EKBN66ezFR2WjkDLD7p3p1pZhChxLguE=
Content-Type: multipart/alternative; boundary="_000_AMBPR01MB12579DD38C86F6BB555945EEED6A7AAMBPR01MB12579eu_"
MIME-Version: 1.0
X-OriginatorOrg: warwick.ac.uk
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AMBPR01MB12579.eurprd01.prod.exchangelabs.com
X-MS-Exchange-CrossTenant-Network-Message-Id: faef7bf7-bb90-43ca-f467-08de3445ba1b
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Dec 2025 21:32:01.2535 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 09bacfbd-47ef-4465-9265-3546f2eaf6bc
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: s5Q10OkcsPm3Ihj/MWb+KY8D3maQg824r8/XNvuZuyazCxqD/YwcnOGmOmystQt0cfE9wZJ8PAedGrUokqk9is+U4SgfBHbtrqJmtzkwej4=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR01MB6837
Message-ID-Hash: JQLDTBK4QOFJDRLLJXYTGHCYVKQLHDB6
X-Message-ID-Hash: JQLDTBK4QOFJDRLLJXYTGHCYVKQLHDB6
X-MailFrom: Feng.Hao@warwick.ac.uk
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cfrg.irtf.org-0; header-match-cfrg.irtf.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [CFRG] Re: RGLC on draft-irtf-cfrg-cpace-15
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/vadfY1L9KVVClDZcL1PH3UgQ6wA>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Owner: <mailto:cfrg-owner@irtf.org>
List-Post: <mailto:cfrg@irtf.org>
List-Subscribe: <mailto:cfrg-join@irtf.org>
List-Unsubscribe: <mailto:cfrg-leave@irtf.org>

Hi Bjorn,

I am not sure if your change in the wording makes any difference. For security critical details, you need to define them unambiguously in a complete spec. The word “should” doesn’t help here.

As an example, see how the revised SPEKE was specified in ISO/IEC 11770-4 (Figure 4, p. 7,  https://arxiv.org/pdf/1802.04900) Besides the finite field, ISO/IEC 11770-4 also includes an elliptic curve version of the SPEKE.

A known problem with the finite field implementation is that the hash-to-group function uses safe primes as the modulus and hence the long exponents. The cost of exponentiation with a long exponent is very high (many times than the exponentiation with short exponents). Your spec completely avoids the finite field, and only focuses on EC. That’s OK. But you may want to make this clear.

For the elliptic curve version of SPEKE, a hash-to-curve function is required. The hash-to-curve function in ISO/IEC 11770-4 (following from IEEE P1363.2) works with any curve suitable for cryptography, but it’s not constant time. In your spec, you use different hash-to-curve functions that are custom-built for only selected curves.

When you say “All state-of-the art methods for realizing constant-time execution SHOULD be used”, this is ambiguous. If constant-time is regarded a security-critical feature, you may want to explicitly state that only constant-time H2C algorithms “shall” be used. Otherwise, there is no difference to the SPEKE spec in ISO/IEC 11770-4.

Cheers,
Feng

From: Björn Haase <bjoern.m.haase=40web.de@dmarc.ietf.org>
Date: Friday, 5 December 2025 at 18:49
To: cfrg@irtf.org <cfrg@irtf.org>
Subject: [CFRG] Re: RGLC on draft-irtf-cfrg-cpace-15

You don't often get email from bjoern.m.haase=40web.de@dmarc.ietf.org. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>

Dear Feng,

thank you for the constructive feedback. I agree with you in that we should probably use a more explicit phrasing regarding the recommendation of using
party identifiers. Please have a look at the following change suggestion.

https://author-tools.ietf.org/api/iddiff?doc_1=draft-irtf-cfrg-cpace&url_2=https://cfrg.github.io/draft-irtf-cfrg-cpace/draft-irtf-cfrg-cpace.txt

I have also added a sentence referring to the "loopback" version of the relay attack variant that you mentioned where messages from A are relayed back to A.

Yours,



Am 05.12.2025 um 16:32 schrieb Hao, Feng:
Hi,

I was only trying to raise the point that the user identity is one of the critical parameters in PAKE (and any authenticated key exchanges in general), and it needs to be defined explicitly.

When the user identity is optional, we may have the following attack scenario, where Alice and Bob share a password, but an attacker (who doesn’t know the password) can impersonate Bob to Alice and successfully pass the password authentication. See Figure 1 (https://eprint.iacr.org/2014/585.pdf) for the illustration of this attack. The original SPEKE spec in ISO/IEC 11770-4 has been revised to prevent this attack.

This impersonation attack exploits the confusion of the identity, and therefore is a form of the “unknown key share” attack. The “unknown key share” attack is an established, generic term, and there are many forms of it.

This attack is different from the “relay attack” you described. In the setting of your relay attack, three parties, A, B, and C share the same password. That is a less common scenario. The impersonation attack described above is between a victim user and an active attacker; it’s more practical.

Cheers,
Feng

From: Björn Haase <bjoern.haase=40endress.com@dmarc.ietf.org><mailto:bjoern.haase=40endress.com@dmarc.ietf.org>
Sent: 05 December 2025 11:52
To: Hao, Feng <Feng.Hao@warwick.ac.uk><mailto:Feng.Hao@warwick.ac.uk>; Stanislav V. Smyshlyaev <smyshsv@gmail.com><mailto:smyshsv@gmail.com>; CFRG <cfrg@irtf.org><mailto:cfrg@irtf.org>
Cc: cfrg-chairs@ietf.org<mailto:cfrg-chairs@ietf.org>; draft-irtf-cfrg-cpace@ietf.org<mailto:draft-irtf-cfrg-cpace@ietf.org>
Subject: AW: [CFRG] Re: RGLC on draft-irtf-cfrg-cpace-15

Dear Feng,

before responding in detail I am having the following processural topic before responding
to each individual point brought up in your post.

When discussing a mature draft revision on the list I'd like to suggest that we all stick
to the naming/nomenclature and definition as used in the respective draft.

IMO using consistent nomenclature when discussing mature drafts is very important.
Without knowledge on the different nomenclature in the scientific literature for the same
topic a non-expert reader of our posts on the list might be mislead.
Inconsistent nomenclature might even be misused for nudging a reader to fearing
that an attack was overlooked in a draft by the authors and reviewers, while the exact
topic was actually considered in depth under a different name and heading.

For the CPace draft this is relevant as the "unknown key share attack" from [1,2] that you
are referring to in your post is explicitly discussed in the draft under the name of
"relay attacks".

For comparison I'd like to cite the definitions of the respective attacks from the
different sources:

"unknown key share attack", citing from [2] Section 3:
"The second attack assumes that the user shares the same password with two servers, say S1
and S2. By relaying the messages between the client and S2, the attacker may trick the
client into believing that she shares a key with S1, but actually the key is shared
with S2. The authors [of [1], Tang and Mitchell] call this an “unknown key-share” attack.
They suggest to address this attack by including the server’s identifier into the
computation of g."

"relay attack", citing from draft-irtf-cfrg-cpace-15 Section 9.1:
"Incorporating party identifier strings is important for fending off relay attacks. Such
attacks become relevant in a setting where several parties, say, A, B and C, share the same
password PRS. An adversary might relay messages from an honest user A, who aims at
interacting with user B, to a party C instead. If no party identifier strings are
used and B and C share the same PRS value then A might be using CPace for establishing a
common ISK key with C while assuming to interact with party B."


Now regarding your comment and your "technical concerns" I have the following feedback:

>CPace (as defined in the original 2019 paper) differs from the original SPEKE
>protocol (proposed by Jablon in 1996) in that it adds session IDs to the key
>exchange process. As a result of this change, completing the 2019 CPace
>protocol in 1 round or two passes is impossible. By now, this should be
>clear to everyone.
>
>The CPace protocol in draft-15 has removed the session IDs as mandatory data.
>
>CPace in draft-15 has also removed the party identity as mandatory data. From
>Section 3.1, the party identity is optional; it “MAY also be the empty string”.
>
>These changes essentially revert CPace to SPEKE in 1996 . However, the 1996 SPEKE
>is known to suffer from an unknown key-share attack due to the missing user
>identities. With the explicit specification of the user identity as OPTIONAL
>in draft-15, it seems that CPace would suffer from the same attack.
>See [1] for more details.

Your wording seems to suggest, that you believe that the CFRG community might have overlooked
a known "unknown key share" attack from the literature when writing the draft.
In fact the respective aspect is discussed in depth in the draft in section 9.1.
"Party identifiers and relay attacks". Because of the relevance the reader's attention in section
3.1. is explicitly drawn to the details discussed in section 9.1.

You moreover seem to claim that the one and only way to address the topic of relay attacks
is the method that you have been developping for SPEKE in the ISO/IEC process in [3]:
>Fixing this attack requires making party identities mandatory and including them in-flow
>during the key exchange.
>In order to maintain one-round efficiency, the only solution is to include the party
>identities in the key derivation function in a clearly defined lexicographic order. This is
>exactly what has been done in ISO/IEC to fix this issue. See [2] for more details. The revised
> SPEKE protocol, based on [2], has been standardized in ISO/IEC 11770-4.

In fact at least two independent secure ways for authenticating party identifiers alongside
with the protocol are known from the literature for fending off the relay attack.
- Firstly there is the approach of [4] (proof for the UC model) (following the approach of [1]
  for SPEKE) of integrating the identities in the calculation of the generator.
- Secondly there is the method exposed in Section B.1 of [4] ("real or random" game-based
  proof) which corresponds to what you are suggesting in [3].

Both options are presented and discussed in section 9.1. of the draft together with the
respective advantages and drawbacks. We advise the application designer to give preference
to the first option with the respective reasons stated in section 9.1 and 9.11 and 3. and
alternatively recommend the second approach if the preferred first option could not be chosen
due to application constraints.

>I would recommend the CPace authors make the party identities mandatory, and explicitly
>include them in the key derivation function as done above.

I believe that our common objective at CFRG should be to fill the gap between theory and
application and give guidance on how to best integrate cryptographic protocols and primitives
in the respective application scenario. The CPace draft was requested to serve the application
scenarios that come up for the balanced PAKE use cases.

For the CPace draft this implies that CPace should not be considered to form a standalone
protocol but rather a building block which aims at being integrateable in different application
scenarios.

One objective of the CPace design was to allow for security analysis for such integration by
closely following the semantics used for proofs in the UC framework. This comes at the cost
of offering the option of hardening the protocol with the help of a unique session id.

Regarding application scenarios different settings were identified:
- For some application scenarios authenticating both party identities might be important. This
  seems to be the only viable "PAKE" application that you are having in mind.
- A second set of applications exist where it is only needed to make sure that both parties
  share the same PRS string. One of the example of this group is the use case discussed on
  this list for the "Magic Wormhole" application setting
  (see https://mailarchive.ietf.org/arch/msg/cfrg/BBQ2gwCECu5ouTJjE_CE6d9Rg-0/ ).
- In a third set of applications authentication of only one out of the server and client identity
  might be of relevance. One example might be a WIFI-Router login application where the client
  wants to authenticate the name of a WIFI hot-spot but the server might be willing to give
  access to any client in possesion of the password. This seems also be the application context
  considered in [1].
- Moreover for an application confidentiality of party identifiers might be important and sending
  party identities in clear-text alongside with the protocol messages might not be an option (e.g.
  as in the PAKE use-case targeted by PACE for identity cards).
- Some application's might want to facilitate UC security analysis by reducing the gap between
  the UC framework and the real-world protocol by explicitly deriving session ids. Some might
  not want to pay the additional price of a possibly required additional round.

Ultimately there are various decisions and requirements cannot be addressed on the CPace level but
as part of the assessment for the larger application setting.
The CPace draft does so by offering the application layer a small set of alternative approaches with
a clear guidance on how to best use this flexibility and which advantages and drawbacks come with
either option (Sections 3.1 to 3.3 and 9).

The alternative of doing so would have been to either leave people such as Brian Warner
(in https://mailarchive.ietf.org/arch/msg/cfrg/BBQ2gwCECu5ouTJjE_CE6d9Rg-0/) without any guidance
or to issuing one specific RFC for all distinct "symmetric" PAKE use-cases which would result
in *many* specification documents.

In this context it is also worth noting that I have had a discussion off-the-list with Steve Thomas
end of November regarding the CPace draft. Steve suggested to additionally impose the requirement
to the CPace protocol that the PRS input string should never be memorized in persistent storage and
shall be ephemeral and password stretching for deriving PRS should not be considered.
I responded that in the the specific application use-case that Steve had in mind this additional
constraint would be indeed a good idea, but that there were other application scenarios where
different choices might be appropriate.

IMO the challenge for the CFRG is to find a good compromise in between the options of ruling
out important application scenarios on the one extreme or for adding excessive complexity
that comes with security pitfalls. IMO there is just no right or wrong regarding this
topic.

I believe that the CPace draft as-is does implement an appropriate choice by leaving a small set of
options that come with clear guidance on how to best use them.
Specifically Brain Warner's use case has shown that there are valid applications where
identity-binding is a "non-issue" and I see our objective at CFRG to give guidance regarding PAKE
usage also for this set of application designers.

Actually IMO this aspect has been at the core of the feedback during the crypto review panel
reviews and considered during the process.

Yours,

Björn

[1] Q. Tang, C. Mitchell, “On the security of some password-based key agreement
schemes,” International conference on Computational Intelligence and Security
(CIS), LNCS Vol. 3802, pp. 149-154, 2005

[2] Feng Hao, Siamak F. Shahandashti, "The SPEKE Protocol Revisited"
https://eprint.iacr.org/2014/585.pdf

[3] Feng Hao, Roberto Metere, Siamak F. Shahandashti and Changyu Dong,
“Analysing and Patching SPEKE in ISO/IEC” https://arxiv.org/pdf/1802.04900

[4] Abdalla, M., Haase, B., and J. Hesse, "Security analysis of CPace",
n.d., https://eprint.iacr.org/2021/114.





Mit freundlichen Grüßen | Best Regards

Dr. Björn Haase

________________________________

Senior Expert Electronics | TGREH Electronics Hardware

Endress+Hauser Liquid Analysis

Endress+Hauser Conducta GmbH+Co. KG | Dieselstrasse 24 | 70839 Gerlingen | Germany
Phone: +49 7156 209 10377
bjoern.haase@endress.com<mailto:bjoern.haase@endress.com> | www.ehla.endress.com<http://www.ehla.endress.com/>

________________________________

Endress+Hauser Conducta GmbH+Co.KG
Amtsgericht Stuttgart HRA 201908
Sitz der Gesellschaft: Gerlingen
Persönlich haftende Gesellschafterin:
Endress+Hauser Conducta
Verwaltungsgesellschaft mbH
Sitz der Gesellschaft: Gerlingen
Amtsgericht Stuttgart HRA 201929
Geschäftsführer: Dr. Thomas Buer

________________________________

Gemäss Datenschutzgrundverordnung sind wir verpflichtet, Sie zu informieren, wenn wir personenbezogene Daten von Ihnen erheben.

Dieser Informationspflicht kommen wir mit folgendem Datenschutzhinweis<https://www.de.endress.com/de/cookies-endress+hauser-website> nach.

________________________________



Disclaimer:

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged
material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities
other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from any computer.
This e-mail does not constitute a contract offer, a contract amendment, or an acceptance of a contract offer unless explicitly and conspicuously designated or stated as such.


Von: Hao, Feng <Feng.Hao=40warwick.ac.uk@dmarc.ietf.org<mailto:Feng.Hao=40warwick.ac.uk@dmarc.ietf.org>>
Gesendet: Donnerstag, 4. Dezember 2025 22:37
An: Stanislav V. Smyshlyaev <smyshsv@gmail.com<mailto:smyshsv@gmail.com>>; CFRG <cfrg@irtf.org<mailto:cfrg@irtf.org>>
Cc: cfrg-chairs@ietf.org<mailto:cfrg-chairs@ietf.org>; draft-irtf-cfrg-cpace@ietf.org<mailto:draft-irtf-cfrg-cpace@ietf.org>
Betreff: [CFRG] Re: RGLC on draft-irtf-cfrg-cpace-15

Hi,

I have a few comments and a technical concern about draft-15.

CPace (as defined in the original 2019 paper) differs from the original SPEKE protocol (proposed by Jablon in 1996) in that it adds session IDs to the key exchange process. As a result of this change, completing the 2019 CPace protocol in 1 round or two passes is impossible. By now, this should be clear to everyone.

The CPace protocol in draft-15 has removed the session IDs as mandatory data.

CPace in draft-15 has also removed the party identity as mandatory data. From Section 3.1, the party identity is optional; it “MAY also be the empty string”.

These changes essentially revert CPace to SPEKE in 1996 . However, the 1996 SPEKE is known to suffer from an unknown key-share attack due to the missing user identities. With the explicit specification of the user identity as OPTIONAL in draft-15, it seems that CPace would suffer from the same attack. See [1] for more details.

Fixing this attack requires making party identities mandatory and including them in-flow during the key exchange. In order to maintain one-round efficiency, the only solution is to include the party identities in the key derivation function in a clearly defined lexicographic order. This is exactly what has been done in ISO/IEC to fix this issue. See [2] for more details. The revised SPEKE protocol, based on [2], has been standardized in ISO/IEC 11770-4.

I would recommend the CPace authors make the party identities mandatory, and explicitly include them in the key derivation function as done above.

[1] “The SPEKE Protocol Revisited” https://eprint.iacr.org/2014/585
[2] “Analysing and Patching SPEKE in ISO/IEC” https://arxiv.org/pdf/1802.04900

Regards,
Feng

From: Stanislav V. Smyshlyaev <smyshsv@gmail.com<mailto:smyshsv@gmail.com>>
Sent: 01 December 2025 12:02
To: CFRG <cfrg@irtf.org<mailto:cfrg@irtf.org>>
Cc: cfrg-chairs@ietf.org<mailto:cfrg-chairs@ietf.org>; draft-irtf-cfrg-cpace@ietf.org<mailto:draft-irtf-cfrg-cpace@ietf.org>
Subject: [CFRG] Re: RGLC on draft-irtf-cfrg-cpace-15

Dear CFRG,

We have received only one response, so we've decided to extend the RGLC.
It will end on December 15th 2025.

If you've read the document and think that it is ready (or not ready) for publication as an RFC, please send a message in reply to this email.

Regards,
Stanislav, Nick, Alexey (CFRG chairs)


On Mon, Nov 10, 2025 at 8:57 AM Stanislav V. Smyshlyaev <smyshsv@gmail.com<mailto:smyshsv@gmail.com>> wrote:
Dear CFRG participants,

This message is starting a 3-week RGLC on draft-irtf-cfrg-cpace-15 ("CPace, a balanced composable PAKE"), https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-cpace, that will end on December 1st 2025. If you've read the document and think that it is ready (or not ready) for publication as an RFC, please send a message in reply to this email or directly to CFRG chairs (cfrg-chairs@ietf.org<mailto:cfrg-chairs@ietf.org>). If you have detailed comments, these would also be very helpful at this point.

The CPace protocol was selected as a result of the PAKE selection process in CFRG in 2019; there were a lot of reviews of the protocol and the early versions of the draft, see https://github.com/cfrg/pake-selection

We've also got a review for a recent version of the draft from Karthikeyan Bhargavan on behalf of the Crypto Review Panel:
https://mailarchive.ietf.org/arch/msg/crypto-panel/995IVSGk1jSRKvKS4gH2iu66eUc/
The authors were later addressing the concerns in the further versions of the draft.

Thank you,
Stanislav, for CFRG chairs


_______________________________________________
CFRG mailing list -- cfrg@irtf.org<mailto:cfrg@irtf.org>
To unsubscribe send an email to cfrg-leave@irtf.org<mailto:cfrg-leave@irtf.org>


[https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-green-avg-v1.png]<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
Virenfrei.www.avg.com<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>