here are the detail of a simple demonstration of the corruption. i really hope i'm doing something wrong so i can simply fix it. - brett ---------- Forwarded message ---------- Date: Sun, 25 Nov 2001 17:00:12 -0800 (PST) From: beldridg@best.com To: linux-crypto@nl.linux.org Cc: beldridg@best.com Subject: demonstration of the file corruption problem i sent an earlier message, but i'm not sure if it got through. here are more details. i'm running 2.4.16pre1 with the latest cryptoapi patch and CONFIG_CRYPTOLOO_512IV=y. the script below clearly demonstrates the file corruption problems: 1. [root@rush beldridg]# losetup -e blowfish /dev/loop0 .inbox Available keysizes (bits): 128 160 192 256 Keysize: 128 Password: 2. [root@rush beldridg]# mke2fs /dev/loop0 mke2fs 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09 run again just to make sure: [root@rush beldridg]# mke2fs /dev/loop0 mke2fs 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09 3. [root@rush beldridg]# losetup -d /dev/loop0 4. [root@rush beldridg]# mount -o loop,encryption=blowfish .inbox mail/testing Available keysizes (bits): 128 160 192 256 Keysize: 128 Password: 5. copy a random file (note the first two fail because they try using reserved inodes): [root@rush beldridg]# cp /tmp/install.log mail/testing/ cp: cannot create regular file `mail/testing/install.log': Input/output error [root@rush beldridg]# cp /tmp/install.log mail/testing/ cp: cannot create regular file `mail/testing/install.log': Input/output error then this one works: [root@rush beldridg]# cp /tmp/install.log mail/testing/ 6. [root@rush beldridg]# md5sum mail/testing/install.log 8173590ad0ecaa4bb3f20c574176466e mail/testing/install.log 7. [root@rush beldridg]# sync [root@rush beldridg]# umount mail/testing [root@rush beldridg]# mount -o loop,encryption=blowfish .inbox mail/testing Available keysizes (bits): 128 160 192 256 Keysize: 128 Password: 8. [root@rush beldridg]# md5sum mail/testing/install.log 402c6bb5db8a720b762b19dcfdc2c4ce mail/testing/install.log Note the two different md5sum values. thanks, - brett "praying and hoping for a stable 2.4.x kernel with crypto at some point" - Linux-crypto: cryptography in and on the Linux system Archive: http://mail.nl.linux.org/linux-crypto/