As far as I can tell there are two ways of setting up encrypted swap:
Fonz
- Take a plaintext partition (e.g. /dev/ada0p2) and put a geli_swap_flags line in /etc/rc.conf, which causes the creation of a /dev/ada0p2.eli device and an invokation of geli onetime to create a swap partition encrypted with a random one-time key.
- Take a partition inside a partitioned geli device, e.g. /dev/ada0s1.elib, and use that.
Fonz