Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2411553imm; Thu, 21 Jun 2018 12:05:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK9RVgsd1CxNZp0YXrYljcZdF2VH8NpOZAv+vh95cyjUduw+bkL8NVpg5QPBjEXPYuNfcrW X-Received: by 2002:a17:902:8a94:: with SMTP id p20-v6mr29424910plo.258.1529607946992; Thu, 21 Jun 2018 12:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529607946; cv=none; d=google.com; s=arc-20160816; b=E/jXQuzuMC5vpHXvC+Aax/Ye468Y1Me7qZyIbDk4ZI9/0KgC5biFXSOiuK+XQuba12 oGOt8FLsaOht2sUfDdq08TVYpVwoYckBpRtXyNbNVPkUG/LujmBEGwMr6bn8q0QrLX1C lpjpuklenXCd9u5bO4AQNXuaTeaaksprdGFRaqytiVVa3dpVl8vX5lbPJq3fE2Ckk7Sy PAq5aCOfa09qjM3oftZON5g6UUupAGQaUUgMzksBnDgxOu8cwmADkPWR3d+p3m9d9yTS fAaShrSafgK+k9AsBN5Z2KOc8qQPW0D2SrauyjWdr+t0I1z94s3mcNyDX/EAUrcN5Okp ICpQ== 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:arc-authentication-results; bh=JxlDNnsOqjpxzLIjTH9uv8j4/vKwv+fD3RcJVyQOEgo=; b=rYVD0/I7rhI/XcZyHx8Lq9ctjAlFDx3n46T569SMpE7g9E7o9XhYkLwqDquhsjQ8V5 VTRWPafRYttPoj6ou+OBs8HzUnp+cc24lM2ktIFbN0KtDdT9IBl9LDg1YLyDho7J+tFV ECFk2r/V4yFluF2EXx/le2hgo0AyG+F3SlLAzJWkJ/KGHLmWSseOixxFC4wRJJF8+yqe Ktx7K4rQLR+AjQCGDo5CtD0GYnthOeZuDYUygt1dBRmxR9Tt10BDOss4zEBnuS8xetie XuZq8/f+6c1zypzzHGY/KyxiPNI15F66NHFxNroqFFaIrmDBK9dtcsv2vKp2EZeVPEhD Hx4A== 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 p5-v6si4426566pgq.126.2018.06.21.12.05.19; Thu, 21 Jun 2018 12:05:46 -0700 (PDT) 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 S1754184AbeFUTEE (ORCPT + 99 others); Thu, 21 Jun 2018 15:04:04 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:39258 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752650AbeFUTED (ORCPT ); Thu, 21 Jun 2018 15:04:03 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 3E800805A4; Thu, 21 Jun 2018 21:04:02 +0200 (CEST) Date: Thu, 21 Jun 2018 21:04:01 +0200 From: Pavel Machek To: "Rafael J. Wysocki" Cc: Chen Yu , Ted Ts'o , Len Brown , "Lee, Chun-Yi" , Borislav Petkov , Linux PM , Linux Kernel Mailing List , "Rafael J . Wysocki" , Stephan Mueller , Eric Biggers , Denis Kenzior Subject: Re: [PATCH 3/3][RFC] tools: create power/crypto utility Message-ID: <20180621190401.GA14623@amd> References: <78af30838d0bac69bdd6e138b659bcbb8464fd13.1529486870.git.yu.c.chen@intel.com> <20180621090142.GB21807@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2018-06-21 14:10:06, Rafael J. Wysocki wrote: > On Thu, Jun 21, 2018 at 11:01 AM, Pavel Machek wrote: > > > > > > On Wed 2018-06-20 17:40:51, Chen Yu wrote: > >> crypto_hibernate is a user-space utility to generate > >> 512bits AES key and pass it to the kernel via ioctl > >> for hibernation encryption.(We can also add the key > >> into kernel via keyctl if necessary, but currently > >> using ioctl seems to be more straightforward as we > >> need both the key and salt transit). > > > > Ah, here you go: > > > > https://en.wikipedia.org/wiki/Uswsusp >=20 > No, not really. >=20 > > It can already do encryption. If you see problems there, patches will > > be gladly accepted to fix them. >=20 > By whom? By me. > > If you want to maintain uswsusp in kernel tree, I guess that would be > > an option, too. >=20 > No, it isn't an option due to the dependencies on crypto libraries. Why not? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --ZPt4rx8FFjLCG7dd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlsr9qEACgkQMOfwapXb+vLiMgCfTsxaT+klE7ncAIKDZJ94dkAT ClQAn07ioHsAuzcmn+a1TOL8S6lYDxhY =XdVo -----END PGP SIGNATURE----- --ZPt4rx8FFjLCG7dd--