Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2836796rdh; Sun, 26 Nov 2023 23:08:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHAGvoDz1EnyvFKsMji5Uuz6xhnOzR96umfwETkBVEipRSi3pKCkoDX5oUeZAwp0CFHsOeF X-Received: by 2002:a17:90b:3846:b0:27d:6d9c:6959 with SMTP id nl6-20020a17090b384600b0027d6d9c6959mr8528490pjb.25.1701068883071; Sun, 26 Nov 2023 23:08:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701068883; cv=none; d=google.com; s=arc-20160816; b=JP4rXAF6eA6IOjEvgsmwWqMaB0Kc95P4hRwxMespZgQv4JwVGBGWFUP1+vXhKGmqp3 Zbtl17b04LS/vAv5hH6g6HU1TSeGPigNFh0bZWEXZa/85jt6gnn1W85mP5ioxmoiq4ab m6B8NEAhnWy7CXfgiRDjHb9KcUDtqRQJ4HQFfvtNEQe1zJvUtMpnEq2MwgCuaFV2jmlc F9cayJ0hPvg7LhYf6KZmt8kp+B6bKUvKsyxIPNyKujW7pYzM3RR3nuB2xPnNUilV8MuH wTRQGUmfbMoqNjtGNJA+VQnI+napD0SuIcugl9mfzPPZbTDG5akwqqSNtMySixJkRPH7 x55Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=I9NcydlPjJuZdBvk47SliSWRPXO51iH+ClRWgIXdngI=; fh=EdrkxR6/0cUzdeRoIO4nQ0kc+YBaYAptqDtNOny9eFo=; b=jXNKOmFBnbU1kteJuNqODDP4Szqr+lTMQ7Dmy/D2SOgOYhRkCeDuO7kxBYZV9FlP+d OeObxzKxdvORc2nQL8AAwB2LqTNKaggob6BLIlfIQ5Rybe+5zozhFeMHo6hGJKbrPBUD YKmkz1TOytkq3j559fNCEuAPQUS9hSAr6tmNbd4chGyUagZ6NMecpcWEPnmNakCxzZyG E/TJGno+3N03w0tDhbge03hAn7Y8m6YAlZ2shqHH2cXlyiOtN3uZsFIxIOfMZzmRtv3v oOf/wdsP/EGORYwdZTX2P6Yi1ZXSucs5B53gGiUAGh3OelGdEiRkW2ZJ1oQTzma2kpZF PB+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=R3bGiBJy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id g7-20020a17090a4b0700b002851017a187si9037714pjh.162.2023.11.26.23.08.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 23:08:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=R3bGiBJy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id C92DD803B355; Sun, 26 Nov 2023 23:08:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232414AbjK0HHc (ORCPT + 99 others); Mon, 27 Nov 2023 02:07:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232405AbjK0HHZ (ORCPT ); Mon, 27 Nov 2023 02:07:25 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D937B1A6 for ; Sun, 26 Nov 2023 23:07:28 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1cfc3f50504so6123445ad.3 for ; Sun, 26 Nov 2023 23:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1701068848; x=1701673648; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=I9NcydlPjJuZdBvk47SliSWRPXO51iH+ClRWgIXdngI=; b=R3bGiBJyq+uYPEskiMD2ig1vN6/rcwG2a45RUwH5v8t+GhKBASiJ2KCfoRAn8QERwB Fwjs7IIY/oCs9P1Eafo/z/2qRS1WfEXf7i210aFCLEDdvsIyNEh2DNin+8kvlzQer6OX 2M31tXupx7SV+Vk4A7EoPk1pd4hi8K8Xz0T6nxvjeGZk/8oV+5tF2GlstIaMZ2RsLMTY bDMXAcsqi5GJY8zab1zE4JaC+pdDFrQeYIb274LosuLyjt66+OddRoUGLI4ru4y4mR0k tKiamBKph5O4/sifbbYhaIAcjnXWMxdbn726u8JcDt/QzMCnVllmoRHWmiNIYFFGEomz MHGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701068848; x=1701673648; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=I9NcydlPjJuZdBvk47SliSWRPXO51iH+ClRWgIXdngI=; b=je29FcBaHiCmdrc8u5zGxbe7OvpyhuL3vKeX6NXVMFkQq9HUsUOec7L40802+jjFSs UUTE+/sJyqgrTI71D3mnTc6bSSMYfx5+QON/MN2ejomQ8hJ5qQuxzbNcYr3G3j6Wik8E EBJSGq5lmhun/DCWnnAD/L8k08RROHES1HmbxPWCNDdS83+aP/WQEoPkfIVdi7597af+ ig3AIxGXscZy48KuKA0N1dMZ7y4+sxYzYLuQVwzCXltk2ko3wruOpq8MaAeRdAnP/BFx Pr12094Ln1JIbEQspC2BIw/hpftpcn8xmRPlm1mbIy0S5P2oB4s6HZV1Cpkya3So9qV6 rafw== X-Gm-Message-State: AOJu0YzBjT1y51K0wK/gpsK/y4FMyCEzJyE6ooGkFHpbkTvvEqOfp8OP gTcEhthU+3wfdgkVGkgdwoj6+g== X-Received: by 2002:a17:903:1d1:b0:1cf:d58b:da39 with SMTP id e17-20020a17090301d100b001cfd58bda39mr1135943plh.64.1701068848370; Sun, 26 Nov 2023 23:07:28 -0800 (PST) Received: from localhost.localdomain ([101.10.45.230]) by smtp.gmail.com with ESMTPSA id jh15-20020a170903328f00b001cfcd3a764esm1340134plb.77.2023.11.26.23.07.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Nov 2023 23:07:28 -0800 (PST) From: Jerry Shih To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, herbert@gondor.apana.org.au, davem@davemloft.net, conor.dooley@microchip.com, ebiggers@kernel.org, ardb@kernel.org Cc: heiko@sntech.de, phoebe.chen@sifive.com, hongrong.hsu@sifive.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Subject: [PATCH v2 05/13] crypto: simd - Update `walksize` in simd skcipher Date: Mon, 27 Nov 2023 15:06:55 +0800 Message-Id: <20231127070703.1697-6-jerry.shih@sifive.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20231127070703.1697-1-jerry.shih@sifive.com> References: <20231127070703.1697-1-jerry.shih@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sun, 26 Nov 2023 23:08:01 -0800 (PST) The `walksize` assignment is missed in simd skcipher. Signed-off-by: Jerry Shih --- crypto/cryptd.c | 1 + crypto/simd.c | 1 + 2 files changed, 2 insertions(+) diff --git a/crypto/cryptd.c b/crypto/cryptd.c index bbcc368b6a55..253d13504ccb 100644 --- a/crypto/cryptd.c +++ b/crypto/cryptd.c @@ -405,6 +405,7 @@ static int cryptd_create_skcipher(struct crypto_template *tmpl, (alg->base.cra_flags & CRYPTO_ALG_INTERNAL); inst->alg.ivsize = crypto_skcipher_alg_ivsize(alg); inst->alg.chunksize = crypto_skcipher_alg_chunksize(alg); + inst->alg.walksize = crypto_skcipher_alg_walksize(alg); inst->alg.min_keysize = crypto_skcipher_alg_min_keysize(alg); inst->alg.max_keysize = crypto_skcipher_alg_max_keysize(alg); diff --git a/crypto/simd.c b/crypto/simd.c index edaa479a1ec5..ea0caabf90f1 100644 --- a/crypto/simd.c +++ b/crypto/simd.c @@ -181,6 +181,7 @@ struct simd_skcipher_alg *simd_skcipher_create_compat(const char *algname, alg->ivsize = ialg->ivsize; alg->chunksize = ialg->chunksize; + alg->walksize = ialg->walksize; alg->min_keysize = ialg->min_keysize; alg->max_keysize = ialg->max_keysize; -- 2.28.0