Hello

Iam using mksquashfs version 3.0-patched with linux 2.6.18

I tryed to encrpt the file with serpent encryption as shown below

dd if=/dev/zero of=./test1 bs=1k count=1000

./losetup -e serpent -W "test1234" /dev/loop0 ./test1

mkfs.ext2 /dev/loop0

mount -t ext2 /dev/loop0 tt

mksquashfs tt sd

mount sd  -o loop,encryption=serpent gg  -t squashfs

Iam getting below error

mount: wrong fs type, bad option, bad superblock on /dev/loop1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

In dmesg iam getting below error
SQUASHFS error: Can't find a SQUASHFS superblock on loop0
SQUASHFS error: Can't find a SQUASHFS superblock on loop1

If i mount file with out encrytion iam able to mount as shown below.

mount sd  gg  -t squashfs -o loop

# ls -l gg

total 1
-rw-r-r- 1 root root 215 Dec  4 00:13 address.c
drwx---- 2 root root   3 Dec  4 00:12 lost+found
drwx---- 2 root root   3 Dec  4 17:59 lost+found_1

But i want to mount encrypted filesystem.
What iam doing wrong in above .

Please share your views regarding this.

Thanks,
Ashok