From nobody Sun Jun 28 10:34:33 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B28F6C433EF for ; Wed, 9 Feb 2022 07:06:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235833AbiBIHGQ (ORCPT ); Wed, 9 Feb 2022 02:06:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232532AbiBIHGM (ORCPT ); Wed, 9 Feb 2022 02:06:12 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3DBDC0613CB for ; Tue, 8 Feb 2022 23:06:15 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id e3so2441688wra.0 for ; Tue, 08 Feb 2022 23:06:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6ObdsU8xJPCCncm3b4zun78zfhQSiXHrwXPxP1BSB1g=; b=5dVENlZcT2Twchomim/tmvpOhGJOLH11MAZSjkbYEPmgQjfFWoF+mYa2wG9p98Qyra zuIhZabCMsV5NrrGowTm/pWkS6J/Pesc/345hZP6WO3fNy4KOjWJSGkUPTX83TOpU3dK zDS3bjl5lS9sdSq6rwmFGinhYU+ZCiXhILpfbaUXdTlTBv2FABjlgYXp1mObLIbHF1IL SW9ZswJpFr4T+/t68T9hgSjFNxPenxoPoaRcerKClDrEoyhoA1Yr0reWShJnWNe+ds2A ArLFiFjg/9Zs6lG0aRmnq7osXMcHmfi4rsyHRnXL7q7KmCQM7PFX0C7AwKQBJocjnc2m V7Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6ObdsU8xJPCCncm3b4zun78zfhQSiXHrwXPxP1BSB1g=; b=ap+KDaL6fDOPqmukVi/FXz39szpmBSMKv/h4bH8tjRzTCxZ3ymC9BXrmBw/vQwbP8s eGRCJu5hd7ERh7wyBXEd55t9kZeC0hOAz/8RExlFUnyIqT58oktpaX7Tiyiy0cMuWJ+d UUYSqMLrjHJfpYai5mPS3KK5+diBdNrxFENE/TawTcsVcifAV3skDjDJnqUE1q8AreL0 KNHzxlTEB5mCoiFRHYCjsnvxWs3S+GiKVKqgiTS8/iH92Rgxo/upqG1Wen9JOGqocGw9 rb0VTG65s+KsFgJsp/qcrsXHu2P/B/1rhpFPowqJPgRYRafU3L5wvjLFFM7YnJi7qE3Q q8gA== X-Gm-Message-State: AOAM530Y0odmMBkq6St60DOYL7+PcJMinfmd64A/opB0+mfodqep3k/i ogfOgl8xsy2pTe/SoqITY8PqfQ== X-Google-Smtp-Source: ABdhPJx083h00yJ9wJBg8BzwxGv5QO29NKEvrGGAo9G3u9YLN4rgyVmq/wsSU2reR2oPp3RiR2+hBw== X-Received: by 2002:adf:e281:: with SMTP id v1mr870761wri.308.1644390374407; Tue, 08 Feb 2022 23:06:14 -0800 (PST) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id n10sm8853553wrt.93.2022.02.08.23.06.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 23:06:13 -0800 (PST) From: Corentin Labbe To: davem@davemloft.net, gilad@benyossef.com, herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH] crypto: ccree: fix xts-aes-ccree blocksize Date: Wed, 9 Feb 2022 07:06:08 +0000 Message-Id: <20220209070608.985213-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" loading ccree on next-20220207 with CRYPTO_MANAGER_EXTRA_TESTS show a warni= ng: alg: skcipher: blocksize for xts-aes-ccree (1) doesn't match generic impl (= 16) alg: self-tests for xts-aes-ccree (xts(aes)) failed (rc=3D-22) After setting the correct blocksize, selftests pass. Fixes: 67caef08a71f ("crypto: ccree - enable CTS support in AES-XTS") Signed-off-by: Corentin Labbe --- drivers/crypto/ccree/cc_cipher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/ccree/cc_cipher.c b/drivers/crypto/ccree/cc_cip= her.c index 78833491f534..d955fe15cf40 100644 --- a/drivers/crypto/ccree/cc_cipher.c +++ b/drivers/crypto/ccree/cc_cipher.c @@ -1010,7 +1010,7 @@ static const struct cc_alg_template skcipher_algs[] = =3D { { .name =3D "xts(paes)", .driver_name =3D "xts-paes-ccree", - .blocksize =3D 1, + .blocksize =3D XTS_BLOCK_SIZE, .template_skcipher =3D { .setkey =3D cc_cipher_sethkey, .encrypt =3D cc_cipher_encrypt, @@ -1140,7 +1140,7 @@ static const struct cc_alg_template skcipher_algs[] = =3D { */ .name =3D "xts(aes)", .driver_name =3D "xts-aes-ccree", - .blocksize =3D 1, + .blocksize =3D XTS_BLOCK_SIZE, .template_skcipher =3D { .setkey =3D cc_cipher_setkey, .encrypt =3D cc_cipher_encrypt, --=20 2.34.1