Received: by 10.223.176.5 with SMTP id f5csp1021628wra; Fri, 2 Feb 2018 09:51:13 -0800 (PST) X-Google-Smtp-Source: AH8x224LTGHJYkXe7JCK6HsoYfQhCzdlQX4XFiEK5uWms/8I9TyXvqLMXZ/YBrUx729bWoLlWMgD X-Received: by 2002:a17:902:7682:: with SMTP id m2-v6mr15173536pll.163.1517593873003; Fri, 02 Feb 2018 09:51:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517593872; cv=none; d=google.com; s=arc-20160816; b=kPIhXQ2DlyOhhzAKskRAjbVrc4uJiuelD2i0yoWbD09Ql/iOkE7nv6rxoZFLROpUwZ 6bfF5JmE7/IRVdt0M6PaMME9cWqAq+InhTncqEzs9D5AN/5JIsPrbteRHp00yKX+0Fnq 4orNFTs9pyAUmYMBP0kT1GHfbMrAF2ox/TkWedH5Jt66XqSR3ENaj6pSRUoiRUgivwQr Hl1w6ChREENuuj5gIZQx+jaLjmua/aSGDurZpb2mPX865F/W1ij6Wg0J11uOxY019Mr7 heI3Bs+vDVglKgw45omawv28kMpqvpsACdhfFwO7g2KjXe229/dB+dDTgl2E5rf80Pye K7iA== 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=OQKNqpd6S3E0IWY0FCyQwld0ec6OagNhNhs6InmbdRE=; b=nD5PaMA+0bXWY/NjDqKmmt02dnv+tUeq6h1b5DZ5JdM0IhUH/pwJb68WnwODCVs+98 PLoZhxzREitkH9MZA2Zr7vhp/a6RocbhZ8BZfrh3Jz36MVkEcP61AMraeZmE55sz2PLw u8+71gbLtUSRF2Dk3MH+9RrTxlh49fScCVFU0Qm4cc7l7Mjl8GXhKM5tFiBCQ1psCOrr qUZRgyc4d4Hb/ESm6ck7bZHnV/GfdckDwvH2r17bLGAe+OG1KGEnvoPzL5EtdPdU1F4v rONQM5St2yfmZaTOmNPtzgckOUUbZUtxy9mK8CSRFV5FnfNFEU5Rlt9d9Sl0t1RV+jR7 xjoQ== 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 o15si1708188pgc.48.2018.02.02.09.50.58; Fri, 02 Feb 2018 09:51:12 -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 S1753513AbeBBRN0 (ORCPT + 99 others); Fri, 2 Feb 2018 12:13:26 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:36970 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753133AbeBBRHP (ORCPT ); Fri, 2 Feb 2018 12:07:15 -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 2D232ED2; Fri, 2 Feb 2018 17:07:14 +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 011/156] crypto: gcm - add GCM IV size constant Date: Fri, 2 Feb 2018 17:56:32 +0100 Message-Id: <20180202140840.828227610@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 ef780324592dd639e4bfbc5b9bf8934b234b7c99 upstream. Many GCM users use directly GCM IV size instead of using some constant. This patch add all IV size constant used by GCM. Signed-off-by: Corentin Labbe Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- include/crypto/gcm.h | 8 ++++++++ 1 file changed, 8 insertions(+) --- /dev/null +++ b/include/crypto/gcm.h @@ -0,0 +1,8 @@ +#ifndef _CRYPTO_GCM_H +#define _CRYPTO_GCM_H + +#define GCM_AES_IV_SIZE 12 +#define GCM_RFC4106_IV_SIZE 8 +#define GCM_RFC4543_IV_SIZE 8 + +#endif