On 23.01.2007 18:16:41, jean-christophe.haessig@xxxxxxxxxxxx wrote: > > > # touch /cd.iso > > # losetup /dev/loop/0 /cd.iso > > # echo 0 $(( 680*1024*1024/512 )) crypt aes-cbc-plain 0123456789abcdef 0 > > /dev/loop/0 0 | dmsetup create encrypted_cd > > # mkisofs ... > /dev/mapper/encrypted_cd > > > > Then you have an iso file with an encrypted ISO9660 filesystem. You might > > have to tweak a bit, and maybe it doesn't even work because of the way > > mkisofs works. > > Yeah, but you still need some temporary space to hold the /cd.iso image. > No way to burn directly. In fact I want to do this with a tape drive, ie > pipe directly the output of tar/mkisofs through the encryption program and > then on tape. I just made my question more generic, so I only brought up the > case of cd recorders, for which the problem still holds. I'm not familiar with tape drives, but can't you just create a mapping over the tape device and do this: # tar cfvj /dev/mapper/tape_encrypted /backmeup/ Not meaning to discourage you from writing a aespipe for dmcrypt, just asking. Greetings, Benjamin -- ____ _ _ ____ _ _ _ _____ __ __ / ___|| | / \ / ___|| | | ( ) ____| \/ | \___ \| | / _ \ \___ \| |_| |/| _| | |\/| | ___) | |___ / ___ \ ___) | _ | | |___| | | | |____/|_____/_/ \_\____/|_| |_| |_____|_| |_| play online: telnet://slashem.crash-override.net view scores: http://slashem.crash-override.net watch deaths: irc://irc.freenode.net#slashem
Attachment:
pgpMUGWwYtvcU.pgp
Description: PGP signature