Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2429229pxb; Thu, 11 Feb 2021 12:06:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3k314B/kEifWYUtYQcOW0Q59QLmG4ERzvSwb7KquvXhxA+dmJ0biuy2fHfzKoy58rp5Cl X-Received: by 2002:a17:906:6943:: with SMTP id c3mr9860287ejs.133.1613073963711; Thu, 11 Feb 2021 12:06:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613073963; cv=none; d=google.com; s=arc-20160816; b=lYhFWboFYvoyTHmvOtP2KqI44W06+AI4+ySx3OcoQFxFNs+L+WYtA5aQFG9kKNeE3P MnelM2J8oE3F1DxY1Tt08fZEJtFR7HN5ptTGtmUThLOcHC7MhdIHvp8+KAE4w/SOFnB4 OXXIUpthKzivETV9nC6MHJv000jkHQGy7GvkV0g3kVIZufoJdnCJ+3SQZUCjwPNg8gf/ 6bYcP18GSgpxmQWd9aZ0iWM1nhbpqXgZX9zrkNOpeQ0XWDaO2ziTiK9ki21vs8xSu6tt u6o+iiAxcIikMpTNc5ak2aUo2iajfjZUCTs7gbLRxNYx50+DYOf2hY80b96dSdW2l+TM 2nyQ== 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=QVxt07NhH8i9s6gtmli+U/sos51ULXBrf5Wyl507Yss=; b=cWZl8MMkXfCttWxsl4ICU4SIYFfUwcre9S9dkIK6iziOUsDag7PQcT3T+YKCVwVX9c xrpQwlvtIvpfOks6PIxA/UugPFRcG9kNDnp5T6lb483/ZM8Hx9NmLGujTr6D8DR10Vvg 1Qsb7c6O5ZJ1/hHn73LEA331jZjzWepKW+PqhJm2j+GoMDvEWXedmpceml/tdrvDZxnn GiXZiM8qC4ArqGsKpEPs1IKrHFFDIpFBzSbJCD0Fc6r1f69XGdV+e0UrnCJIuzRJK/gd HQu0t56PphvhKmdq8wiDh1ku1pDCWhzY9RmtzDq5UKNbA+91F3SXVcuoIFMvdb9o7slX qWJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VpBxqcUz; 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 r21si4972438ejo.142.2021.02.11.12.05.39; Thu, 11 Feb 2021 12:06:03 -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=VpBxqcUz; 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 S229517AbhBKUFc (ORCPT + 99 others); Thu, 11 Feb 2021 15:05:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231680AbhBKUDS (ORCPT ); Thu, 11 Feb 2021 15:03:18 -0500 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F25AC061356 for ; Thu, 11 Feb 2021 12:01:37 -0800 (PST) Received: by mail-qk1-x72b.google.com with SMTP id j3so169158qkk.9 for ; Thu, 11 Feb 2021 12:01:37 -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=QVxt07NhH8i9s6gtmli+U/sos51ULXBrf5Wyl507Yss=; b=VpBxqcUzxTQuw+QYAmzO4hctY0VmJspmo6/IK/9FR6aVlrjGAJGeIxkEzHKiNBkGFP ByDXFmIKqkDmKiOCN6tslPbHpuitSWg/mkXhyS9G7cK+AIQtliCkrQl26BZETz4kWxWZ SmQeMhN+G1Ond83VwI3HEn/gx72dnkCp+B5ppeup4rY0CBAe5pgP6nAsXyv+Mzoi88Kp 0dpgb/sc2TIfSun2TY47DZ+mWujQHHUB1xRG5CI7/NnpueQNOinA5l+DKnI4ftTcxNKW 1tQF+yP3VXen3hJVKLNmZw7wPlS02sN7ID2Enj4xS3hcAE/Tvbzj0jUFk3pSNOwqrQOA SMLA== 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=QVxt07NhH8i9s6gtmli+U/sos51ULXBrf5Wyl507Yss=; b=f+xzResRMARSkyGc4Jp2r6R13h+4qkL7DnoC6F5wQVFxELLO5PDVwSTllCmC8qwhW4 H3woD4ffha5mCXk97IYCb6rDZOijtXNLkeblGD0ni6KOFmWWer2Lz98g0IrGCBTV7kDj jBAQwb8/3a778UhjiJSaAo2hqjsGvgl7MI+B4oPZprhL8bHLjJHqf9qCj8s7xAU7js0Q FslrpOOKKYexPQC2Cpr4vZnceodNqFB7UaCvhrCoOlCdxsGhU8rn2EksTE0F6Gmp1sKq Rlp736ni1TjdL9xo05BbeAx9zQ3Rjwipp0JoLlTV9VX7Piz57+2/28gtTzEVO85Sijij YWfA== X-Gm-Message-State: AOAM533muOMMms5ipsDECBZncjsbhu0voGPhxFV0/Qbqwv9huriffuxa H5dSI3qrtWNQq0tXgeQhBU5x6w== X-Received: by 2002:a05:620a:80e:: with SMTP id s14mr4872595qks.20.1613073696594; Thu, 11 Feb 2021 12:01:36 -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 17sm4496243qtu.23.2021.02.11.12.01.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 12:01:36 -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 v7 07/11] crypto: qce: skcipher: Set ivsize to 0 for ecb(aes) Date: Thu, 11 Feb 2021 15:01:24 -0500 Message-Id: <20210211200128.2886388-8-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210211200128.2886388-1-thara.gopinath@linaro.org> References: <20210211200128.2886388-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 c2f0469ffb22..11a2a30631af 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