Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp684940pxb; Tue, 5 Apr 2022 18:42:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGXs4iu1VrJJGSuThB+++oKY4Wdv/UYZ1wVcciZQnAGNuVMHSV0Hptr4UqOuFWeGmYZwch X-Received: by 2002:a17:90b:4b0e:b0:1c6:f499:1cc9 with SMTP id lx14-20020a17090b4b0e00b001c6f4991cc9mr7373665pjb.133.1649209374808; Tue, 05 Apr 2022 18:42:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649209374; cv=none; d=google.com; s=arc-20160816; b=nRm07qtSWkkxf+MdYHn1JYU4Zvg6pIAYb9Qn8Ypc0+ugBFRe4KIDSyAXKCchQAf7M1 qDP+29ervrIksCngPbaRtxsuBjEdU6jccn2n6/2qYN6zSfL9DJuW0d6dYKgU7AnjdrBR 8j7uzlGSOXtYRrU+gP6oXSpnSpOzWmRjpcSoqe3wb56bRXEdZ4wdCr9J6j55nbI3Padu 1NkdGWal+oKoizsyh99+Zr9e5VbyRIinGdq4PPqK9xPJnBGmZiGvfceAJ4WTLSzvyG5j 84IE2UijmmjFXAfR/umvbf/talQTGCCIMX00pKkubeGXn5c5wpbDlhaZ2882BhFZVydp 4qfw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=J2+2WhD3xvpn5T2h532c1is03S4VJpIkjcTLea1e/3Y=; b=Jq+fVVq7lyfI8ZGtRbBT5D5clqGiBxdw0+nQ4U4BpV47aoBPSi+8K3Me/SxD6gVW5V 3K9BaqGz1NQPQO05Er7DZKYIXMEYtvc3Gh2ozp0zkeKCUBJ54SWvs2oF68/An9wguP0D lAv0/ZCz99AT9+WQaiNI6BglW7cQPZSPfMa7bL3az/Rgx/+wSeYQGN6sP44SgkeYID7c 5MThJFqaWpc6rnOXomv73dDbQMLER4J51MzqEVZPX7IJTz2e3j6Hbrs7YGKF280lgmGi 8BbgYhROJ56egMWmdtq2O8N8l186weE5Gvhv0IQceKW6smnDENhoGW/ZezVoh0B4fNDD +duw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R5FGJKi0; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a17090332cc00b00154a3b5d927si15483958plr.512.2022.04.05.18.42.38; Tue, 05 Apr 2022 18:42:54 -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=@linuxfoundation.org header.s=korg header.b=R5FGJKi0; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349912AbiDELgb (ORCPT + 99 others); Tue, 5 Apr 2022 07:36:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244703AbiDEIwe (ORCPT ); Tue, 5 Apr 2022 04:52:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 978C617E3E; Tue, 5 Apr 2022 01:42:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1E150614E4; Tue, 5 Apr 2022 08:42:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DE83C385A0; Tue, 5 Apr 2022 08:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148138; bh=dXBza7TD+YoPMa9zfIkCunjP9xDZ6gtzlNfgpEIYRcc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R5FGJKi0LjHfyoVkjNjXgF3YqZh9XSHTHVo+29NOoZw4zswMUy4xwhwMVRf30gS9Q HzFs0mVQJ/9ozSwWv1xxRKJnApdNJMx81B8qbyRKbUNTBy/UVdp+CIgf+9C17JpWeG 5G3JahzvG4tFaUtKrEcb4aO44re/DqTf5a8fyj84= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Corentin Labbe , Herbert Xu , Sasha Levin Subject: [PATCH 5.16 0221/1017] crypto: rockchip - ECB does not need IV Date: Tue, 5 Apr 2022 09:18:54 +0200 Message-Id: <20220405070400.811754616@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: Corentin Labbe [ Upstream commit 973d74e93820d99d8ea203882631c76edab699c9 ] When loading rockchip crypto module, testmgr complains that ivsize of ecb-des3-ede-rk is not the same than generic implementation. In fact ECB does not use an IV. Fixes: ce0183cb6464b ("crypto: rockchip - switch to skcipher API") Signed-off-by: Corentin Labbe Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/rockchip/rk3288_crypto_skcipher.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/rockchip/rk3288_crypto_skcipher.c b/drivers/crypto/rockchip/rk3288_crypto_skcipher.c index 1cece1a7d3f0..5bbf0d2722e1 100644 --- a/drivers/crypto/rockchip/rk3288_crypto_skcipher.c +++ b/drivers/crypto/rockchip/rk3288_crypto_skcipher.c @@ -506,7 +506,6 @@ struct rk_crypto_tmp rk_ecb_des3_ede_alg = { .exit = rk_ablk_exit_tfm, .min_keysize = DES3_EDE_KEY_SIZE, .max_keysize = DES3_EDE_KEY_SIZE, - .ivsize = DES_BLOCK_SIZE, .setkey = rk_tdes_setkey, .encrypt = rk_des3_ede_ecb_encrypt, .decrypt = rk_des3_ede_ecb_decrypt, -- 2.34.1