dm-crypt functions