Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp542289pxf; Thu, 8 Apr 2021 08:12:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1XTHKESmTKjvwYbQudXVOXDMX/VPFCyiyuU6x6sILd/nCX1aLUIQshdFTbdxSbrc+nYI5 X-Received: by 2002:a05:6512:2026:: with SMTP id s6mr6655900lfs.43.1617894737054; Thu, 08 Apr 2021 08:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617894737; cv=none; d=google.com; s=arc-20160816; b=hqrZDRWV59L/beQiFyyIdY/jpob/GHcGd925PiBr0t59Vqw/olPrhzUX2nqwQl/R19 KARjBzBhSgSntapMcWYVsjm3VRAJ1uh/XyW9gn4bVl+44EDdBk1fahNpSb960h6sYeQP jB92w0s1oDDy/1A3XIHFNwjMM9+jr+GYH0GChEKTMR3MKrleFnP23uclFauuH9PKn823 5WXfIqcSW32rCRkqjzYWEtUTQ2w71oxEmM1ttSlQJci+FsVoxQMpIY7Tw+mcx1y2YZmQ dNNlenysNpfafiSsNA89w1VdE5R37LCFOwIK4XBkcikgHwo5QVyn1Cpp8DJmotTikk7I l1pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uC+QNtlgVfJuqEimURnCdekQK1M4H50MuaOBPkpVjuU=; b=VlvSDLK6qBWyz7cQL07ZWLTJb8kJ/c6fBGXL2sfnhya2Tc7LNI+DgNK/AHJvTKmiIe apsHb849j0Dv04P9Mkhz/FO1feJObxXbAeH2xk5SrGjsu7fgC7t8f0M+waaZyH36Kr+l CumBB/0SAum3T2d8c5Dd9DNqZ04hX8LJOzCjfIu12x/5wXFwhZnTEOFTKKh+tF6ncaMN oMu1j6b6pTGDmwqQloQt6M7D+zHhsg0HxwDTH+hUsmUvqi/0JuiCuY+n/DT0iA/1q5NA UI2uozmDcqRgIb7mA/RDuZRiAmzeaOej63qWzwDDNik/uueH8lW67cc8DkLMwvspzi9U jiJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lYUeGcO1; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jw10si6213843ejc.346.2021.04.08.08.11.52; Thu, 08 Apr 2021 08:12:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lYUeGcO1; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232035AbhDHPL6 (ORCPT + 99 others); Thu, 8 Apr 2021 11:11:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:43694 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231848AbhDHPL6 (ORCPT ); Thu, 8 Apr 2021 11:11:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9BE58610F9; Thu, 8 Apr 2021 15:11:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617894706; bh=bMl0ZspmxcDB+rdC2aWpV/e54pDlpgNYgQrS5CBCgww=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lYUeGcO10VSf9p+yUdo9CkkX3KcPvxSgTjbgFg68zvDLnNzjeSXbComUqrWid70N/ tAV2XZ+UqrS7wtXFRMMeEGYhDjWhirxUvt+0JzZsrADzsP6ZI4QVdJtSsaRkTzpSqE R6RQlkhFmzOzRukvf9SiCLTBgkFvrSTyVFLd6QaqBigGMP5AufjfFXBnrF+ymnzRox 3sjXAxWDxDATV4wATbTMqvwEW0Bw9Y9a9CbiAA82nXzm90Y93Su4/MpTtj74sy4Nsy MBZTqQFn+f0U/sEHeUevoTY4nNMOtJVkRM7ekHBCU/wfPj3CxY8+Or5gN0QA+BClOk LI7awGyZp7O9g== Date: Thu, 8 Apr 2021 08:11:34 -0700 From: Eric Biggers To: Hangbin Liu Cc: netdev@vger.kernel.org, "Jason A . Donenfeld" , Toke =?iso-8859-1?Q?H=F8iland-J=F8rgensen?= , Jakub Kicinski , Herbert Xu , Ondrej Mosnacek , linux-crypto@vger.kernel.org Subject: Re: [PATCH net-next] [RESEND] wireguard: disable in FIPS mode Message-ID: References: <20210407113920.3735505-1-liuhangbin@gmail.com> <20210408010640.GH2900@Leo-laptop-t470s> <20210408115808.GJ2900@Leo-laptop-t470s> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210408115808.GJ2900@Leo-laptop-t470s> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Apr 08, 2021 at 07:58:08PM +0800, Hangbin Liu wrote: > On Thu, Apr 08, 2021 at 09:06:52AM +0800, Hangbin Liu wrote: > > > Also, couldn't you just consider WireGuard to be outside your FIPS module > > > boundary, which would remove it from the scope of the certification? > > > > > > And how do you handle all the other places in the kernel that use ChaCha20 and > > > SipHash? For example, drivers/char/random.c? > > > > Good question, I will check it and reply to you later. > > I just read the code. The drivers/char/random.c do has some fips specific > parts(seems not related to crypto). After commit e192be9d9a30 ("random: replace > non-blocking pool with a Chacha20-based CRNG") we moved part of chacha code to > lib/chacha20.c and make that code out of control. > So you are saying that you removed drivers/char/random.c and lib/chacha20.c from your FIPS module boundary? Why not do the same for WireGuard? - Eric