eSTREAM in Linux: Salsa20 (i586)

I’ve ported Bernstein’s x86-pm assembly code of Salsa20 into the kernel. What I did is nothing more than adding glue code to call the assembly code.

More interesting is the patch to dm-crypt to support stream ciphers using the blkcipher interface. In other words, it is now possible to do something like:

cryptsetup luksFormat -c salsa20-stream-plain /dev/loop0

The patches have been sent to They are also available here where the status of the patches are tracked. Not all patches make it into the kernel. :-)


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: