Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp682218pxf; Thu, 1 Apr 2021 10:48:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7AscHGmp5s4Kj1BX4RdC/QnITJa4VbKELlP8Rs/+K3vxJI2UxNZ9gcvDOU8UUl0c7cJQF X-Received: by 2002:a92:d7cd:: with SMTP id g13mr8066358ilq.190.1617299301719; Thu, 01 Apr 2021 10:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617299301; cv=none; d=google.com; s=arc-20160816; b=mSnpgXqlIHLeBFju48Z/XHR6idENpR49I4gfX7VEgE7iVnviKfm99GCPvr/sjCZRVQ Zwh/IY/Vjs9KED5bT8NtZI0/3dS3YKlGeJSm3sShyMX/1myTodVbaE/ZBXHADyx68Qro ECZs/AaQx4szaXTBbVi/q4Mzu56nerR1yOucxOP0MqwwFefGpjFDD+m0q+EoirIBrunt Nv5S1Ut+rg9WpQN828iRfRv1TrNgL2gHkWTxtkDyxoee327Qd6gax0h9c1m7KQl1JWsj 93YbHrK7+oQuEUUcZwjtmbmonr4pgVnnOBIye7saVgXqtckU9iYruFc0unI/THKCYA11 RL9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:to:from:dkim-signature; bh=tQ7T2L7I+YC/lfS/ewKVEL0zytv8HCHdOwuDx1mlT40=; b=daOX7QzgYFy495M66TkT2Q0rRAKMiAdJ3KRwRhGIXIvYdwbUmNVtZgKtLDz1vmQagK dED30ZQMjExQVH3K9Z8x4MW5cbiGvkqwWp45HS9cOXYqQphEn+C+MRyIEeSvWE5WWwja mo8YOWtQZNy16NrGEYJHGA3OLRlyDx3S3ZJUMVcT4deU2M1wx9QH0zTrm08FBPsYARhj HMm2QAj4IIubRHQ9WcUJ3CNe7613tGViK0osJonRFYXhknp2rCvsajQeuPDVTGsG4MYN Ch7SbwCkWWPDrVh1i9Wvuh1scU0v1DGquX2mwJ8VM3kc5VmsreCYWdcM2/llOqWcC6hb Hv9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iGxpPHL3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i24si5701576jav.54.2021.04.01.10.48.07; Thu, 01 Apr 2021 10:48:21 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iGxpPHL3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234994AbhDARsA (ORCPT + 99 others); Thu, 1 Apr 2021 13:48:00 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:29242 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234919AbhDARlS (ORCPT ); Thu, 1 Apr 2021 13:41:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617298878; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=tQ7T2L7I+YC/lfS/ewKVEL0zytv8HCHdOwuDx1mlT40=; b=iGxpPHL3NMQ+iIDPggUb1kF4H19Vg6nduJhwuFZ0vYklK1MDcU0MlhVoTIa1W8mgKz3jo0 kYMiwTe7a5WXpMvvHqxHfdMiuQ/IvRa6NdkBotX6j0xm4HJ+GkfYY6ctBcb2Dxde7Rfto4 11NPqR7pLu64IyDyio7Zv7/Q9vCo4eE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-559-oOZdNLTcNfKnonAP-_pS_Q-1; Thu, 01 Apr 2021 08:25:05 -0400 X-MC-Unique: oOZdNLTcNfKnonAP-_pS_Q-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 40B3E107ACCA; Thu, 1 Apr 2021 12:25:04 +0000 (UTC) Received: from crecklin.bos.com (unknown [10.22.8.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 286F477520; Thu, 1 Apr 2021 12:24:59 +0000 (UTC) From: Chris von Recklinghausen To: 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 Subject: [PATCH 0/1] use crc32 instead of md5 for hibernation e820 integrity check Date: Thu, 1 Apr 2021 08:24:57 -0400 Message-Id: <20210401122458.12663-1-crecklin@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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. 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(-) -- 2.18.1