Received: by 10.223.176.5 with SMTP id f5csp983900wra; Fri, 2 Feb 2018 09:14:46 -0800 (PST) X-Google-Smtp-Source: AH8x225Y5qIJZfJUbCD5xam6dFJhwgvXt2kFjNNgzIRlc5cDK37ZNV2P3EYmfd7zvE8RQ95IM8pJ X-Received: by 2002:a17:902:b104:: with SMTP id q4-v6mr5659030plr.143.1517591686294; Fri, 02 Feb 2018 09:14:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517591686; cv=none; d=google.com; s=arc-20160816; b=fo/COGgYVq6gZowoHOhHDWWYpIgTT1NQ8uDnqTYYhN1lD7PEomCVM3ZzTn94J+TR+R IxC6oGl3TASaWNNzhuTvvp3pEVa0Isrd0UzpQBrD7FMrfh4C2+0QGGAteHZcuqPRo04y jeBHLbTS61/2e5R6WuD1KAtWsehSw4S5alzftmBHxR1SHqfBNgxPk+htk024QkXp8SFn b4SGZQHET1MMpxJMHkGuCMWeamaHFAhyqAJTSG+YeUxdPukEkiAqt2XX9EBCrCLWO3UX MDVB2odKKCEd98eUteqahz3vxPTRxW8PA2ekoWUkJDs9Al2S3ts8pPbpmu0pLI3VP9pn 3M3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Xuh0/6KGmpxEkrUX+Pc7RISqYbTeEpBGK7Lam/dQmH0=; b=W5x3H2KUa/N1EpZMcRgAMjPkstiTHu9ZLv9pfbn0xlssuGjfO1dUut+JH7uNtoFWcO 30ICQVulJyl083bDQBkbLo31oAvAA9krY6U4o5xLNqijFv4WZIetCjWSG1s3qdl8pok1 hupjmrWuIfTt9dCbqgQpwhRhol4opDD3XDHLOvXKdF+BheiWl3+ZW20dQsfCH4/nG4tT yOAM3nNKB8dKZqkz/BmVKR7iibNgCaWwNN1WjCJ1RwgYJgalB+mzq1I06IliFxCC2CTc Hc/rx/GWOiRM422tZZBjRjjPhIRfRhNF4wAex012zoRQwwaEoTqyVDqpcq8XE48TBLZf NZ0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v31-v6si2150592plg.804.2018.02.02.09.14.31; Fri, 02 Feb 2018 09:14:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753524AbeBBRNg (ORCPT + 99 others); Fri, 2 Feb 2018 12:13:36 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:36988 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753050AbeBBRHR (ORCPT ); Fri, 2 Feb 2018 12:07:17 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D6D6FEC6; Fri, 2 Feb 2018 17:07:16 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Corentin Labbe , Herbert Xu Subject: [PATCH 4.14 012/156] crypto: aesni - Use GCM IV size constant Date: Fri, 2 Feb 2018 17:56:33 +0100 Message-Id: <20180202140840.871267023@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180202140840.242829545@linuxfoundation.org> References: <20180202140840.242829545@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Corentin LABBE commit 46d93748e5a3628f9f553832cd64d8a59d8bafde upstream. This patch replace GCM IV size value by their constant name. Signed-off-by: Corentin Labbe Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- arch/x86/crypto/aesni-intel_glue.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- a/arch/x86/crypto/aesni-intel_glue.c +++ b/arch/x86/crypto/aesni-intel_glue.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -1131,7 +1132,7 @@ static struct aead_alg aesni_aead_algs[] .setauthsize = common_rfc4106_set_authsize, .encrypt = helper_rfc4106_encrypt, .decrypt = helper_rfc4106_decrypt, - .ivsize = 8, + .ivsize = GCM_RFC4106_IV_SIZE, .maxauthsize = 16, .base = { .cra_name = "__gcm-aes-aesni", @@ -1149,7 +1150,7 @@ static struct aead_alg aesni_aead_algs[] .setauthsize = rfc4106_set_authsize, .encrypt = rfc4106_encrypt, .decrypt = rfc4106_decrypt, - .ivsize = 8, + .ivsize = GCM_RFC4106_IV_SIZE, .maxauthsize = 16, .base = { .cra_name = "rfc4106(gcm(aes))", @@ -1165,7 +1166,7 @@ static struct aead_alg aesni_aead_algs[] .setauthsize = generic_gcmaes_set_authsize, .encrypt = generic_gcmaes_encrypt, .decrypt = generic_gcmaes_decrypt, - .ivsize = 12, + .ivsize = GCM_AES_IV_SIZE, .maxauthsize = 16, .base = { .cra_name = "gcm(aes)",