From patchwork Wed Feb 3 14:33:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 375421 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp390036jah; Wed, 3 Feb 2021 06:36:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyH0H1TVYJtzcCDBI43BVRUX/Dr22DKOcWU9Bejx4a7GrF44k3Z2DM6aJSYUBk7TkRGkuvf X-Received: by 2002:aa7:c2c7:: with SMTP id m7mr3250602edp.134.1612363011507; Wed, 03 Feb 2021 06:36:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612363011; cv=none; d=google.com; s=arc-20160816; b=t8miYVpmt3V49h3OmkQcX6+T5Y2QDxSqQGsjzoxpUFGHljsPP5uhyATJ3UB02jwe+j wMJjh3MmcRV9hE7RUlXn0/LKITvgoHlPPK3wjFcIM8+Tif/1cT0Jl1K+WPa3jyJaG3O+ aM+4PXQAqTyecWNG91q0s90t3Cpe1ZHKjMEZyVmDN2EUhAwD23WDZIGxdl8Yg31p1+v3 1AtgwDmFlpXm1Y/VWTYayIknK5b3mN5qZzBoPVg5xZHXtqwgGNESe4AGfWXbeZBBk0oN WHly7FQBnPB65zgFGe8pbi1nE68bpi25aU8t78M2UhkscmAHMwezDpweJ2darfk6VySU Ox8w== 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 y16si647906edq.174.2021.02.03.06.36.51; Wed, 03 Feb 2021 06:36:51 -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 + 2 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 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(-) -- 2.25.1 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, },