1

I'm trying to use dm-crypt on my Raspberry Pi 2 with Raspbian (jessie) to open a trueCrypt volume, but i get

Required kernel crypto interface not available.
Ensure you have algif_skcipher kernel module loaded.

My research has yielded that algif_skcipher should be available since 2.6.38, but my kernel version is 3.18.11-v7+ (according to uname). Why isn't the module available and, more importantly how can I fix this?

0x539
  • 111
  • 3

1 Answers1

1

That module is available, but it looks like it was not compiled for the Raspbian kernel; the crypto modules would be in /lib/modules/3.18.11-v7+/kernel/crypto but algif_skcipher.ko is not there.

It is, however, in the rpi kernel source, so it could be built. You need to match the source used to your kernel exactly,1 or else just build a new kernel with that module. This is not so hard, although it will take a very long time on the pi, which means you have to either be careful to get it right the first time, or else use a cross-compiler.


1. This is not as simple as it sounds, since the source packages in Raspbian are just the plain Debian (non-pi) ones and therefore getting the source to match means doing some careful exploration of the git repo.

goldilocks
  • 58,859
  • 17
  • 112
  • 227