some dm-crypt stuff from mainstream