Andrew Morton wrote: > Pavel Machek wrote: > >>To prevent data gathering from swap after resume you can encrypt the >>suspend image with a temporary key that is deleted on resume. Note >>that the temporary key is stored unencrypted on disk while the system >>is suspended... still it means that saved data are wiped from disk >>during resume by simply overwritting the key. > [snip] > err, no. Please find a way to reduce the ifdeffery. Andrew, the attached patches are acked by Pavel and signed off by me. They apply against 2.6.13-rc3 as well as 2.6.13-rc3-mm1 (with offsets) and are tested against both kernels. Please consider for inclusion (Pavel suggested that I could ask). Note: For 64 bit systems to work you need the following crypto fix for both kernels stated above: http://marc.theaimsgroup.com/?l=linux-kernel&m=112160294820624&w=2 -- Andreas Steinmetz SPAMmers use robotrap@domdv.de