Message ID | 20170822080818.12486-8-clabbe.montjoie@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0BEA3600C5 for <patchwork-linux-mediatek@patchwork.kernel.org>; Tue, 22 Aug 2017 08:14:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D511204C1 for <patchwork-linux-mediatek@patchwork.kernel.org>; Tue, 22 Aug 2017 08:14:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0081F2841C; Tue, 22 Aug 2017 08:14:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AF0B4204C1 for <patchwork-linux-mediatek@patchwork.kernel.org>; Tue, 22 Aug 2017 08:14:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=mElil0mkdrWVQo3LhApSPLF9J80Gxaj9uilo8+JUD8c=; b=HnHNhNtgXBx9mtXjbtKCpAlCUz 242b2CAPuUjyfjnNy+XitzUVmAdma76JSgu9pp3BpGtc50Lhv286JKoKQq0z6emKPIW2rarYOi8C4 1mvocjQCILBZhvFEY3so0yHVZ328g/RgzuR46FApygRrEKyG1LYGzs4IzpVfIEUd9rnWhhijYEwSr 2E50lHwshcjDNGO+zq/dnL35Hbo9mSFducPuQVcB+N9TbopyYP7kYOsBMtsDDqlPtmo1xEcqh7jII etRyhYRRPG+dehUMcfBf6FGENe9HN0rCaV4BxdF/QyRe3k3Du9nCp+ZYT5M/XaZ14GEY4XWCDoHnp GhYA8PXA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dk4K6-0004zB-5k; Tue, 22 Aug 2017 08:14:06 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dk4H6-0001Rn-Uy; Tue, 22 Aug 2017 08:11:11 +0000 Received: by mail-wr0-x243.google.com with SMTP id a47so753620wra.0; Tue, 22 Aug 2017 01:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Nnc9izPRopj4mogL51jftlyIOS6m3FJI97fzxR6FFxo=; b=XvMfwOf7v+82tQLe/vHwdfPKWCFiRYmJTtCJmJy2xDuh9wn9IT86JxH2bQdhJ7NGvr qh7dh0spjKwygvENyTZ7EyLaXKy57HowZqdanRLi5zsWgGXvd2UqsZET2tkGa8Wvh8Nv ndbsD0ojAxNWaN9EJVQPua4Y4Acg8vNvEtrqibc4IgSDGEmpNl3FfT/5ZYad8kOtEfIQ auZaC5ojzktwZCQmPqRF4JTYV6t2FIhtU/6bERtDGKQEKqFStCx5jCcdorsl5O3DMW/k w5SmmEg+JMSVZ8i/7dhS1nWN2xtnfJBey90kmz4UZUb0Acork9q04CgHbwqnL5CrkXfj pmiw== 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; bh=Nnc9izPRopj4mogL51jftlyIOS6m3FJI97fzxR6FFxo=; b=nmdrVJfxydFtK/sSpN6LEhq44scx/SlQqwJzb8Vv/Tc+b/bH9ZVmjqd/bgh4J6pta4 tYF0k0fV/rh7CR3BaJSWrnWXRV71EBRGuhKWH3h1OnemplSgp//3Ma8bM1X7dI/9NHys kBwLO6x7AlJeXWxa+uNZL2/UsOPS9HqD8lYeFwi2Hm7Euarxk3BcFDHAQiPJ9WY5poQV oxFojw6meE/cIcymBid6i/veWrpBmFm9I/BbIPVxYN2dqBuDkaDyQmCuO017ojrnVczS y5IklafkVVZbQN6f51F25LsCOaNrMEXHqMjMFyocoRtQY8mb5bt0s8VExlHEVnVj2QH+ B2DA== X-Gm-Message-State: AHYfb5i8JHgQsJVFl3sj120h0CiJObnfJPtDhwoupTyZhASNh7HUSEli NaEWSrLLv7POsw== X-Received: by 10.28.107.69 with SMTP id g66mr8773708wmc.119.1503389442699; Tue, 22 Aug 2017 01:10:42 -0700 (PDT) Received: from Red.local (LFbn1-1-65-78.w90-118.abo.wanadoo.fr. [90.118.156.78]) by smtp.googlemail.com with ESMTPSA id e21sm10778796wme.17.2017.08.22.01.10.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Aug 2017 01:10:42 -0700 (PDT) From: Corentin Labbe <clabbe.montjoie@gmail.com> To: herbert@gondor.apana.org.au, davem@davemloft.net, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, horia.geanta@nxp.com, dan.douglass@nxp.com, thomas.lendacky@amd.com, gary.hook@amd.com, harsh@chelsio.com, matthias.bgg@gmail.com, leosilva@linux.vnet.ibm.com, pfsmorigo@linux.vnet.ibm.com, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au Subject: [PATCH 07/11] crypto: mediatek - Use GCM IV size constant Date: Tue, 22 Aug 2017 10:08:14 +0200 Message-Id: <20170822080818.12486-8-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170822080818.12486-1-clabbe.montjoie@gmail.com> References: <20170822080818.12486-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170822_011101_892754_79907E46 X-CRM114-Status: UNSURE ( 9.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-mediatek.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/> List-Post: <mailto:linux-mediatek@lists.infradead.org> List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe> Cc: linux-kernel@vger.kernel.org, Corentin Labbe <clabbe.montjoie@gmail.com>, linux-crypto@vger.kernel.org, linux-mediatek@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org> Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/crypto/mediatek/mtk-aes.c b/drivers/crypto/mediatek/mtk-aes.c index 9e845e866dec..87e15b624f84 100644 --- a/drivers/crypto/mediatek/mtk-aes.c +++ b/drivers/crypto/mediatek/mtk-aes.c @@ -13,6 +13,7 @@ */ #include <crypto/aes.h> +#include <crypto/gcm.h> #include "mtk-platform.h" #define AES_QUEUE_SIZE 512 @@ -1098,7 +1099,7 @@ static struct aead_alg aes_gcm_alg = { .decrypt = mtk_aes_gcm_decrypt, .init = mtk_aes_gcm_init, .exit = mtk_aes_gcm_exit, - .ivsize = 12, + .ivsize = GCM_AES_IV_SIZE, .maxauthsize = AES_BLOCK_SIZE, .base = {
This patch replace GCM IV size value by their constant name. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> --- drivers/crypto/mediatek/mtk-aes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)