From patchwork Mon May 2 20:19:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 568806 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C756C433F5 for ; Mon, 2 May 2022 20:19:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387282AbiEBUXM (ORCPT ); Mon, 2 May 2022 16:23:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352110AbiEBUXM (ORCPT ); Mon, 2 May 2022 16:23:12 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4959EDF21 for ; Mon, 2 May 2022 13:19:41 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id i5so20855799wrc.13 for ; Mon, 02 May 2022 13:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gHQq/HbsAlHHV5dqqwIj84YLck22Yu9PAMCyZC7DDlg=; b=LhY6QwHdTM8sO/y2wOJB+t3eHiBsNzak+h83Hp4m1J1hvq8ai83m8COBHL6j7pk4++ lUxqqs0i53dp7mv9Lwl9FGd6WdMFi+W2ao0Arx56y6kr8ZwBcqYVwkFvIZ1JM3zrVPx9 NXgwPejXSwFqFXpyvn38xsn0QiDAYpQkc8+O/3q8Sf+Vg4LOzjQyppokaset9TCI9WXy 99PTZiBAsrye6OPHbuW28pUBewwxLmxHAfdnIMUUWNiZOJPHoBD+9zdtMpPBy1wpge9D clJEPuF8TPSHJePDPmKXWasUEVE8i5rTDXSXSJeNTy3HG+tz3IgDe8BeZOaEf58D6AWm 5BIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gHQq/HbsAlHHV5dqqwIj84YLck22Yu9PAMCyZC7DDlg=; b=mTgj4ttpCw6pIkskoDDgYNO/BcqRKhZAxjDBXprYri6Ot2KGtMeUyZfxSaUzjq3HNm PxJRnTkwyPPDG6IpJNQDJSxSuS9R0tRf5lVmgo1eWg/36dTW/eTdui/J/Sz930soBH7e sn5uwGqRLSegZkE7WqPmNU4OBM5zNJwkA4grHdo5LVrGJr0+1ykach8NkJGz63B2i/ed eySqvm1M2VEs0wElT58cw+4kT+eeQqUiLWUig0Ak8KoZrw1J+nEXJitOJ2BJLgmV3aze NYacGLQYq1U2OOoOYx5YRQF+wqT5GiqgyNvLaeeEtwOUZnpHE4U++grvnjYtIvYzQodY kEgg== X-Gm-Message-State: AOAM531naS8xlIZUru0NeuE447+A64OjBFyi33xIXa/2/R8Ye2zJQI8B USv4xVGk7ggu2G8jFvbjTH9/kA== X-Google-Smtp-Source: ABdhPJyE44hLvQer5Bbx+kYLVwMvd9SshPAUhOsXy+EXdn+wzgYlCJsdPJrr9y/rc/y9ZXR2/xn2ow== X-Received: by 2002:adf:d1c9:0:b0:203:c4f8:dd17 with SMTP id b9-20020adfd1c9000000b00203c4f8dd17mr10464782wrd.633.1651522779746; Mon, 02 May 2022 13:19:39 -0700 (PDT) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id l2-20020adfb102000000b0020c547f75easm7238183wra.101.2022.05.02.13.19.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 13:19:39 -0700 (PDT) From: Corentin Labbe To: herbert@gondor.apana.org.au, jernej.skrabec@gmail.com, samuel@sholland.org, wens@csie.org Cc: linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Corentin Labbe Subject: [PATCH v2 00/19] crypto: allwinner: lots of fixes Date: Mon, 2 May 2022 20:19:10 +0000 Message-Id: <20220502201929.843194-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hello This series is all fixes which I found on allwinner crypto drivers. Regards Change since v1: - fixed endianess of hash_pad() paramaters Corentin Labbe (19): crypto: sun8i-ce: Fix minor style issue crypto: sun8i-ce: do not allocate memory when handling requests crypto: sun4i-ss: do not allocate backup IV on requests crypto: sun8i-ss: rework handling of IV crypto: sun8i-ss: handle zero sized sg crypto: sun8i-ss: remove redundant test crypto: sun8i-ss: test error before assigning crypto: sun8i-ss: use sg_nents_for_len crypto: sun8i-ss: do not allocate memory when handling hash requests crypto: sun8i-ss: do not zeroize all pad crypto: sun8i-ss: handle requests if last block is not modulo 64 crypto: sun8i-ss: rework debugging crypto: sun8i-ss: Add function for handling hash padding crypto: sun8i-ss: add hmac(sha1) crypto: sun8i-ss: do not fallback if cryptlen is less than sg length crypto: sun8i-ce: Add function for handling hash padding crypto: sun8i-ce: use sg_nents_for_len crypto: sun8i-ce: rework debugging crypto: sun8i-ce: do not fallback if cryptlen is less than sg length .../allwinner/sun4i-ss/sun4i-ss-cipher.c | 22 +- drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h | 1 + .../allwinner/sun8i-ce/sun8i-ce-cipher.c | 102 +++-- .../crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 54 ++- .../crypto/allwinner/sun8i-ce/sun8i-ce-hash.c | 130 ++++-- drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h | 19 +- .../allwinner/sun8i-ss/sun8i-ss-cipher.c | 180 +++++--- .../crypto/allwinner/sun8i-ss/sun8i-ss-core.c | 92 ++++- .../crypto/allwinner/sun8i-ss/sun8i-ss-hash.c | 385 +++++++++++++++--- drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h | 33 +- 10 files changed, 767 insertions(+), 251 deletions(-)