Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3358637pxb; Sun, 7 Feb 2021 06:43:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGjkDLU0SB81Nv3Xy2sb3NecHHPnvu7KzX5Gy61HlEVJcdi5/CraessEGvC3uvT8gpmXBL X-Received: by 2002:a17:906:6407:: with SMTP id d7mr12700187ejm.133.1612709023450; Sun, 07 Feb 2021 06:43:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612709023; cv=none; d=google.com; s=arc-20160816; b=es1BwlLDof8wGGKzwoQAdAQSB1mwHfD4AFrDsBaV+hdLV18ra3HsIthavVr9VrgPX5 +Kgfer5iojslb+r8EpCwrQzmHgbGH1Mr0uF7Kd6lCY4f/m71FpuWDe9oam2AAPVRZCC7 TiQZ3jHHTRJgJfOPvta14dJyuo4wUQsH83yC2vjrGf64Ek0BjP/GFGp2H654kAaTha8+ 3GubDvkjd7TD7hrSKOURVamU438I/LJzN9qRp73lM3MgYUll5LBHeANZoTUSrKIyfswl 8dR4yI0d4N/7vw/YF4Rh1Fa3SJ+In6g897PHnLqPRS8BZYxN2eiQfkNIMqS/eU8FMrqJ yDCQ== 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=aBCNw2sBGbDAVprr4vYeHsYbO7AgbkLvqbpGnAY2zpA=; b=RdhMgzj3TPfipYSovcfcupRO/PsPF/c2s6WykOnuuv4r1fj9L32b3zKNTJsZj1UBQY 945D56AH1KUk5i5iKRj/N3CQux2lNs4ACav5D887TsGsV/vWbo2W/OgCNuWq7/6duHib Bn7l0mjHjbC83mfMSkqNvEAhVL7xGUfQbIfNFJoFQfR+mEBkURlEoQc7QIIYOEFwFZuQ hsIdFwDhh5DMFvWtC9pIWRxDjDDuQ34ImNpLQWTtVlViQRKV6BbyPZJFymbIBHGBz27O PlpZCYcMKy3USVRS0Wbm1X8V96//5qusN3eYTPIoNQg7aaG29pw2l6ZTKEMbg7Lr47mY NI3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eQIjWXsR; 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 c15si8878101ejr.124.2021.02.07.06.43.19; Sun, 07 Feb 2021 06:43:43 -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=eQIjWXsR; 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 S229979AbhBGOlt (ORCPT + 99 others); Sun, 7 Feb 2021 09:41:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbhBGOl2 (ORCPT ); Sun, 7 Feb 2021 09:41:28 -0500 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 238E7C06121C for ; Sun, 7 Feb 2021 06:39:55 -0800 (PST) Received: by mail-qv1-xf36.google.com with SMTP id h21so5824859qvb.8 for ; Sun, 07 Feb 2021 06:39:55 -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=aBCNw2sBGbDAVprr4vYeHsYbO7AgbkLvqbpGnAY2zpA=; b=eQIjWXsRruSo59w86ZyCxMtGc79M6RTNi9zn5ZsDr0mNYjdxPflsIDBEa2OSsTF8LN 4v5IpdnR0tyhszxBPoVX4n1Xw3D9BfJVxqBr9TvkSymIuPkDzuQN/VsS7sMWhrTAvvhX cn5TSLTzx70MNAsq7M3Mj9yiLoWZSGy8jon9TeKsI9LnepNiF2GgKrjK822FsrDEPSMe zTxeZ1x8IYuTTC10Xq2nzr9Yt0OU2m5Rh8Nlvt0a7ioQT/esnmVTV146gQkd9IZCpDpf Y8xRYiBW87z7eqaIWELirH1o7pVQ1lI1Fd0C2FS18nAq7XtFK8XUY6+nqOI4bY1l0ocF X/HA== 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=aBCNw2sBGbDAVprr4vYeHsYbO7AgbkLvqbpGnAY2zpA=; b=jEcPBAd6MSNVh341GZfBMq4Nxyzr/CBdQ3oTeyu+SuqHQlCk3TWBzQ0IuubXjJYFQT hJ+hKsZ6VRBzslptUr7wbP7rqRhR1b9SQhCN6K3BxVC024xFL6nSQTEx8Mwa6XuriOzc fXidWj+geXnn/NqJl5MOijS6NeSPLNNuf9Vi1LDH+19AQgD19sBk0dKxOuP3hxFYgR69 ZKo1hrIceckT0YHqW27ipwszs2Wc4RZxUUO1Z2Ze+KSjUx97xGpUE19AcQ7tVtMkkyGh AETTKI6zzMIFDu12VIbZYxlUMLwLwVqQNu3Om9PeIhhaVjvJwWjgArOLPDecl9mjHxva kdGg== X-Gm-Message-State: AOAM530ase4kXaaX6khTdhhBVO3GuEBeoeuhbIURTnIPv0qfuhCr9z8r IaExlLyq0iVHladbMxjSi1KZAA== X-Received: by 2002:a0c:dd8b:: with SMTP id v11mr12497164qvk.31.1612708794395; Sun, 07 Feb 2021 06:39:54 -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 c81sm13941493qkb.88.2021.02.07.06.39.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 06:39:53 -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 v6 07/11] crypto: qce: skcipher: Set ivsize to 0 for ecb(aes) Date: Sun, 7 Feb 2021 09:39:42 -0500 Message-Id: <20210207143946.2099859-8-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210207143946.2099859-1-thara.gopinath@linaro.org> References: <20210207143946.2099859-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 d24d96ed5be9..64f661d7335f 100644 --- a/drivers/crypto/qce/skcipher.c +++ b/drivers/crypto/qce/skcipher.c @@ -353,7 +353,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