From patchwork Tue Mar 28 19:56:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Wanner X-Patchwork-Id: 13191492 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 B5024C6FD18 for ; Tue, 28 Mar 2023 19:57:18 +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=gpyl/451pzCty4zoQWGl41wEe4QBfD72TU+27CeBGcw=; b=X/PhxpmtoyT+Ul huWbw8N8PoJBl0EfQLc1EU+vYlNxtdVdUe8sAMxRn5lIOdn4zys6ucnsAe/T+63NJmJKxP8IY/WOY ekFPUGF4GXTnqATJ6uqfsgpZHH3c2xhkmDNx738A+/+lK0b41+hMpxEDrGHSeT0vmFpBolYfHHWPy J91RjnIq0TZ7TFBDrM+TSlTyLauvEiyG6B621pEPIa4wzuASxYZF6plSyOAQWyot8CmnRYLJMf70d dzyAaPjw48cAY8VC+V3CUYHyqnrdqI8WXO5+4kvgLtfrlX1pdYoCPcHbMMq08kQDGQU9CjhBYKjwR YxZVQWjWbHVaUpXA0yZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1phFQj-00Fhou-0c; Tue, 28 Mar 2023 19:56:29 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1phFQg-00FhnY-1V for linux-arm-kernel@lists.infradead.org; Tue, 28 Mar 2023 19:56:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1680033386; x=1711569386; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=2vY4XgONi5XF8GcYrGpxr6w0NAzTD8+jQb9Xq6HrBc4=; b=bMWFSLmqN/gXbCw01GW2zAMbAmYrI5r+YCkazNFNgpigkjmSfy7Sa2CH VTeBopckdBO3OVznhkLDcGVTG4YFsDPtqfBtbmIkWqwX7VKH01PNPNw9C IYNySiXTbnCHm3tu8VT+gUX1KAajPfrRiHeKK9NCRFWvVoVM8c0MiG8Fd kRZ9g3f5hC6k2iGGcY8U5BNuSTA6ztZOSvYrJy9Rv+AVt55Otwox0qaSM 3IWQ0ApSCePHQg5MAQO5Z1T1LmbwBOhLrOVI2FYDXFHYF61YiWWuA/tdj QhgkThTyfUR7AG1NwkYdu0Xo8Zn/MGNmN6EFd2BpCSypLKNPTN7uj+YFn A==; X-IronPort-AV: E=Sophos;i="5.98,297,1673938800"; d="scan'208";a="206741353" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Mar 2023 12:56:21 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 28 Mar 2023 12:56:21 -0700 Received: from ryan-Precision-3630-Tower.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Tue, 28 Mar 2023 12:56:21 -0700 From: To: , , , , CC: , , , Ryan Wanner Subject: [PATCH 0/4] Atmel crypto engine fixes Date: Tue, 28 Mar 2023 12:56:25 -0700 Message-ID: X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230328_125626_560002_B08B0528 X-CRM114-Status: UNSURE ( 7.84 ) 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 From: Ryan Wanner I made changes to the crypto engines to fix the errors in the crypto manager tests. Mainly having to do with in-place tests with two scatter lists. These are built and tested in 6.2.7 kernel, the devices that are used for testing is the sam9x60, sama7g5, and sama5d27_som1_ek. Adding support for zero-length messages for hmac-sha operations. Using the atmel_sha_fill_padding() function to padd the empty message manualy then disabling auto padding. This is built and tested on kernel 6.2.7 using sam9x60, sama7g5, and sama5d27_som1_ek. Ryan Wanner (4): crypto: atmel-sha: Add zero length message digest support for hmac crypto: atmel-tdes - Detecting in-place operations with two sg lists crypto: atmel-aes - Detecting in-place operations two sg lists crypto: atmel-aes - Match cfb block size with generic implementation drivers/crypto/atmel-aes.c | 16 +++++----------- drivers/crypto/atmel-sha.c | 34 ++++++++++++++++++++++++++++++---- drivers/crypto/atmel-tdes.c | 15 +++++---------- 3 files changed, 40 insertions(+), 25 deletions(-)