Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp725226pxf; Thu, 1 Apr 2021 11:53:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdAAj4KA6of1GEzGDY5E8yqDik/5Rzc8fStcx3B+hPKDQlMdni28Ccs3YEkJvrePvFR9gS X-Received: by 2002:a5d:8453:: with SMTP id w19mr7788042ior.25.1617303199318; Thu, 01 Apr 2021 11:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617303199; cv=none; d=google.com; s=arc-20160816; b=JXpOe6wm+8CQX2DVJs14S39Ma7hIgS+y4sZgs/+GXiWEiqKGCjfAEawuAKSWMAmN89 cyhx9DrC1kwpGonGQ6GTulZbc5U9chjHCvvze7SfDiToGbK7F4qD6dLkcmvp3qgyDKqh EhOLYE+hVmk3OZguj3iSbu7XKTJ0Cs+G4dMlocjt+QN72upGoxKCXDjxXja4EvYRPiMh 37b7ViQhIMRKn/pBWrBqzaCQLofXcCbLVRFy3FvdjRKpiDwsepPWKBNIUSonVwZVme3M 2e9qex5WmFHRnR/x/OFlqpwhQpq1M7u/etZP8uC3lPPnamUH0EoZae9Y/QNECJ4mQye8 Dxlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject; bh=2GfCpVRywEf/wEAj4G58K5USB94+kBayTlw78KyP+SE=; b=dAzx/aypyTguqsODmKBkSAE09RHVcXBijmVAzS7qg21HlBMM04evotjogW6ju0UOeS 7glQo2fvYHR4pfDXmwnWMgZSOOEtgfkuwlxC0OO7B3In6U0D0ipK+G/9BEcjRH8Yu8Lv 7NW+bXg1ms7xbgjMUtnEqAeA2J588pHleJZVOvGK3XVtZKenINeXk+nwBT0Y1QEkiZp7 tBGFosTAv0qysrcR/tfZak7P4ehz/UiWCYHKfXe57sSCU0EzjJdTfekf5LJxRcvwHvNM DKtfhDGymL/sfiAw4sMXJ2h0U82WgHTw/sdsGW5mmSsA4iHJMSOw/R5C2YiIdzDiDB2H 1lTw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s16si5458725ilq.21.2021.04.01.11.53.03; Thu, 01 Apr 2021 11:53:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237420AbhDASwc (ORCPT + 99 others); Thu, 1 Apr 2021 14:52:32 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:56662 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238157AbhDASrt (ORCPT ); Thu, 1 Apr 2021 14:47:49 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4FBByB0VdQz9v3xx; Thu, 1 Apr 2021 20:47:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id 7t9lNGv2CQzp; Thu, 1 Apr 2021 20:47:46 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4FBBy969xyz9v3xw; Thu, 1 Apr 2021 20:47:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 29ADA8BB43; Thu, 1 Apr 2021 20:47:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id zesb-6aN77SL; Thu, 1 Apr 2021 20:47:46 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 9B5F58BB28; Thu, 1 Apr 2021 20:47:45 +0200 (CEST) Subject: Re: [PATCH 0/1] use crc32 instead of md5 for hibernation e820 integrity check To: Chris von Recklinghausen , ardb@kernel.org, simo@redhat.com, rafael@kernel.org, decui@microsoft.com, linux-pm@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210401122458.12663-1-crecklin@redhat.com> From: Christophe Leroy Message-ID: <22595ae7-2ab5-2e6b-01d7-6b284dc8b0c2@csgroup.eu> Date: Thu, 1 Apr 2021 20:47:21 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <20210401122458.12663-1-crecklin@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Le 01/04/2021 à 14:24, Chris von Recklinghausen a écrit : > Currently, suspend on x86_64 fails when FIPS mode is enabled because it uses md5 > to generate a digest of the e820 region. MD5 is not FIPS compliant so an error > is reported and the suspend fails. > > MD5 is used only to create a digest to ensure integrity of the region, no actual > encryption is done. This patch set changes the integrity check to use crc32 > instead of md5 since crc32 is available in both FIPS and non-FIPS modes. Why not put all those explanations in the patch itself ? Because text in the cover is lost, so a cover is not really usefull for a single patch. > > Chris von Recklinghausen (1): > use crc32 instead of md5 for hibernation image integrity check > > arch/x86/power/hibernate.c | 31 +++++++++++++++++-------------- > 1 file changed, 17 insertions(+), 14 deletions(-) >