On Thu, Jun 21, 2018 at 11:01 AM, Pavel Machek <pa...@ucw.cz> wrote: > > > On Wed 2018-06-20 17:40:51, Chen Yu wrote: >> crypto_hibernate is a user-space utility to generate >> 512bits AES key and pass it to the kernel via ioctl >> for hibernation encryption.(We can also add the key >> into kernel via keyctl if necessary, but currently >> using ioctl seems to be more straightforward as we >> need both the key and salt transit). > > Ah, here you go: > > https://en.wikipedia.org/wiki/Uswsusp
No, not really. > It can already do encryption. If you see problems there, patches will > be gladly accepted to fix them. By whom? > If you want to maintain uswsusp in kernel tree, I guess that would be > an option, too. No, it isn't an option due to the dependencies on crypto libraries. > If you want to just help swsusp, I have some patches that reduce > duplicities between x86-32 and x86-64. It would be cool to clean them > up and get them merged. Sure, please submit them then. Thanks, Rafael