[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6be63531313d46caa7161697bf240dfc@AcuMS.aculab.com>
Date: Fri, 9 Apr 2021 16:56:05 +0000
From: David Laight <David.Laight@...LAB.COM>
To: 'Chris von Recklinghausen' <crecklin@...hat.com>,
"ardb@...nel.org" <ardb@...nel.org>,
"simo@...hat.com" <simo@...hat.com>,
"rafael@...nel.org" <rafael@...nel.org>,
"decui@...rosoft.com" <decui@...rosoft.com>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
"linux-crypto@...r.kernel.org" <linux-crypto@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH v4 1/1] use crc32 instead of md5 for hibernation e820
integrity check
From: Chris von Recklinghausen
> Sent: 08 April 2021 11:46
>
> Suspend fails on a system in fips mode because md5 is used for the e820
> integrity check and is not available. Use crc32 instead.
>
> Prior to this patch, 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.
>
> Note that the digest is only used as an integrity check. No actual encryption
> is done.
If crc32 is good enough, would a 1's compliment sum be good enough?
It is likely to be faster to calculate and not need special
functions be built into the kernel at all.
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
Powered by blists - more mailing lists