# HG changeset patch # User Robert McIntyre # Date 1361806441 0 # Node ID e15c393dffa88904eb56228d0274fdbc94863b28 # Parent 07bb57b65da14cb4b4d0877bc7cd17aa2bcc4073 added pipelined encryption layer. diff -r 07bb57b65da1 -r e15c393dffa8 cd-burn.pl --- a/cd-burn.pl Mon Feb 25 14:15:13 2013 +0000 +++ b/cd-burn.pl Mon Feb 25 15:34:01 2013 +0000 @@ -20,11 +20,13 @@ $size = `mkisofs -print-size @mkisofs_args 2>/dev/null`; chomp($size); -@burn_command = ("cdrecord", "gracetime=3", +@burn_command = ("cdrecord", "gracetime=3", "-v", "-overburn", "tsize=".$size."s", "-data", "-"); +@aes_loop_command = ("aespipe", "-P", "/etc/cd-key", "-e", "aes256"); -$final_command = "mkisofs @mkisofs_args | @burn_command"; + +$final_command = "mkisofs @mkisofs_args | @aes_loop_command | @burn_command"; print "$final_command\n"; system($final_command); diff -r 07bb57b65da1 -r e15c393dffa8 cd-mount.sh --- a/cd-mount.sh Mon Feb 25 14:15:13 2013 +0000 +++ b/cd-mount.sh Mon Feb 25 15:34:01 2013 +0000 @@ -1,4 +1,9 @@ #!/bin/sh -mount -v -t iso9660 /dev/cdrom "$1" +cryptsetup loopaesOpen /dev/cdrom encrypted_cd --key-size 256 \ + --key-file /etc/cd-key + +mount /dev/mapper/encrypted_cd "$1" + +