From patchwork Wed Dec 15 11:45:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 12696266 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1176EC433F5 for ; Wed, 15 Dec 2021 11:47:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :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=ClZdZ3X1mIdmAIO9qI08VZdcxR89noseAblHcxSbmOc=; b=2yugN8ewQOkgNJ F8WVIGY2aRdvmqDYQma6g7eKv8V8fZkQxtqTeuCYPpIEZ9ZhXBEYn+5tRax5cjn2pvr8ZuW9Rbuty LsYjC8zX8ZSxLQ1GoLEh1g8lw0kaoQlBuOmt6vuSmwthF0mVhnoiv0BSufPiH4huq42RZyAWQeqYh vkjoOPkaXd4D2g0vvhI/oH44P70/z2Mc39+1gptfEPM35LX/HmwvHyeK+/lrfoi2SJzd98h6HzqGW LfOf+EuijXFkzhZHE3ttzbTGhA5Dym9qt29E2ixZ2DaFGKw4yHszflXSIDTBstDianEgg8RrfJz6Y b6sB0H8VE3dDt98orRYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxSj8-000ddM-Ch; Wed, 15 Dec 2021 11:45:42 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxSj5-000dch-6X for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 11:45:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1639568739; x=1671104739; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=KU+hRdVySm5s0uHVi3dKg9v9GD2HE+bneHskT1rs1Pk=; b=q7mOJsksS7YAYH0R+9WJs042BMMMV/AKvbhrXPQ9QODNlHS8JRxuyytD oIl98M7Qfi59MwEcTO3EDG7bzrHr4hu2+LFPY0Erbul5d+rL3mIOPf8WL wQ/Nj/Is7NczLr1volnbc9ty7OmjiT094ichUu/zm5LzO6xFdPAIXTv0K Y91gisk75pFKMgQCVYRocXOz1MHKlpW4l/RSG40TQ2vIkeMGPPcRbSYYx YnyqDxkTlt2zjwvLnUBbD/7B+6+yF4bkFNn8YpZP8PVHjnZcNXKCCc53i mBRHRwApRXW4HdEqjn/RxV27ZEFdXWKaTnwi8rtHzF5V9E1FWAKhgjJJm g==; IronPort-SDR: f6NaQDcCr90bIDs6cMJCyWtOH26DX5ULUXOpWzgCVTr+9qDxaZUTdeM6fG5YUQ0HD0zVcLgMUR sSt0bZ+jbsyduETBCnw1frDJHTUlBzcMB4iFrPqAukFwbS5ryO5R71498lhf0Hp3QfTVQHcqfV FQXbgO22i9LffRyqK2xneMznousYpiaZYF5MSbRO3tyuPP810iltLoOJfjFNd49ZoY8MnOzF+6 1ki/LzW3pkpUiq7GajhVgVmFr/65q3TyICZwx6M+rltDi+GlQOfhars5qjudxfXb/p01mCTZc6 hQh+MTkfhXq/J2M9Hm0xld1O X-IronPort-AV: E=Sophos;i="5.88,207,1635231600"; d="scan'208";a="142488026" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Dec 2021 04:45:38 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 15 Dec 2021 04:45:37 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Wed, 15 Dec 2021 04:45:34 -0700 From: Tudor Ambarus To: CC: , , , , , , , , , Tudor Ambarus Subject: [PATCH v2] ARM: configs: at91: Enable crypto software implementations Date: Wed, 15 Dec 2021 13:45:32 +0200 Message-ID: <20211215114532.300118-1-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211215_034539_348551_46E74CC2 X-CRM114-Status: UNSURE ( 8.25 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable at least the same amount of algs as the hardware IPs are supporting so that they are able to fallback to the software implementations in case they need it. Signed-off-by: Tudor Ambarus --- v2: - add CONFIG_CRYPTO_HMAC - update commit message - ignore other non-crypto changes that are revealed with "make savedefconfig". arch/arm/configs/at91_dt_defconfig | 10 +++++++++- arch/arm/configs/sama5_defconfig | 9 +++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig index a6310c8abcc3..fe4838ea0bd1 100644 --- a/arch/arm/configs/at91_dt_defconfig +++ b/arch/arm/configs/at91_dt_defconfig @@ -216,7 +216,15 @@ CONFIG_NLS_CODEPAGE_437=y CONFIG_NLS_CODEPAGE_850=y CONFIG_NLS_ISO8859_1=y CONFIG_NLS_UTF8=y -CONFIG_CRYPTO_ECB=y +CONFIG_CRYPTO_CBC=y +CONFIG_CRYPTO_CFB=y +CONFIG_CRYPTO_OFB=y +CONFIG_CRYPTO_XTS=y +CONFIG_CRYPTO_HMAC=y +CONFIG_CRYPTO_MD5=y +CONFIG_CRYPTO_SHA1=y +CONFIG_CRYPTO_SHA512=y +CONFIG_CRYPTO_DES=y CONFIG_CRYPTO_USER_API_HASH=m CONFIG_CRYPTO_USER_API_SKCIPHER=m CONFIG_CRYPTO_DEV_ATMEL_AES=y diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index fe0d7ccc8fb2..eee67628e231 100644 --- a/arch/arm/configs/sama5_defconfig +++ b/arch/arm/configs/sama5_defconfig @@ -232,6 +232,15 @@ CONFIG_NLS_CODEPAGE_437=y CONFIG_NLS_CODEPAGE_850=y CONFIG_NLS_ISO8859_1=y CONFIG_NLS_UTF8=y +CONFIG_CRYPTO_CBC=y +CONFIG_CRYPTO_CFB=y +CONFIG_CRYPTO_OFB=y +CONFIG_CRYPTO_XTS=y +CONFIG_CRYPTO_HMAC=y +CONFIG_CRYPTO_MD5=y +CONFIG_CRYPTO_SHA1=y +CONFIG_CRYPTO_SHA512=y +CONFIG_CRYPTO_DES=y CONFIG_CRYPTO_USER_API_HASH=m CONFIG_CRYPTO_USER_API_SKCIPHER=m CONFIG_CRYPTO_DEV_ATMEL_AES=y