From patchwork Sat Oct 26 14:52:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 11213531 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5F3CF4872 for ; Sat, 26 Oct 2019 14:54:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3E1B02070B for ; Sat, 26 Oct 2019 14:54:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572101642; bh=nJSqzffn18xs1Qhu2a2UoMrbK1GaidB+6eMn6G00Sto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=PL4e4YmfIIJ0T7vgME/Yt316zLL87leeLgwgHGKliStiaC4OovgEmY7UQYTiJZZQ5 Mo3qKbsZpnyX76wduC8vwqHqcC088Dg9lU3WpDtfLKDWw1R3bgvcjLyUUOIYZuV0PA NVaeVMP1Sk1Y/zHQyObj+YrnK8gEQt9C0V2l3pTw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726237AbfJZOxw (ORCPT ); Sat, 26 Oct 2019 10:53:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:37170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726162AbfJZOxw (ORCPT ); Sat, 26 Oct 2019 10:53:52 -0400 Received: from e123331-lin.home (lfbn-mar-1-643-104.w90-118.abo.wanadoo.fr [90.118.215.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6DE9F214DA; Sat, 26 Oct 2019 14:53:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572101632; bh=nJSqzffn18xs1Qhu2a2UoMrbK1GaidB+6eMn6G00Sto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0m2bIK18yNnYhKWdZes8TPmAes4FUNRfUbqqEYiWckg9hTENNM2oJmx4ZaOTxQfO3 9Eml5PPUh30XS5NvAHEZQOXEgyDaS2YClEUdXfWUPziIDQUBlVYrvkY0PnoSWLNODG NBJRGYushXYi9dzFmCQhYFvMAaBwJHumH//1BNaQ= From: Ard Biesheuvel To: linux-crypto@vger.kernel.org Cc: herbert@gondor.apana.org.au, Ard Biesheuvel , linux-omap@vger.kernel.org, Tero Kristo Subject: [PATCH 2/6] crypto: omap-aes-ctr - set blocksize to 1 Date: Sat, 26 Oct 2019 16:52:55 +0200 Message-Id: <20191026145259.16040-3-ardb@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191026145259.16040-1-ardb@kernel.org> References: <20191026145259.16040-1-ardb@kernel.org> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org CTR is a streamcipher mode of AES, so set the blocksize accordingly. Signed-off-by: Ard Biesheuvel --- drivers/crypto/omap-aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index 067f4cd7c005..33cba7a2d6df 100644 --- a/drivers/crypto/omap-aes.c +++ b/drivers/crypto/omap-aes.c @@ -747,7 +747,7 @@ static struct skcipher_alg algs_ctr[] = { .base.cra_flags = CRYPTO_ALG_KERN_DRIVER_ONLY | CRYPTO_ALG_ASYNC | CRYPTO_ALG_NEED_FALLBACK, - .base.cra_blocksize = AES_BLOCK_SIZE, + .base.cra_blocksize = 1, .base.cra_ctxsize = sizeof(struct omap_aes_ctx), .base.cra_module = THIS_MODULE,