Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1149532ybi; Fri, 24 May 2019 18:26:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5eGh3MfAn8u1Qt+gWrCMiYaDVX5sONiv4KDo9LaRdFv/xKnUfPD14d0wbDqeduZ+PEHUF X-Received: by 2002:a65:5248:: with SMTP id q8mr12859441pgp.92.1558747616792; Fri, 24 May 2019 18:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558747616; cv=none; d=google.com; s=arc-20160816; b=nB7jDbjPn8VuzzDnDnQF5k4t9dIYQPwDAoz5iSB2HXA4P0P0gPdX3yeUG6RN3NBN+K 9bY3I0vqu8tDTp6JrBr14flVt0u8VKKUO6ZR8Q4ZI9/KmHdG3712UF7bbgykrSPq1l3D rYrmepzyJTLG+tfQOSkSRMFMTW2D4lSuP+uMkk2CX/oPgNWSf8CSE4HO5wbJNfn0zkqx TciYmSyRdbJhb36Ql5c/LJOxa6uosSOdyxGNDdy2aVZvYLV385IW735pIvWMGoS7EivI KiLg2PhEIRHkI72GynKRLvHMIG35gLFJD4G8JdLadODFJE0qicQU8Q5zh6dIp3Ux9Caw hpGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=M/aFXVgoLkGRc62TQ0hbXmKVymzrpmYVdQ5d3ELoK0U=; b=YTKw31cnP/SM0VcCYU/Itzi0x0CHzE3eidaKSFBuL4qxjhPVYXkL41mNt/EMtpm9TG 4c5QjyV589Q93PO6zgaR2u9U8QjZtyEZQyp3rSiSRK6xs6NjU/LxZ5ychdE/HZqGLrPS sqi0PwMxHpppQiHmjS/84bV1SJuTierSgZAG2dD2c12gC9U4fU50C0f/1/sl6ItQ/tV7 Bg+1PIoSQb1M4yFmLKlOIV6We8br2/+dqFkszQ+Gt2nwOTjZ80UwIJkVUMkkKFIMeMdv 8ws3LKvHoPFG8W4lw2KvM11llHxVT2x8B/uAJBn3z7C4s4m4IlR9vOrNhgpF328pEBCi dteA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wBXFmcLZ; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id j23si6559157pgj.85.2019.05.24.18.26.19; Fri, 24 May 2019 18:26:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wBXFmcLZ; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 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 S1726267AbfEYBXC (ORCPT + 99 others); Fri, 24 May 2019 21:23:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:35774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726220AbfEYBXC (ORCPT ); Fri, 24 May 2019 21:23:02 -0400 Received: from sol.localdomain (c-24-5-143-220.hsd1.ca.comcast.net [24.5.143.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 68EA5217D7; Sat, 25 May 2019 01:23:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558747381; bh=n6cPJCtjp3TydMggbMsgaNK5Gjn/YqNDKIWPN8zQbSI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wBXFmcLZ1o4VWkDU6nBoT5MUFQkLZkusQ/mgPfnT9Hxd1j3IYUIdJHNr0IOzQk+v3 zY+zDfHXFUW2hGqac4qlw8oEyd4DkMyP7t9TRd2Vfy509/+yfdTcL5dilqvLkVZK/s PdU/zfNuJAdBrRXJFuHPxHYwhAmyHS/kPSOsLC+w= Date: Fri, 24 May 2019 18:22:59 -0700 From: Eric Biggers To: Ard Biesheuvel Cc: Pascal Van Leeuwen , Christophe Leroy , "linux-crypto@vger.kernel.org" Subject: Re: another testmgr question Message-ID: <20190525012258.GC713@sol.localdomain> References: <20190523185833.GA243994@google.com> <20190523200557.GA248378@gmail.com> <20190523234853.GC248378@gmail.com> <907eb6a5-dc76-d5ee-eccf-e7bd426a0868@c-s.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, May 24, 2019 at 11:25:52AM +0200, Ard Biesheuvel wrote: > > All userland clients of the in-kernel crypto use it specifically to > access h/w accelerators, given that software crypto doesn't require > the higher privilege level (no point in issuing those AES CPU > instructions from the kernel if you can issue them in your program > directly) Unfortunately people also use AF_ALG because they're too lazy to use a userspace crypto library, e.g. systemd uses it for HMAC-SHA256, and iproute2 uses it for SHA-1. - Eric