On Aug 2, Gordon Matzigkeit wrote:
> [...]
>
> In order to make your decryption support both clean and extensible, I
> would advise a more Hurdish approach:
>
> grub> settrans -a / blowfish 12345678 # use one key
> grub> kernel /tftproot/kernel.image
> grub> settrans -a / blowfish 87654321 # use another
> grub> module /tftproot/module.image
> grub> settrans -a / # clear the translator
>
> This would take some work to implement properly, but I don't think
> there's any hurry to complete it. All we need is a design to agree on
> for inserting arbitrary filters into the loaded stream, and then just
> implement the parts as needed (so, no, I'm not suggesting a
> full-fledged translator implementation... just a lookalike).
>
> But first, I want to find out if the other developers think this is a
> good idea (or can suggest something better, especially for an
> interface).
The filter approach is nice, but to make it most general, the filter
should be part of the filename. There are some commands that take
more than one filename. Also the path to menu.lst should allow
filters.
What about "kernel [blowfish,12345678]/tftproot/kernel.image"
One could concatenate filters like this:
[gunzip][blowfish,12345678]/tftproot/kernel.image
Maybe one should even allow block filters for encrypted filesystems,
like this: ([blockencryption,key]hd0,0)/kernel
Jochen