Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4898441rwl; Tue, 28 Mar 2023 12:58:07 -0700 (PDT) X-Google-Smtp-Source: AKy350ZLwEhe54YM9gkLknmhKDv19rTx8+PNtH1BV3OqkY6yLBfzpa77S6OtMRhyalAOclnW1KJ/ X-Received: by 2002:a17:902:d1d2:b0:1a1:a706:5df3 with SMTP id g18-20020a170902d1d200b001a1a7065df3mr14054452plb.15.1680033486955; Tue, 28 Mar 2023 12:58:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680033486; cv=none; d=google.com; s=arc-20160816; b=XXFPUJSXpzrajIOu1+go2GDicmyrZJp0mwPz3W0rERe2gvF6rGFbrSDfcYS/i/cV7N MuL7X70O/O9FSDq9jgBzX36WG4GPBCGrPFDxEiUIbj16p6MAiEDo+famkf7WcoamhVa0 /b770tdY30hD8C+xz3VQD+jlZC8nzRSUXlKEVNqudoKETiHJnnT5hHeXx0BuBwPhquyw Pl1fEZPyZtAbSnKTVSSwglbcpR2G2ThC/AoalhSZmej0mbeb8hNvVa9rVza1uRrPdFaY vOGqa3rEDRP0whqRP2t8+ytCTnEdbd66L8gdlNiD1KQJfz0Te3QuP26UEk5mnM8iNC3i F5QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=EZFNOKYampGNk9lD5o9/KcZv2yIvB5XPCAlz4oJHUDc=; b=Wv1qV0nKmDQmnOzJMgsW2Q8nHGxl+Paw9BYVAAUTxYfaGcrwp/spd4aKi3wwO2+r3m C6DfzIZ7As/jDnEkhWTUWLVY7fmSkxeesoXoAk+NtS34kcVHuM5OSvtQeOiNQ+1+YmvK XF6O5uGY3euwbg47BbpL2CdMXq7uZxlVmDpk7nVrh5C8eLBbYaVG1/8/WUIStSbjaXoT uW3XWk11UrYnpZWXJaTN1juUf79vjgDYgzUI6KZ2VUxXxmkF7kMoPpbSwBXUdY7P+3+K +1G4CllL+WiQBjK3TbBcrsl4VU3ARC8+JAm6QibR9kjzn/nheTJGx09D8CcO+qQzHL+j 6aSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=SLxwH7fb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k17-20020a63d111000000b0050b3064cd60si28872888pgg.416.2023.03.28.12.57.52; Tue, 28 Mar 2023 12:58:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=SLxwH7fb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229651AbjC1T4Y (ORCPT + 99 others); Tue, 28 Mar 2023 15:56:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjC1T4X (ORCPT ); Tue, 28 Mar 2023 15:56:23 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F8DD1BE1; Tue, 28 Mar 2023 12:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1680033382; x=1711569382; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=2vY4XgONi5XF8GcYrGpxr6w0NAzTD8+jQb9Xq6HrBc4=; b=SLxwH7fb7L0pAnzwQ5mTCDM+WZ4SFOK2f2xo72OEhd4kQlnV3Eb1kIhw WUFg3+iU3LoiVFwwmVw2gae2xOHlX4nvJW3f5of8zvbKgFus3ynXQZ/Tw ScfyQtfFFDrx6eYBGH84XkTMmVfIqmpR7l/YlvsFggzhtlj3sJxwWxb7C oBmLcRwoQFEhu+MgwAUQVp2I+6Ob0xjmreBd/JT21h+Nv98b95YXUjY+0 G6ivwj9NAZyYGtiwptu/xoJLM4uF0nBqNcqSmayT3XxMpM5xNC9YRGnfT vZE74azw9VPzHO4q5DSQS+LbdClV4M62bepORP4QZ1nH2+fmgDm6hOHey 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(-) -- 2.37.2