Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1132493imu; Wed, 9 Jan 2019 12:13:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN69FRXmH0w/my1q3/Mdu/Rnhbw65XopTIBi13qtckts/auy98zRQaSJLWpbQeRQNfCemtPJ X-Received: by 2002:a63:a553:: with SMTP id r19mr6691767pgu.53.1547064828512; Wed, 09 Jan 2019 12:13:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547064828; cv=none; d=google.com; s=arc-20160816; b=c2NDVw1cVtTeCNxUwb9eVkYxlvUD0wVfnSpz7nI/oTvuCs/iSqKWnqNsMVE4lX0fMv TafJEa2O64hM2t7nlaOHXtgED5PqMLVR9Dec7xj3LcuxAsJmIQoQzQdyCxDwMZurpDwG EsV+3fCH9/c7bsgfQw4hktuJdrTlOz2NarYMwBEqhH/h/RGeS8371Wjkp++I0enGPJAO XffmiICLvib3vb7sn/e+mDfbvhmZy2qlXs7paCJ9owCNZxgWZ3u8NkvtJ2GyBvaDnoEw Mmz7s4rYZCbGoDR7WBU1yTAkTPY+/ajtLpzbRJFSm3HI58Cv6+tN0fU0cUOTkvFY6nSg sEpg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=3rgaiUNDCmCN8jAAfxw7cyLOfVt+NLTk0Cix6ubM0Qo=; b=jcEBSAmEjFIA7iKIT5S9buUmZ76/IdPUVBHMrj5zn4+ofjqJY9GaKQOqnr+3B/4V3b dDv4B0QsvvwYmRw5Zn4OnLekJykUlGoujum8GSInQ/4QJjE48MFxRnwWcP6bjYOBLC1f cWD0CLD5vAEXTps7U5/k4hqyu0hlGORUIv1XGpuv+S+mTli6/PYqNiFHdXEw4qXdJorT i7JdhYRbZwIBZkq/rUKyICbGhZmic95ZRs9GPQy1Vb1oc0tHfgpdyzzaWpnen3pFKi9M X0DBIp79oXne/k7JHseWYmR9QzDHGXGgH2sFPe09HQkPjiAZIFcf82RqvbCSXn73snCj OQzw== 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 t10si3614550pgn.551.2019.01.09.12.13.33; Wed, 09 Jan 2019 12:13:48 -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 S1726415AbfAIQwA (ORCPT + 99 others); Wed, 9 Jan 2019 11:52:00 -0500 Received: from smtp.nue.novell.com ([195.135.221.5]:50298 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbfAIQwA (ORCPT ); Wed, 9 Jan 2019 11:52:00 -0500 Received: from linux-l9pv.suse (124-11-22-254.static.tfn.net.tw [124.11.22.254]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Wed, 09 Jan 2019 17:51:50 +0100 Date: Thu, 10 Jan 2019 00:51:39 +0800 From: joeyli To: Andy Lutomirski Cc: Pavel Machek , "Lee, Chun-Yi" , "Rafael J . Wysocki" , LKML , linux-pm@vger.kernel.org, keyrings@vger.kernel.org, "Rafael J. Wysocki" , Chen Yu , Oliver Neukum , Ryan Chen , David Howells , Giovanni Gherdovich , Randy Dunlap , Jann Horn Subject: Re: [PATCH 0/5 v2][RFC] Encryption and authentication for hibernate snapshot image Message-ID: <20190109165139.GH9503@linux-l9pv.suse> References: <20190103143227.9138-1-jlee@suse.com> <20190106181026.GA15256@amd> <20190107173743.GC4210@linux-l9pv.suse> <20190109163958.GG9503@linux-l9pv.suse> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190109163958.GG9503@linux-l9pv.suse> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 10, 2019 at 12:39:58AM +0800, joeyli wrote: > Hi Andy, > [...snip] > > Let's why I encrypt/decrypt data pages one by one, then I copy the ^^^^^^^ That's why > encrypt/decrypt data from buffer page (only one buffer page reserved > for encrypt/decrypt) to original page. I encreypt pages one by one, but > I HMAC and verify the whole snapshot image by update mode. > [...snip] > > > Why are you manually supporting three different key types? Can’t you > > just somehow support all key types? And shouldn’t you be verifying > > I only supported two key typs in my patch set, user defined key and > TPM trusted key. The EFI secure boot did not accept by EFI subsystem. ^^^^^^^^^^^^^^^^^^^ EFI secure key https://lkml.org/lkml/2018/8/5/10 Sorry for I produced too many typo when feeling sleepy... Thanks a lot! Joey Lee