From patchwork Sat Sep 22 00:46:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rosen Penev X-Patchwork-Id: 973514 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.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; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WETiP9S1"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="U6/Mg4fR"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42HBdP1FsWz9sBv for ; Sat, 22 Sep 2018 10:47:35 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id:Date:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=P7/ix9ou+KFAJokiQ4EZuqWOpGBg7dbLhW7eZ9jYom4=; b=WETiP9S1cDcfj5 Ic17ZhmXQf9+m069H9sNK2EZl2jdQ5lU5IOaoGCb4WmhQ1kP3oSlTTgsvL6PO80bCAuj/kVNRWakh rop/JdtHGe9UT1Vgvuo54+j/G6SGPxK+UKXQ7LP+tTQ/oDrjwzMzN9mUuZJl9+Y5aQ+DPF9+ik1jp ngQ3mfGB3x7mmG5hs+OjctzmMCsQ3YumiW4Vb3IGFjzbl5UBVcOBkT6Mi2p0XdvZdEYimAZbkCxNn TNcBthbztdOqkfDibZ3H+j1GXXe7lqH9BPvxSL0xSYE0UeVwiFMfNp4iN9+dnnswSTwhGoSVAfmI9 BOqe8PgE1OXnzp2ZtkMg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g3W4s-00006G-7x; Sat, 22 Sep 2018 00:47:18 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g3W4o-00005K-0C for openwrt-devel@lists.openwrt.org; Sat, 22 Sep 2018 00:47:15 +0000 Received: by mail-pg1-x542.google.com with SMTP id y18-v6so3456731pge.0 for ; Fri, 21 Sep 2018 17:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=OLxojcD2R+X3ggASaYpY13mui6YwO60d38ZOCQpdLiE=; b=U6/Mg4fRjq+822m4WhK6AtII3rXDNozkSZaRbFP94AhjsSJh4z0LL7ZpDHXl2VzfPi 2dfzJJ1AhDg70SzvQ484b7yp84UXT/VAk63dEL0cJu5MVE2C/sGuMmWo1y4Zy7jzbiYW RmNastL0kvlaSe9x4K8Zc+HaK+2rCFfFHVVLAjdwqTIZngYy9vJZQi0UZ4VLNgvBC285 Fgur7oIpO9oxz+wnalzES0Pzp25gI1ykteU1gwNWPDyfd/+hulj/+XnkOv8P2AbngcHD LWSyG3+RZG2XkE/0e8xqp3kotPQyHQ0HwvJAWavYEPHVyZ5fglZXBANFfPoTM0eLpjFd CKZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=OLxojcD2R+X3ggASaYpY13mui6YwO60d38ZOCQpdLiE=; b=h25d+3Gg7w46XJd0wMG52nu8OoaW9GTqF+wYN3HYLc214h1D7uTtFOYZhIwSXRX57+ Zp8lvXERbgLqI48pShX+zbKNHFCQALXtqWRu/GLygwpvEbuWkt9q6AoHLTNh9n4tUX7q MxaYbpja1ZNHJg7N8BqT/qUwnrKbDt3h1hm9lSy89uWrAgCDRpoE2tyXSkSmvFn2wblY 392NKOJsNYkPgEfD75Sp0GudkOLkzqr5LwF/XoYIHhjsqGpNVX6GgaZ78kzOXUia0dfK CrWZ1L1UdUXkqtSran7FPT8ambyAT+eh1P32A8tcGxOFmZW+UN8k3vGDkDH9eOfz+u2W cqAA== X-Gm-Message-State: APzg51AYWLqsjIxCkAchiJ/rEL4p8zG41Dvia2Im08c4H4DNI/baxwGX fsObtd5LeKGJqdbJP5CfKuTbgSI2 X-Google-Smtp-Source: ANB0VdbZrnbLbOqUQyQDFer7e0H6atoeDNUuL8Z1LB2EPTGHmuGOlfspOiJ/xycxs3JpcHgbmsbSwA== X-Received: by 2002:a62:1219:: with SMTP id a25-v6mr213685pfj.104.1537577221443; Fri, 21 Sep 2018 17:47:01 -0700 (PDT) Received: from clevo-mangix.lan (astound-69-42-16-32.ca.astound.net. [69.42.16.32]) by smtp.gmail.com with ESMTPSA id h20-v6sm31806308pgg.3.2018.09.21.17.47.00 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Sep 2018 17:47:00 -0700 (PDT) From: Rosen Penev To: openwrt-devel@lists.openwrt.org Date: Fri, 21 Sep 2018 17:46:59 -0700 Message-Id: <20180922004659.2638-1-rosenp@gmail.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180921_174714_045518_6F9E0A8F X-CRM114-Status: UNSURE ( 7.67 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rosenp[at]gmail.com) -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_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:542 listed in] [list.dnswl.org] Subject: [OpenWrt-Devel] [PATCH] kernel: Add AEAD and RNG support to kmod-crypto-user X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org This breaks compatibility with kernel 3.18, but as that is more or less abandoned at this point, it should be fine. Tested on Turris Omnia. Signed-off-by: Rosen Penev --- package/kernel/linux/modules/crypto.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk index 235e6dadac..613059f823 100644 --- a/package/kernel/linux/modules/crypto.mk +++ b/package/kernel/linux/modules/crypto.mk @@ -709,11 +709,15 @@ define KernelPackage/crypto-user DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager KCONFIG:= \ CONFIG_CRYPTO_USER_API \ + CONFIG_CRYPTO_USER_API_AEAD \ CONFIG_CRYPTO_USER_API_HASH \ + CONFIG_CRYPTO_USER_API_RNG \ CONFIG_CRYPTO_USER_API_SKCIPHER FILES:= \ $(LINUX_DIR)/crypto/af_alg.ko \ + $(LINUX_DIR)/crypto/algif_aead.ko \ $(LINUX_DIR)/crypto/algif_hash.ko \ + $(LINUX_DIR)/crypto/algif_rng.ko \ $(LINUX_DIR)/crypto/algif_skcipher.ko AUTOLOAD:=$(call AutoLoad,09,af_alg algif_hash algif_skcipher) $(call AddDepends/crypto)