From patchwork Tue Oct 16 23:08:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rosen Penev X-Patchwork-Id: 985033 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="jHWsEpIW"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mtf354n0"; 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 42ZWHn0c2lz9s47 for ; Wed, 17 Oct 2018 10:10:28 +1100 (AEDT) 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date: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=lQFS1+krQ8DdhrXhN685CGyzkzy8yLaCrgmu3+aqnSI=; b=jHWsEpIW8bs7S0 AepbpoDFQHSpPNI9vH877m9P26M9UMUZvsG5wS0U+uH7NbpirKyD9ydmgmjstB2fn1xb6WnDRwK+4 1I6XNBN5HtPOPkgsI3rJGWRffOc29dDN889LZiytvTKDMIA12fo+lGPlth/+tnct+dGO8AIhrMnpG BXx8G6Nmxi2zDMyyv6SfHtDk41i6vEdyvScm+9qIIKKZCwqbbkXkUkeOG1QQnOAAl4imkEbRKGeUI tFv+TRY0WD/NWfexbMsxGf1VSEDghrROGD0c4GlarcGfizTOq+drMtrcXCjrv6nwmXU6YWlp3Kp49 g8m1EtZQe6LEOicYq0cQ==; 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 1gCYTf-0006hz-85; Tue, 16 Oct 2018 23:10:15 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCYTP-0006eG-Q1 for openwrt-devel@lists.openwrt.org; Tue, 16 Oct 2018 23:10:01 +0000 Received: by mail-pl1-x642.google.com with SMTP id 30-v6so11699050plb.10 for ; Tue, 16 Oct 2018 16:09:48 -0700 (PDT) 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=UaQaHAk5ktFoyAXQWdmug4aQoGcb0/GbHpz6Na6mPuI=; b=mtf354n0gPhGCs3s/mt1MAunT0HcqnHu0mqfVdkreTvJmnIm8LOQMHi/YUvKf/pgyo 9MWBHI9SRAC6VNhbRoxph6gTzGp4JuAVCAgdNgjvU6F5O1gvO3oKMyUcgnJmYX9mL0oD CbSMuZdxSWR05nWHM+9+T2psVVMy91vf3DfLD8x55dHHTnkLzDJN+sfPwK/mTpI7E7n4 IArMSZOe4B0o/ED1yA+4bpHAtW+WpMbOW5LZ7tLy3124isbQP9hMpQ7RPMBrxUuBXQNa 5gClC/9T/4zzmp0kah5leL1dIabTZRbSsBYaSyhc1XzOy9Guoac4yX+dsrUTez0OQqTi lxmg== 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=UaQaHAk5ktFoyAXQWdmug4aQoGcb0/GbHpz6Na6mPuI=; b=OQp85SFPVaqpbEK22OHulvnEbSyLkJp7W+YfJ27gi2ISArNCovADb+bfnjXNumenNT 9RpBp42dBy+ZolN54BcN9lbOeJRsVa1tfxlzuiS0vM4SWL500w0I2qJe1gL/zJlkViWO eS8m5lq3OvJ5MRL2uib4enwXMFCD1hwyvfWPO9Bsi8tTfTJza8ChHk/hQFWAe2VgQiB5 dqYBVpX4KzaV7GWrHfwj/eP3LORs8y1m8806rJpteKDai4/K+J8K+/rOvfPWnhBXWPJw RvzEaEnecBwuLfyOApcixaUnK4zC6NIq4BGcAuvL9wNzZIp7nJsr2Y9vjJWzUDUxrGB7 28DQ== X-Gm-Message-State: ABuFfojcn7NioM7TA9v7rZMHw9DA2m4xpSLbJWFQzwK/QAhjZHatWnel P7tHafufm00/im/znan0/bK+zx1r X-Google-Smtp-Source: ACcGV61gvssseE+pew8Fm8NKuK/u9FHunTxJcpqLoppN/1/nGvXSMvBrG0o2RZX87TzyJQb0WZcChA== X-Received: by 2002:a17:902:654e:: with SMTP id d14-v6mr23337698pln.292.1539731387215; Tue, 16 Oct 2018 16:09:47 -0700 (PDT) Received: from desktop.lan (astound-69-42-16-32.ca.astound.net. [69.42.16.32]) by smtp.gmail.com with ESMTPSA id a14-v6sm18123815pgi.75.2018.10.16.16.09.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Oct 2018 16:09:46 -0700 (PDT) From: Rosen Penev To: openwrt-devel@lists.openwrt.org Date: Tue, 16 Oct 2018 16:08:18 -0700 Message-Id: <20181016230818.4295-1-rosenp@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181016_160959_850694_7F8ACD63 X-CRM114-Status: UNSURE ( 7.58 ) 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 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:642 listed in] [list.dnswl.org] 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_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_SIGNED Message has a DKIM or DK signature, not necessarily valid 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: , Cc: Rosen Penev 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)