Hi All,
I've been reading a lot of information regarding dm-crypt and
crytoloop vulnerability to known-plaintext and watermark attacks. I
was wondering if the following dm-crypt setup method would solve the
known-plaintext attack:
1. Encryption key generation and encryption using GPG:
head -c 32 /dev/urandom > secure.key
gpg -c --cipher-algo AES256 secure.key
2. Secure volume creation using dm-crypt:
/usr/bin/gpg -q --cipher-algo AES256 --decrypt secure.key.gpg | \
/usr/local/bin/cryptsetup create secure_dev /dev/hdaX