Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1465231pxb; Thu, 4 Feb 2021 13:48:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKSIVp+pyeOAP1d1ILKC2rNgCAHCXFA17PcC+sJ/FyVF/i1MDPu+ILMH8ftb8T/ZwCrTD+ X-Received: by 2002:aa7:dc17:: with SMTP id b23mr601173edu.139.1612475319604; Thu, 04 Feb 2021 13:48:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612475319; cv=none; d=google.com; s=arc-20160816; b=N3PcPJ6DmO8pH20eH2v4L+zGK25X1jt4ci9Qv6ynXfde2lNy6ki+VBQj5a6SrnnWVb R6uSOOGswAVwSDbkYi9WrzLD51qKirnV3NgXJH4i/r9zaWa9XwZKNDcfLByTIZjrqsq0 AXEoSp4AuDikTaisLbrpgzNCQNrXe98J/jGaqbVHs0mUPwUTNls77oY1POAv+JtGv8n9 QOP6H1ncBi/QP4s/V/LvNZn4TEhucU2DYQcbwmhtBxCmM+f2sKVvcId1gYs2Z3AmRUUT UJjPbeENVn6iZtlfzWGf0MuJhG2C/N2LGNTbTf/VbyiD/qWfArsSGJZ344OI+ZNQvuS+ +DFw== 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=sQSE3bAeKjlOTGq1oGit7axnUHnSOgk06YLMYTqXhxwI1XeSdZDciU0W7Hx+v+eTtA 1Y6AcbBUzYqTQOX10AQPTKzXK/foAOTGzR+++iNzgXUACwabVqpSslkp8I2IQKUPA8IE SRdt2ySHkmGqpylBVeCVy1b1IdMOxSIxNjRlW7zJB6ebnD4dqEnPqM7se6JVNfUHT9HU Dzl2jC+mHeQc0Ykg2HKPlsFa+RY5e+wpE/SLsXsrhj7o8h6HCQvqCLccQIK8STBMhr9+ yO/7yJ8DRq55iXBsQ5E1/Ov5bhCOwBWlQFWMy93ZBisNEhlZfU08sAAN1eK8OKWJWEAL zN2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g5EgL9oK; 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 ox16si4034500ejb.449.2021.02.04.13.48.15; Thu, 04 Feb 2021 13:48:39 -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=g5EgL9oK; 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 S230098AbhBDVqO (ORCPT + 99 others); Thu, 4 Feb 2021 16:46:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230114AbhBDVp1 (ORCPT ); Thu, 4 Feb 2021 16:45:27 -0500 Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA970C06121C for ; Thu, 4 Feb 2021 13:44:07 -0800 (PST) Received: by mail-qv1-xf2a.google.com with SMTP id l11so2523440qvt.1 for ; Thu, 04 Feb 2021 13:44:07 -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=g5EgL9oKkFrP4qrDMqJXWuVtfqL+27lOlV4TwftWzdFlWpIMb6cY1CPR2U7M/CM8r7 EoCtl2w4xW5UovRh4KwzaRDDjowaeSougjpE0WSpQB1/7EVGEd4X0CI577NJkKIqbOdl i5/VH5hfpVECB5EUfIhpUtFXAqaUkR8VOTD3F+mtD2SyuMdVrNmvkGN+fs32lbJVtC/S FX3fC9rRsZ/C/7IcF+R9fxfCliW7b8InuPEypVnzhHv/n8UliqJgCPc3aqTmpNsSyvJd nO812hYm+e5ghRyx+XQtUBgc24kq63WR3lT6jMjS9vPR1ZpO7u9LD+4EGLA6dPo9KxLR VVpQ== 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=G4FNa8zM+ltIUome/jTaRw22G3iEMTHYMTo2XfZiLxfvUtP24wXLQwUdJpCI7bGq4t gsBuJjbfsnajDUhqbXCuZvHOaqacsN3S4NZG0IXitrTekpKmtVFS0yOydHSji6QMTKN9 x2A397V+gZeFE4+OGmxGrtJ8/uAXbAeWr3fInZwHNdy5Zj2lyn1z9ZQxnSCxboXw5TiV XClzwwmr7+Dit+opWtbWJGymj6VMHF8sRFFrJ+plbkaigjWCaq+QT8yAv6JIu3Kdn/G3 /o9hCfY5WKTWCMyEjGUixwNKyiqcR7LNaIKM/rJRD4ppGgzZEXVpmYkBu2yXufeMeThY +Ezw== X-Gm-Message-State: AOAM532LOXhIwSeGzQ4syOj0biCKWUAVq3aPLr3U+U8URHdaSDW8cawR e5atEyeUpTmAuD0rQ77j4vwNPQ== X-Received: by 2002:a0c:ffc5:: with SMTP id h5mr1622019qvv.48.1612475047129; Thu, 04 Feb 2021 13:44:07 -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 h185sm6353858qkd.122.2021.02.04.13.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 13:44:06 -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 v5 07/11] crypto: qce: skcipher: Set ivsize to 0 for ecb(aes) Date: Thu, 4 Feb 2021 16:43:55 -0500 Message-Id: <20210204214359.1993065-8-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210204214359.1993065-1-thara.gopinath@linaro.org> References: <20210204214359.1993065-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