From patchwork Tue Dec 15 16:59:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Salvaterra X-Patchwork-Id: 1416583 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=xXfh26+Z; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=qqVz4BCD; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CwPgb53cWz9s0b for ; Wed, 16 Dec 2020 04:02:03 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=bCX22MIu7PO5oAXzLBui3DSFR1XebossrztI+/vAj3Q=; b=xXfh26+ZTKyuV/Sk8c6wHwsztz qdQuxyE/Mmt5WRrX4gNGz2p7Zd81HaWnxVTmGxJ68mzV5Df21OSi3smEI3v1vT7WPinrrNP28NWcm Ff6pTziiImy5tx0o5AzH/GEyEUOu6EZ0p/8HdK1B0uJBzRLEPWf3frIDj+rKbl0VWxle2FSqwxmXn yWeQgPFNpX8Ersr7GqdNVYoSFXQZOu3PeBklIHkrmkYULpIY0eHnKAz6SQSB5NreMmurgdiA1XdS0 s2vZ7p6Xh7VBQ9h8GNNUWZyFYrGp7DehRy/14JuCaOWlC4OLf4E48LOdO6G/dDY7A+w3fWkLq/0q4 lUv1ASGQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kpDg3-0001WO-CP; Tue, 15 Dec 2020 16:59:55 +0000 Received: from mail-qv1-xf41.google.com ([2607:f8b0:4864:20::f41]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kpDg1-0001VE-3P for openwrt-devel@lists.openwrt.org; Tue, 15 Dec 2020 16:59:54 +0000 Received: by mail-qv1-xf41.google.com with SMTP id s6so9878557qvn.6 for ; Tue, 15 Dec 2020 08:59:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BA4O7heww7wKL+OIb+8/y2ibZimJQcwV3r0oED0jMn4=; b=qqVz4BCDhMFcFyGaR1ysFRNU52nR3ayVTo9KA7JrRYEMWknCMtmo4TXK/MR5172031 31lzqomagANGcAr2Vclshi1eIla2oIF3pk9fX+sUE7+3iuy6bQKQWK/aDgeZ4g0MTm+H h6XDvEdLa6urcXkGdmHLO8lnHbYscSw/YnK24Y/7vyPl9mGF7Ga99BUnxFwuFnAlxESm ZSwyf3WF3VLviCByrB9MuxrwauBTxgPIu4gEM3mp0OBvdvrbWDVrUVLFh6E40K8hFFII bI9LSQUagV1YMSfjC4zzTEvKELWvSwE0pCPD6M9WZzwhfBbt3Npn6Qqz7SyclvyYoLlk FBfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BA4O7heww7wKL+OIb+8/y2ibZimJQcwV3r0oED0jMn4=; b=YM4B6Pie1U5dMl8ErZXQceSY9vxVrxXROuvABj7rVKzey9yQq2w2bWCpmKh/RJgrTj LWgVYQVWsM39EVnj37KjBX0SpHyHXF0Jc+aAmiPdIsJN8QBfiGYyP+VV5N1A11MT9clH nC2K/JvowCdab/kLJ1C+naQL0eUmy1+6CcxK0/5CZmeLOHxe3kaxtW9o5EyZNS/xF25X vFbSeSD/NHgw+p2wLBNKpceAb8yRGHP34oUi1x0muJAU7oSWIkv4HBSqizd1421zqtfB josk8I722nOjxSiHWVi95TILF6VrJTK9QbuI9/xk8nh5NjMiD/dAm4nsVhVJGvICigBQ n6Hw== X-Gm-Message-State: AOAM533d8Hs+TUj/IMmK5XLZNhH8Q4qHQaXoDOs7H80yd8xADHfyZxfi 7Nn2tlHUpPt8sjSGpbVpmmWYDlHjcA== X-Google-Smtp-Source: ABdhPJxb5z+UFmTGXcwLZR6q+rkXODn/kx1zIm/z5vcoESwa/4UNHGZuMPlB57i/SO/BlOHOYoTImA== X-Received: by 2002:a0c:e6e7:: with SMTP id m7mr39648290qvn.11.1608051590270; Tue, 15 Dec 2020 08:59:50 -0800 (PST) Received: from presler.lan (a95-94-74-213.cpe.netcabo.pt. [95.94.74.213]) by smtp.gmail.com with ESMTPSA id n9sm16110388qti.75.2020.12.15.08.59.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 08:59:49 -0800 (PST) From: Rui Salvaterra To: openwrt-devel@lists.openwrt.org Subject: [PATCH v4 0/3] dropbear: overhaul the crypto algorithm selection Date: Tue, 15 Dec 2020 16:59:39 +0000 Message-Id: <20201215165942.2194-1-rsalvaterra@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201215_115953_179914_BE02E45F X-CRM114-Status: GOOD ( 10.10 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:f41 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rsalvaterra[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rui Salvaterra Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org This patch series enables a much more fine-grained configuration of the public key, encryption and key exchange algorithms in Dropbear. v4: rebase against current master. v3: rebase against current master. v2: correct file permissions. Rui Salvaterra (3): dropbear: create a submenu for public key algorithms dropbear: create a submenu for encryption algorithms dropbear: create a submenu for key exchange algorithms package/network/services/dropbear/Config.in | 65 +++++++++++++++++-- package/network/services/dropbear/Makefile | 28 ++++++-- .../dropbear/files/dropbear.failsafe.ecc | 8 +++ .../dropbear/files/dropbear.failsafe.ed25519 | 8 +++ ...ropbear.failsafe => dropbear.failsafe.rsa} | 0 ...nkey-fix-use-of-rsa-sha2-256-pubkeys.patch | 12 +++- 6 files changed, 105 insertions(+), 16 deletions(-) create mode 100644 package/network/services/dropbear/files/dropbear.failsafe.ecc create mode 100644 package/network/services/dropbear/files/dropbear.failsafe.ed25519 rename package/network/services/dropbear/files/{dropbear.failsafe => dropbear.failsafe.rsa} (100%) mode change 100755 => 100644