Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1959901imm; Thu, 21 Jun 2018 05:11:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK1jI3OfAkBeLzcoOz0yKwIMO+kl4JtlTm995ke/DdKmZBDF1+Msgfe4UzXUtKanJKNi22g X-Received: by 2002:a65:4348:: with SMTP id k8-v6mr22667374pgq.341.1529583089068; Thu, 21 Jun 2018 05:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529583089; cv=none; d=google.com; s=arc-20160816; b=ikLnwR6DGIXWpxpkyrOABzSTQmb8ZfMO64Q9arFSZfhmSG5vPfmt1J+CSHCz36kFn2 S0sfuLe1nuADrE6ko4hpcnohRAbGjHnG6ntf2DXLCXJ6b6PFkGnQA6GD/eWIDNp+0J6y 5U7sQRgW4BbvXjDoxYpWYfN+6Gd/Rqxl1ierQi4bjbhDMmhynoWVx/NRJbFSanzenLG5 /RXNjf3os20FVO5N4a/hRHul58X3FAiNRaT+LcXNFWwjz/GjBcMLCVkSRoumC1eotPPN s9xevXHdMR80s7EgmDBgcK+QowOLUwNABpuXZw8E/nDeRRDANtkRwM46FM5ycGZ5wh+v 2T8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=EYw7Uv3wP48JR6VhattOVzgshSy+nYuSdeos80BDzK4=; b=xFpD7XNs/dW0bHkd1ny0pgZyB9cNh5epEDhDSPlGUYE2m4NZ24n0mS0uOsS03VJX0I dBZTXPRUGUdW5Ldxbvj7IYpYzWd3uF2yePcmzUw350evlo/nqOzG11eikXJ0yeG0FuZb xljWhYz/pNRnMrm6i+AvqbCM7MdD3bpR6sn+Q1kI0L4TlRZwYwpVIi7DLWcEruBXGmFb Z54BtBmoeye2ZKbgxR3OFppx63Ls1LpkWHXANC656L1+p7w9hv2+mvl81/VFhSFBbLJZ oDWpowafannLgD2MIWLmk3Jq+ykQK3Nn4mgoV2yoUt6NCROWXEc+q0R7YLKdespmAnuz rb0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=DoJJH6hU; 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; dmarc=fail (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 v24-v6si4615646plo.159.2018.06.21.05.11.14; Thu, 21 Jun 2018 05:11:29 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=DoJJH6hU; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933595AbeFUMKK (ORCPT + 99 others); Thu, 21 Jun 2018 08:10:10 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:43869 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933291AbeFUMKH (ORCPT ); Thu, 21 Jun 2018 08:10:07 -0400 Received: by mail-oi0-f65.google.com with SMTP id t133-v6so2664418oif.10; Thu, 21 Jun 2018 05:10:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=EYw7Uv3wP48JR6VhattOVzgshSy+nYuSdeos80BDzK4=; b=DoJJH6hUYhZ+lAAlG6tTuMKwCJiWYEux6Lwy8Of2sCJ4mn/EYfC3WLjBJMCMBNAZVL HTEEMG9b8ApT4MRswjiS2Es5YucAzwYUdLGTIxHIE+nerjzUWMsd17xmzCS0sDboonbE /1w3ljwcGe3vnZaCnxg+L2ZJJIQJ1yfYfLfJWPxNpE5eWpcE69nHKtweWP4haVVN7M7v 5doEOGW+2wkV2m59asCFK/XkNq1e61p+2ynAWuWeU5eWlnnyhiaOHlMnyCXWgTHW+MHC 6x+Gzg5Iez57ez9ZEoBfWJU+qP7rovGdHPafiao6VL5jlq7Pd6BokbxoP/JqFOjvhKUR k5tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=EYw7Uv3wP48JR6VhattOVzgshSy+nYuSdeos80BDzK4=; b=OUd1P5k4bD09szvgQTcl4kDAHzbHeXjU00flozdnlQeCoyluRcciADOpA89X91yB1z 8xva+n+gCD+jxwM3pdww7njgxXlkn5ffl9dtHEcx+HtHzViWPq9gS9EtgJnYXqtohm9d 5YfdLk2XfGGwF1EincjdUE4jwv+Cte4+w5MYhN3SOWCfOH7tA48HLaZ+qSuQfpn/TQgH LzSmkt7AIdzc1jILo/HtoUSi22Ka3wAzF3c91j9pbVMMmAn1tJ2CZKNSqcqW9JqQVsY0 WF8uQM/Qq8xfUKtAjbWIy8N1lAlguKETFYe1zKbE2O6kovK5KdhTpxb9d8QHTghMMz6M Gpfg== X-Gm-Message-State: APt69E2xHJTUoJGakNveX+KCIFyFXzEoOYiKY6mtckTQCfuWUxnFn3T5 TBpoo0oxAhKDFWBmFLmOjqs6RHUhiqfwS5TRYQM= X-Received: by 2002:aca:5bc6:: with SMTP id p189-v6mr14886969oib.116.1529583007115; Thu, 21 Jun 2018 05:10:07 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1429:0:0:0:0:0 with HTTP; Thu, 21 Jun 2018 05:10:06 -0700 (PDT) In-Reply-To: <20180621090142.GB21807@amd> References: <78af30838d0bac69bdd6e138b659bcbb8464fd13.1529486870.git.yu.c.chen@intel.com> <20180621090142.GB21807@amd> From: "Rafael J. Wysocki" Date: Thu, 21 Jun 2018 14:10:06 +0200 X-Google-Sender-Auth: 41LUitx7QrYH8TLy5qZQiVxBzr8 Message-ID: Subject: Re: [PATCH 3/3][RFC] tools: create power/crypto utility To: Pavel Machek Cc: Chen Yu , "Ted Ts'o" , "Rafael J. Wysocki" , Len Brown , "Lee, Chun-Yi" , Borislav Petkov , Linux PM , Linux Kernel Mailing List , "Rafael J . Wysocki" , Stephan Mueller , Eric Biggers , Denis Kenzior 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 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 No, not really. > It can already do encryption. If you see problems there, patches will > be gladly accepted to fix them. By whom? > If you want to maintain uswsusp in kernel tree, I guess that would be > an option, too. No, it isn't an option due to the dependencies on crypto libraries. > If you want to just help swsusp, I have some patches that reduce > duplicities between x86-32 and x86-64. It would be cool to clean them > up and get them merged. Sure, please submit them then. Thanks, Rafael