Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1681775pxp; Thu, 17 Mar 2022 14:24:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzT+2o+7jDEyhlE2IaeOxjSEbH6w0R9COkg2nwXgf4VqSVef7Y9AjtkvU/1Ts7loUNSrchx X-Received: by 2002:a17:903:41c8:b0:153:c17d:caa3 with SMTP id u8-20020a17090341c800b00153c17dcaa3mr6557874ple.109.1647552259498; Thu, 17 Mar 2022 14:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647552259; cv=none; d=google.com; s=arc-20160816; b=EHaQ9U39PUUORd1x48CCphWKmW5/NSwcvBd4zceXutKEQ507w8yd6ZBi49WjYJ/F8a G1tFmQLFQ1HxECb+2Da7xmrD1wYr071F3gi9OFaUOhKUXSlQKIYimzj+ohQZYS1AVAih rdo980kQMuUj0/lLM4fgvJBcLgBAK5g0yVrTyGrg9fUtBQ7DpLEg6rZhpcpvqCvahqQT Oxl4nEFTHpa0ozFG8UPYSEgcNOOJyjLx56808T9nW2yUhdjp24F/PYs/FFxoAABev800 pNHv05e2RIi5cjIrXjadWQrE02WDf2YPyJL/cX7uAn2+3sh8fgzo+fMy5+OFNNqeDHZc R1gQ== 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=xxLigyYubLEfmpzYjesUYMDr681KbgpjvGFg62V3uuo=; b=jGo+dzaHJzATQqxzt4cyvkJli2wXFsFDZ72EJDldMYmigL2D9EflWxRNlhxUuXj16x bA8Br0W79bES0buU3DKoQthBWxOxTA978nS7B12UKXVE0GX5ANQYSV2yGUIJkE7KGHwu 6oRl67NFJjY3rchxztmLUv+r0XjtUGneWHDGOIWWbicspX0mgFsZvDGG3ekGNqlRGWNa W1eDMt0QdLN2NZmqVCsP9jbGnf6MmUFVfwjrb26ghDc+CxS51KvGZM/Mn2YAFVmLfhR1 6soTGW1s1dRVNnzLPcMm7r3IFfYvSyRYCNN0BN9pgHoRDFBvQkr9Yq7VBVS/6CXhmI5Q KSBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=q43mTTbn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j15-20020a056a00174f00b004f3fe0661casi6199612pfc.126.2022.03.17.14.24.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 14:24:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=q43mTTbn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8C0D914A6DE; Thu, 17 Mar 2022 13:56:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229980AbiCQU5e (ORCPT + 99 others); Thu, 17 Mar 2022 16:57:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbiCQU5c (ORCPT ); Thu, 17 Mar 2022 16:57:32 -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 EF08A154055 for ; Thu, 17 Mar 2022 13:56:12 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id p9so8981795wra.12 for ; Thu, 17 Mar 2022 13:56:12 -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=xxLigyYubLEfmpzYjesUYMDr681KbgpjvGFg62V3uuo=; b=q43mTTbnckKvjJEG6SpmkOL75jCyN+O53AbqkF2sH5XMTWnKY3PtwkqyaFIEcLXBim 3a5P9Yat03SsVCxysdY+Vius+9jF0kAGvK2I/n8oARjFd3FY/RlfrpMJhteTpo/lMTsb Mn0St1xk/mewvcj3k7LJsveBJuz9x+Y2D+9NDvVegPO0tuByXsWqKUec8lQof/z9+E6n hrEjrRVUcIeUQ6ZtwLDDoFLlisG/7IFWts55uGoEIvY/8CKvEv4ZJZvPu0PniNQhSGRp uPLSb+EBMMR8u5Q3XBqaRUKhL0Y5QN/kudoZl5PEJWeEJC/l+kGAbUjl52UsF3pgIr0+ Lmxg== 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=xxLigyYubLEfmpzYjesUYMDr681KbgpjvGFg62V3uuo=; b=W1bj6ZsRVzjAR9CmFX4GOlgNFbAzNQjP1EiuTjND7iScciQ9CVqdFA+rigbTT9aZF/ 2GGZnHGNOG6ljNmRQDcuXai065VhH//xc728C/jrfsQJFmsoUDPG81B0i7GvYyrGP9lj 9PIR8Uu0/tQsvTN8WIZgWiMeFC7QNm3+VBRsq4DmNd4PrBnAEFtxXoexcTLSO40p2Xgk kbCjiPnMg8hk7GYrMdDkZRdAAI6HHlz1t2/uRkWoMPOHCPWOnsXv9VzPtJoGbMltUPm4 1CeG0vQycHvBQ+r1KZR6oL6JWq+xxTcXlRwaVFoN/lWjSRECWqknM1Q04PASFSaN2e7E qE6Q== X-Gm-Message-State: AOAM5327Sh7jAAhZ0WUWM3VX6yH4bL1PtAcg7HXuSrWC/nSTaaEx3l6A 8DwBLNc8y1fXAzzN+YyX8OuLrg== X-Received: by 2002:adf:9581:0:b0:1ed:c341:4ed1 with SMTP id p1-20020adf9581000000b001edc3414ed1mr5616024wrp.299.1647550571570; Thu, 17 Mar 2022 13:56:11 -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 r4-20020a05600c35c400b00389f368cf1esm3695424wmq.40.2022.03.17.13.56.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 13:56:11 -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 00/19] crypto: allwinner: lots of fixes Date: Thu, 17 Mar 2022 20:55:46 +0000 Message-Id: <20220317205605.3924836-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hello This series is all fixes which I found on allwinner crypto drivers. Regards 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(-) -- 2.34.1