Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp600121pxb; Tue, 5 Apr 2022 15:30:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjb3SaCVPUoRtnuTRn5Dm1ZFQf9n4p2oZfhxUYCbA6+wpBKU+5ALKxhz0jw5JGV1dKI1PC X-Received: by 2002:a17:903:2283:b0:156:3e9b:282b with SMTP id b3-20020a170903228300b001563e9b282bmr5720822plh.94.1649197849804; Tue, 05 Apr 2022 15:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649197849; cv=none; d=google.com; s=arc-20160816; b=Fd+MQT7l2ICTppv7+ALd0COydmlZBwCp1e5TKziYVpg7u+HYdfZ3OTIjp039qdq5WI MmsaV6SDP20nmU2w0Pmk3ohbsbdHBm+d73WHIFiYk0641Zuk/pRVTEL3b8OYPFAdP+EM 0UvD1x+i/ZPVLLXeTJDZjx1GHSx3nK1lu9BwiF/My6Ifhsr1oKUOn4rbzA9+M7wwfs3v IN/IejTY64EFamli4SkoCRYRHFEvPlrI5PmA4O62c3Swu3QD57qgZ30GazOPoaI7V2Lp 9tCq6ZsfoHFHAwBhM18XMmua3EEV3/R6+6vpiU+ZsABySVR/0/Lk4BkDSBYy/oArFFD7 3kYQ== 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=Cv577DhMIw/HY6vUwuHRQY8aaFTrnn1UFFFq5GAsaBdF/Af2HZltgGnwxmoFftEVuc AN2bFjkE2xE8mu0YPSN1Q0/bl25hcRpAOMtu73rs9qQlU1IeOLIj6t+nwM8NEeFfdq8W 8QJWR92AEkC4nLuD1kj/m7RXDEjL4fpT2vSFHWEFJv2yO5cVjSYi3xsYPyDeoghtaETu bj9c9iEYwqJ2AW2Awv5XpfbIon2EZedy3fCpbBypcgHo57AD6AkYcZLgamhS1uY8txWK D9ltFgRlVAe61Y4qNINXvsGqxFvd965klwcDFE9pmfoMfN6uYCkJEHudso/3VAN0x7l3 Yxmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0bx28xq6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w16-20020a1709026f1000b00156285b953esi13215391plk.506.2022.04.05.15.30.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 15:30:49 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0bx28xq6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 17B6015AAC8; Tue, 5 Apr 2022 15:12:42 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238734AbiDEPEB (ORCPT + 99 others); Tue, 5 Apr 2022 11:04:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345112AbiDEJnB (ORCPT ); Tue, 5 Apr 2022 05:43:01 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8949D6550; Tue, 5 Apr 2022 02:28:33 -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 ams.source.kernel.org (Postfix) with ESMTPS id 1209AB81CB8; Tue, 5 Apr 2022 09:28:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73139C385A6; Tue, 5 Apr 2022 09:28:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649150910; bh=dXBza7TD+YoPMa9zfIkCunjP9xDZ6gtzlNfgpEIYRcc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0bx28xq61BwuO9utTe+wFfhcBidoDaHRl7MpT3Dix7VFZ5m83exAclrEToQkxcfgG o3ECGZl7gPPnyAV8ZF9QnHQflrGc8GtMNERtGIkOj/87ZcPFZ+23CtwCPpE1LJUaDa wI5WtlHr3l2oAYT/t2Vs2AtUj/CHp/wVLTw5AK44= 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.15 208/913] crypto: rockchip - ECB does not need IV Date: Tue, 5 Apr 2022 09:21:10 +0200 Message-Id: <20220405070346.093524500@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 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