g13: First chunk of code to support dm-crypt.