From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GAzAJbqnF2NXJwEAbAwnHQ (envelope-from ) for ; Tue, 06 Sep 2022 22:04:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KHW1JbqnF2PjLQAAauVa8A (envelope-from ) for ; Tue, 06 Sep 2022 22:04:10 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E3C315A54 for ; Tue, 6 Sep 2022 22:04:09 +0200 (CEST) Received: from localhost ([::1]:40206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVenp-0001KI-3M for larch@yhetil.org; Tue, 06 Sep 2022 16:04:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVeni-0001I8-Bi for bug-guix@gnu.org; Tue, 06 Sep 2022 16:04:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35843) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVeni-0002NY-2G for bug-guix@gnu.org; Tue, 06 Sep 2022 16:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVenh-0008SH-MQ for bug-guix@gnu.org; Tue, 06 Sep 2022 16:04:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57576: bug#57599: [PATCH] openpgp: Add support for ECDSA with NIST curves. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 06 Sep 2022 20:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57576 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos Cc: 57576@debbugs.gnu.org, 57599@debbugs.gnu.org, Zhu Zihao , Andreas Enge Received: via spool by 57576-submit@debbugs.gnu.org id=B57576.166249459632423 (code B ref 57576); Tue, 06 Sep 2022 20:04:01 +0000 Received: (at 57576) by debbugs.gnu.org; 6 Sep 2022 20:03:16 +0000 Received: from localhost ([127.0.0.1]:52773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVemx-0008Qq-JF for submit@debbugs.gnu.org; Tue, 06 Sep 2022 16:03:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVemt-0008QV-BE; Tue, 06 Sep 2022 16:03:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVemi-000255-S8; Tue, 06 Sep 2022 16:03:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=FI/Hw+31raAZJzl9Vtvb4jXJ/pU4+vp6FW1MIMkBhDA=; b=ZW6WF9JNLx0S5sI/srNt UFSRb+n/ay+g1kAHRzUXsSOOaNpFZMdzdGVRCZ/2lS+NnQv3XWomC8e5+ko0SXVQVrhbNVHeZZQMk GBHNIIO2rmmYb8XFXPDX5Kpv4AYCXwsi+NyixRvMA4tpZdiCZYX5XSLbNfTPZD1k5+2+bFKu1x2Ih piJHZ63yfSxHrUNHuahfN5UJW1q1vdMv+5oV+UV03YZOVX2h+564zDd8apl8WxA45DCDKysgUZ8oT wU1hw9YMZlkjJ1D9VzYKcmbKymTBz4/8CYc1nEZKJUgAHYT9wYuAErJlUP7NteIUWq+grECZaaZFl rAUdqwmz6FMbsQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:59166 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVemg-00077x-Cv; Tue, 06 Sep 2022 16:03:00 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87r10p3ixi.fsf@gnu.org> <20220905160929.21742-1-ludo@gnu.org> <8735d4zpcf.fsf_-_@gnu.org> <4b1f50af-9694-1439-2223-e9ef5ba7ecec@telenet.be> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: =?UTF-8?Q?D=C3=A9cadi?= 20 Fructidor an 230 de la =?UTF-8?Q?R=C3=A9volution,?= jour de la Hotte X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 06 Sep 2022 22:02:55 +0200 In-Reply-To: <4b1f50af-9694-1439-2223-e9ef5ba7ecec@telenet.be> (Maxime Devos's message of "Tue, 6 Sep 2022 18:10:15 +0200") Message-ID: <87sfl4tgnk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662494650; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=FI/Hw+31raAZJzl9Vtvb4jXJ/pU4+vp6FW1MIMkBhDA=; b=nnYWiM0gIMxPRs95zISNMg7MFXvlHGfOfbkjrh58LzxxeUl50QVgcb/Q6UuaRUfGsbHKUn gCnOXVP1bjB3ZjaYPRl/T8DGmlVT3z4wygj4pEyh43ss9TI2LvcJY4f+wVuSGjqquNI05h vZrTBbwwT3rdqly3z7NCarMVFFDJ5jfm5kPKwICWLQgnWMvVQZmlfgjcZWSoWNynRL9S22 nr4X/mViI0cPpmfZLsVMBKDG/xLQXZhEb3K2pQfCKKQ/Xoc4a5tn02h4DOPhj8Yod6VdCT xNJ0oJ6DG/0GGsiKy0JfQyXbVwlnS/cKfInkR9wdsn3uEX1Cf5Y21UeT5lrFcA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662494650; a=rsa-sha256; cv=none; b=YMfqY5k1ZX3Albyzk9l09K4mEQj7XA6Q1jjU90GaNoav1z5crlLiky8GyYyEN55L0udk3h JuFozKhyJXkmorDGN54aPIzjLYcqU9xXW5ZF4rnZsGiYr/MxGPLAC1CJbqQvkboqJSB8Sc +ov1SzQXwpQI1y+b7lTCKzKZhS+D8fbv51ZmLc9OIqXu+ANRJeC2SGisXueWV5sBoJ6T2j yJO38kay2NXF1WGci8YL0tQtsDcPbWi0KpMAS9nY9S8CJPstkFhKITd99s/kKO0U8WBzFT zkoFonovWWN+1nc8dIay+KT6G5PoSS9lziyGUf2cRtgBDo82j4/l4linkIKO/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=ZW6WF9JN; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=ZW6WF9JN; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E3C315A54 X-Spam-Score: -2.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: mdawkBzO+3rE Hi, (Cc=E2=80=99ing Andreas for extra advice.) Maxime Devos skribis: > We disallow signing with SHA-1, because it is known to be vulnerable > and as there are alternatives that are considered good, even if this > limits what users can do with their OpenPGP keys. Right, we know it=E2=80=99s affordable to break SHA-1 these days. > In case of those curves, I'm not aware of any 'crytopgraphic proof' > (*) that the curves are vulnerable (unlike for SHA-1), but as noted in > =C2=B9 and elsewhere, there are other kinds of evidence that something is > wrong. It=E2=80=99s different from SHA-1 though: ECDSA is not known to be vulnerab= le, and AIUI we can=E2=80=99t tell that there=E2=80=99s a possibility NIST/NSA = has a backdoor as is the case for DualEC. However, the whole NIST design process is tainted. So my understanding is that it=E2=80=99s really a gray area. > Except for the different nature of the evidence of vulnerability, it > seems about the same situation to me. As such, I don't think we should > support them (some nice error messages like 'This algorithm [...] is > not supported yet=E2=80=99 or =E2=80=98This algorithm [...] is (likely/kn= own to be) > vulnerable=E2=80=99 would be good though!). Yes, that we can improve. :-) > An alternative option would be to allow the channel > .guix-authorization (of the previous commits, not the commit that is > about to be verified!) to decide what's considered a 'good algorithm' > (with some defaults) (with a field). Maybe we'll have to deprecate, > say, RSA or SHA-3 eventually, it would be nice to have a migration > method in place as early as possible, to minimise the risk of some > people doing a "guix pull" from a Guix that does not support that > field to a Guix or other channel that _does_ use that field. It=E2=80=99s tempting, but I=E2=80=99d rather avoid introducing such mechan= isms to keep things as simple as possible. Thanks, Ludo=E2=80=99.