Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp327513pxb; Wed, 3 Feb 2021 06:37:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNrR5aRDSo1yoRa/wUPH96Hf2PhG31eKyxYAZJyhlUXP6sBrmFMvPYalyjvClEZBCQLLFL X-Received: by 2002:a17:906:5ac8:: with SMTP id x8mr3481759ejs.347.1612363022762; Wed, 03 Feb 2021 06:37:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612363022; cv=none; d=google.com; s=arc-20160816; b=DAP1QFk1CKzt87THxx+0USfpBFiZnhoPtP99YQa0KxRGrvmkjrD7Xwt5Vi73y9t8Cj pv2dPlExoYsuM7HTLsLEctapSyHSQmUAppDVycT8l6s6mAQLowB3sy0J9IEKZCVT2Xaq qWsJowb+bpGKisgHIExuguzOZb54J/WF5ErQNTJLpRWhyvSq+R334cqLLk/10rOxXj0o W/j7ujWLmfpFLVk2TqPHQm+hfzQcRLXElr6ZgDknNBsdWWpCsbvYDCadU6kMepIXAu7j Yur6cUBf5t042sTyJyOsVb1a8hiQ3ICeiM3c6Ombj6NIJVPHuyfkolRoE366yqtQ9zqB cwRw== 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=KjZ2FfLW1/QZmo1tCtVZh16jkU5d2sBI2rN7J1hvIYw=; b=Bw29hENcBJAbjBPGbcdTCQNRcfY+6ogVr2iP9iau0gmK7Emv8FoSH6ZhdyAjBuv6sM QmUiSrrP6oqHJZ2Gt5suilx+6mlocgWS4lrx7gnLVEc3QnEvEPwhzAYTAol4831QdiB7 XYPAmicCSoI50hvorAnOtkHvY/3HYTIFmTdzwcIMaFW/WZHYrPJxnRSC4EsIp6ZAVTKK hoLLEhnUs1fNxg/70Pm5/D26UmZ0a2l5+Os3qadJEZVsnc6fFZbIfkxaCQpq8xnTwl4C mXG5UBYpMBL4dNOsOJKsSXzA/oxtwpwz7QvtLGq4rDrnkv3+c+TG5gz7zP81NxF3v14l V2iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qAx/D5Bi"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r14si1373780edw.243.2021.02.03.06.36.38; Wed, 03 Feb 2021 06:37:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qAx/D5Bi"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233041AbhBCOfh (ORCPT + 99 others); Wed, 3 Feb 2021 09:35:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232725AbhBCOes (ORCPT ); Wed, 3 Feb 2021 09:34:48 -0500 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36B96C061351 for ; Wed, 3 Feb 2021 06:33:17 -0800 (PST) Received: by mail-qt1-x82c.google.com with SMTP id e11so30628qtg.6 for ; Wed, 03 Feb 2021 06:33:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KjZ2FfLW1/QZmo1tCtVZh16jkU5d2sBI2rN7J1hvIYw=; b=qAx/D5BiFOnHn97BwkyayC1pEdlp7lg77Shm0+zyftyMKEovfrABt1m7MxpP79jjje KPXkPgBjt/8U0iwg8lE/T2xE+Dg8QuAhVg/y4pkK0tCUVLamzZLRd578KdhzBlr2Pr4C puSlgFZfFMwbRyCF1ztVHI3blsfqH458We9sol4zp2Pca+ijbrZnCwHk8+aFJU/F5P2p TnJ2MDQ46kEpZdpwD/w+1a1uQ5gvXNE8GYISkqXswP7YbMJ2PW4jfj8dvV1mU4UyjyDb GlqLh0AK8LZpLGV+at6AesnQWxLCw1ZQRZRlpkRdZ3w7JigOo01gOLhl8IXEgyPm6uTC 1cWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KjZ2FfLW1/QZmo1tCtVZh16jkU5d2sBI2rN7J1hvIYw=; b=l8tsmZLBYjUQSr8XkLkY9BYtz7uYs7bySlKA9gLncfgaydWmBn5XV424I9tNlfqlEE tKjYTClZV0UC7rlkpqJ5DGfchBlRPAqNQxQ0lYIpoRcdkHTUV1h05RBZNlCVHvBq8hdk qjUKmwxcF/t5hrWPbWofHt2TesVMr2xRKcsV6XS3xIM2wu1lp0ABz+l+iCoI7k4B1Rsk SzIOGP1gnLMp8RQkitBfQGjuAq6ysfV9P9Sm37z6yR9m9aJPnqV40QxK585/RqRkwALb yXEAQ15I6YC/hlqaA+ZYeX1+kRsEhozvZXK/3GeXDRSxRj2xUqIVjt+NFxyLJcuUEzT3 CtGg== X-Gm-Message-State: AOAM531tGku2ebpKXk/5NjXCvC6DBsvU/YBWaWdMEfAnbmpoBVKUZ7cK VgJvOqR+VPzhMUbRw3/ea0KG4Q== X-Received: by 2002:ac8:5ac9:: with SMTP id d9mr2534250qtd.123.1612362796444; Wed, 03 Feb 2021 06:33:16 -0800 (PST) Received: from pop-os.fios-router.home (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.googlemail.com with ESMTPSA id v15sm1775433qkv.36.2021.02.03.06.33.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 06:33:15 -0800 (PST) From: Thara Gopinath To: herbert@gondor.apana.org.au, davem@davemloft.net, bjorn.andersson@linaro.org Cc: ebiggers@google.com, ardb@kernel.org, sivaprak@codeaurora.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 07/11] crypto: qce: skcipher: Set ivsize to 0 for ecb(aes) Date: Wed, 3 Feb 2021 09:33:03 -0500 Message-Id: <20210203143307.1351563-8-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210203143307.1351563-1-thara.gopinath@linaro.org> References: <20210203143307.1351563-1-thara.gopinath@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org ECB transformations do not have an IV and hence set the ivsize to 0 for ecb(aes). Signed-off-by: Thara Gopinath --- drivers/crypto/qce/skcipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/qce/skcipher.c b/drivers/crypto/qce/skcipher.c index 28bea9584c33..10e85b1fc0fd 100644 --- a/drivers/crypto/qce/skcipher.c +++ b/drivers/crypto/qce/skcipher.c @@ -356,7 +356,7 @@ static const struct qce_skcipher_def skcipher_def[] = { .name = "ecb(aes)", .drv_name = "ecb-aes-qce", .blocksize = AES_BLOCK_SIZE, - .ivsize = AES_BLOCK_SIZE, + .ivsize = 0, .min_keysize = AES_MIN_KEY_SIZE, .max_keysize = AES_MAX_KEY_SIZE, }, -- 2.25.1