If you're using systemd you can do this by setting up /etc/crypttab[1] which has a similar format to fstab. For example, here's my swap line:
eswap /dev/mapper/vg0-swap /dev/urandom swap,cipher=aes-cbc-essiv:sha256
[1] http://www.freedesktop.org/software/systemd/man/crypttab.htm...