From patchwork Fri Jul 24 14:29:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1335766 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=none (p=none dis=none) header.from=true.cz 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=L0Rv/UMi; 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 4BCs7s1Sxtz9sSy for ; Sat, 25 Jul 2020 00:31:05 +1000 (AEST) 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=GEF8vDShSbsHUOsvz46R+6S6wabo9hOxupuTgL6uLG8=; b=L0Rv/UMiDBxmrasnBAoN6QsHdK Kl7NlrfQgzsesow3oXyP2PG9qiY93C5y5QrBq2UabWn3r53Ps95zVaA3gYlZ24ZaXtleftBDOduCL adR5upU9vE3Xq2OIPiQv8U9ZBPKhGEN6gNcHPp42BJH0/9kDqL24S6v6aG4KpOxlP2nQwo5rUtCcw WGBViEwSq8kSVviGC8V/4eHbrlRLnQRU/30pE7f+HFKWgqTDYEcFedlJJITgLJ3tMqa5pbWvb9vtW Qq+/+VOpWb/yic1GudT43EPNFRWdrqs1wIDi4ahDDb4SMOXnrMMZUjY52fIFrxSjlaLD4nqM9529s Rmkp0bzA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyyhu-0002DW-A7; Fri, 24 Jul 2020 14:29:54 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyyhq-0002C6-TX for openwrt-devel@lists.openwrt.org; Fri, 24 Jul 2020 14:29:52 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 3FC1018F64; Fri, 24 Jul 2020 16:29:46 +0200 (CEST) Received: by meh.true.cz (OpenSMTPD) with ESMTP id 0b526568; Fri, 24 Jul 2020 16:29:28 +0200 (CEST) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Subject: [PATCH 0/3] Support TLS/SSL and WPA3-Personal/SAE by default Date: Fri, 24 Jul 2020 16:29:37 +0200 Message-Id: <20200724142940.5264-1-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200724_102951_303667_A0E67C4E X-CRM114-Status: UNSURE ( 7.52 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 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: =?utf-8?q?Petr_=C5=A0tetiar?= Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Hi, it has been discussed several times and some of core developers would like to include SSL/TLS and WPA3-Personal/SAE support in the next release as we've dropped support for 4/32M devices officialy with 19.07 and it's time to move on and improve the default security features in official images. wolfSSL and mbed TLS were pre-selected as possible crypto libraries due to the size. mbed TLS currently lacks support in hostapd so I went with wolfSSL for the start. In order to keep the size as small as possible I've created `wpad-basic-wolfssl` variant of currently shipped `wpad-basic` package which just adds support for SAE. I've tested the patchset on my Rambutan board with `sae` and `sae-mixed` encryption settings against my Android 10 phone and installed random package with opkg over HTTPS. Size comparison of openwrt-ath79-nand-8dev_rambutan-squashfs-factory.bin: 5373952 bytes for wolfSSL enabled image 5111808 bytes for current image as of r13926-f94b09867d ------- 262144 bytes is difference I think, that those numbers are not that bad if you consider that the following patchset adds ca-certificates, libustream-wolfssl, libwolfssl and wpad-basic-wolfssl into default packages. Cheers, Petr Petr Štetiar (3): hostapd: add wpad-basic-wolfssl variant treewide: use wpad-basic-wolfssl as default treewide: switch to HTTPS by default README | 2 +- include/target.mk | 8 +- include/version.mk | 2 +- package/network/services/hostapd/Config.in | 2 + package/network/services/hostapd/Makefile | 20 +++ target/linux/apm821xx/image/sata.mk | 2 +- target/linux/apm821xx/nand/target.mk | 2 +- .../apm821xx/sata/profiles/00-default.mk | 2 +- target/linux/ar71xx/generic/target.mk | 2 +- target/linux/ar71xx/image/generic.mk | 4 +- target/linux/ar71xx/mikrotik/target.mk | 2 +- target/linux/ar71xx/nand/target.mk | 2 +- .../arc770/generic/profiles/00-default.mk | 2 +- .../archs38/generic/profiles/00-default.mk | 2 +- target/linux/ath79/generic/target.mk | 2 +- target/linux/ath79/image/generic.mk | 2 +- target/linux/ath79/mikrotik/target.mk | 2 +- target/linux/ath79/nand/target.mk | 2 +- target/linux/bcm27xx/image/Makefile | 8 +- .../generic/profiles/101-Broadcom-wl.mk | 2 +- .../generic/profiles/105-Broadcom-none.mk | 2 +- .../generic/profiles/201-Broadcom-b44-wl.mk | 2 +- .../generic/profiles/205-Broadcom-b44-none.mk | 2 +- .../generic/profiles/211-Broadcom-tg3-wl.mk | 2 +- .../generic/profiles/215-Broadcom-tg3-none.mk | 2 +- .../generic/profiles/221-Broadcom-bgmac-wl.mk | 2 +- .../profiles/225-Broadcom-bgmac-none.mk | 2 +- .../bcm47xx/generic/profiles/PS-1208MFG.mk | 2 +- target/linux/bcm47xx/generic/target.mk | 2 +- .../mips74k/profiles/102-Broadcom-wl.mk | 2 +- .../mips74k/profiles/103-Broadcom-none.mk | 2 +- target/linux/bcm47xx/mips74k/target.mk | 2 +- target/linux/bcm53xx/image/Makefile | 2 +- target/linux/bcm63xx/image/Makefile | 10 +- target/linux/bcm63xx/profiles/default.mk | 2 +- target/linux/cns3xxx/Makefile | 2 +- target/linux/ipq40xx/Makefile | 2 +- target/linux/ipq806x/Makefile | 2 +- target/linux/kirkwood/image/Makefile | 6 +- target/linux/kirkwood/profiles/00-default.mk | 2 +- target/linux/lantiq/image/ar9.mk | 18 +-- target/linux/lantiq/image/danube.mk | 24 ++-- target/linux/lantiq/image/tp-link.mk | 8 +- target/linux/lantiq/image/vr9.mk | 30 ++--- target/linux/lantiq/image/xway_legacy.mk | 2 +- target/linux/malta/Makefile | 2 +- target/linux/mediatek/mt7622/target.mk | 2 +- target/linux/mpc85xx/Makefile | 2 +- target/linux/mvebu/image/cortexa9.mk | 4 +- target/linux/omap/profiles/00-default.mk | 2 +- target/linux/oxnas/image/ox820.mk | 2 +- target/linux/ramips/image/mt7620.mk | 2 +- target/linux/ramips/image/mt7621.mk | 124 +++++++++--------- target/linux/ramips/mt7620/target.mk | 2 +- target/linux/ramips/mt76x8/target.mk | 2 +- target/linux/rb532/Makefile | 2 +- target/linux/sunxi/image/cortexa7.mk | 8 +- target/linux/sunxi/profiles/00-default.mk | 2 +- target/linux/uml/Makefile | 2 +- 59 files changed, 195 insertions(+), 169 deletions(-)