I wrote an implementation of the Serpent cipher that uses on-the-fly calculation of subkeys to substantially reduce RAM use, but it fails both encryption and decryption tests when compiled for the ds390 port. I'll commit it as support/regression/tests/smallserpent.c.in in the pcq branch.