Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8023137ybi; Thu, 6 Jun 2019 05:33:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0TDmTGyBv/N8ADFAmAO9qWICpJeSWvCdR6E7DJdhq+xQwjlz2VGcVpafyQ+tymlr8eXeS X-Received: by 2002:a17:902:b18c:: with SMTP id s12mr48353219plr.181.1559824407882; Thu, 06 Jun 2019 05:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559824407; cv=none; d=google.com; s=arc-20160816; b=WcSRqO3m288rJWSTZfGjZtRO0gH3uktI4cVmS9FJq/joTg+bt8uPZSwbgljSsXUd/I 7pouUfvuOUDrtkIEoKmdsRWtY7ywl2bdV+zen737es03OyQDwkGq/UeHSxuFtZU9O+5/ T9t6CWR/yQlGDJk+fdx3XCAS/Of/k2BDPglQ1mHxpM9QMscANb0C/8bd4vhs7vn/aQbz 8GVANLVXQfLbKG5c8nEVwBB3rdEhnnHr7aXsvsWTqd5nfSIfntzG7LFGTDEF8g0ybQXo Zj+F7B5pHePpJ5qoOGhKAYaNhZ+ndBQJhPmPpvp7Y1VQXF17fqH8XvNBHpUA4xnB023V bhJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id:dkim-signature; bh=bVMoYWyQICOMlL2QkFxnCi9wjRbBPraJGKScL5u/bVE=; b=hAV8S/UC9Z2aTEUrGUAK0I4ptwdHt+OqY8qeKDOJkfhXhy9I057iv+g6+ce2Jx+dJg gnUuekX8pPc4NYhrMmzul+3S+YZxQXbNtyWMqrfnn3Vd4PMMaijx2+z8upjVg70qy/dU NtHMfGM7F5OFyuJEVlsxzTGh63h7ZaLHyBEocQ5KM6WmfqBv2zuhuM20QX+tUFJjb1rx WUIceG6ISWxHidp5Gswor6zKQteHHSUL4rYQPQUsDVAgp2CzTCNYFHO4zsuuRF1THGBg a9WCS3OA4sO0c9d8NaHXrzNCH7GoG6tZJbjTbcMEzY/mL0pVqRk/jgzhImU0BdBuGZVa NJtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=tIR3HCgn; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10si1762483pjr.102.2019.06.06.05.33.12; Thu, 06 Jun 2019 05:33:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=tIR3HCgn; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728502AbfFFLbj (ORCPT + 99 others); Thu, 6 Jun 2019 07:31:39 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:27676 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727585AbfFFLbi (ORCPT ); Thu, 6 Jun 2019 07:31:38 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 45KNlq4950zB09ZJ; Thu, 6 Jun 2019 13:31:35 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=tIR3HCgn; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id Odj_122aIE3k; Thu, 6 Jun 2019 13:31:35 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 45KNlq38Z6zB09ZF; Thu, 6 Jun 2019 13:31:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1559820695; bh=bVMoYWyQICOMlL2QkFxnCi9wjRbBPraJGKScL5u/bVE=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=tIR3HCgnhEFXYKSkZdPCmw/J6nCMvhuOO7RJhBL/av3/YRh+JTc87NeL/Cw1YiPt3 WjFAdm3IHEgfVplUU3St8WYPQUBbdWavtsNl/jRC90S8LTsHCr4drbRBFBvXFX+0gS +zFliIJaoHMWFr0mPg2EK0N1voNsOEx5MOtItvEg= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id AF6118B894; Thu, 6 Jun 2019 13:31:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 8LQ2xbHuZrdK; Thu, 6 Jun 2019 13:31:36 +0200 (CEST) Received: from po16838vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 856528B891; Thu, 6 Jun 2019 13:31:36 +0200 (CEST) Received: by po16838vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 6218568CFD; Thu, 6 Jun 2019 11:31:36 +0000 (UTC) Message-Id: In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v1 1/5] crypto: talitos - fix ECB and CBC algs ivsize To: Herbert Xu , "David S. Miller" , horia.geanta@nxp.com Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 6 Jun 2019 11:31:36 +0000 (UTC) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org commit d84cc9c9524e ("crypto: talitos - fix ECB algs ivsize") wrongly modified CBC algs ivsize instead of ECB aggs ivsize. This restore the CBC algs original ivsize of removes ECB's ones. Signed-off-by: Christophe Leroy Fixes: d84cc9c9524e ("crypto: talitos - fix ECB algs ivsize") --- drivers/crypto/talitos.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index 122ec6c85446..3b3e99f1cddb 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -2753,7 +2753,6 @@ static struct talitos_alg_template driver_algs[] = { .cra_ablkcipher = { .min_keysize = AES_MIN_KEY_SIZE, .max_keysize = AES_MAX_KEY_SIZE, - .ivsize = AES_BLOCK_SIZE, .setkey = ablkcipher_aes_setkey, } }, @@ -2770,6 +2769,7 @@ static struct talitos_alg_template driver_algs[] = { .cra_ablkcipher = { .min_keysize = AES_MIN_KEY_SIZE, .max_keysize = AES_MAX_KEY_SIZE, + .ivsize = AES_BLOCK_SIZE, .setkey = ablkcipher_aes_setkey, } }, @@ -2805,7 +2805,6 @@ static struct talitos_alg_template driver_algs[] = { .cra_ablkcipher = { .min_keysize = DES_KEY_SIZE, .max_keysize = DES_KEY_SIZE, - .ivsize = DES_BLOCK_SIZE, .setkey = ablkcipher_des_setkey, } }, @@ -2822,6 +2821,7 @@ static struct talitos_alg_template driver_algs[] = { .cra_ablkcipher = { .min_keysize = DES_KEY_SIZE, .max_keysize = DES_KEY_SIZE, + .ivsize = DES_BLOCK_SIZE, .setkey = ablkcipher_des_setkey, } }, @@ -2839,7 +2839,6 @@ static struct talitos_alg_template driver_algs[] = { .cra_ablkcipher = { .min_keysize = DES3_EDE_KEY_SIZE, .max_keysize = DES3_EDE_KEY_SIZE, - .ivsize = DES3_EDE_BLOCK_SIZE, .setkey = ablkcipher_des3_setkey, } }, @@ -2857,6 +2856,7 @@ static struct talitos_alg_template driver_algs[] = { .cra_ablkcipher = { .min_keysize = DES3_EDE_KEY_SIZE, .max_keysize = DES3_EDE_KEY_SIZE, + .ivsize = DES3_EDE_BLOCK_SIZE, .setkey = ablkcipher_des3_setkey, } }, -- 2.13.3