DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-02-08 13:26:21

Apskaft
Member
From: Karlskrona, Sweden
Registered: 2007-01-09
Posts: 165

Encrypted Virtual Discs

Hi,

As we have a rather recent Linux kernel (2.6.6), encrypted virtual discs should be possible provided that the kernel has been built for it. The method I was opting for was to create a filesystem on a file and mount it using an encrypted loopdevice, i.e. :

Code:

# dd if=/dev/urandom of=/mnt/HD_a2/disk-aes count=102400
# losetup -e aes /dev/loop1 /mnt/HD_a2/disk-aes
  Password: XXXXX
# mkfs /dev/loop1
# mkdir /mnt/HD_a2/enc_fs
# mount -o loop,encryption=aes /mnt/HD_a2/disk-aes/enc_fs
  Password: XXXXX

But, for this to work I need to know if the following is present in the kernel, and if not - if it can be added using 'insmod':

* loop (Is present AFAIKN)
* cryptoloop
* aes

And; is losetup availabe on the unit already?

Anyone?

/Apan

Offline

 

#2 2007-02-08 14:40:15

Paul
Member
From: Landshut, Germany
Registered: 2007-01-19
Posts: 35
Website

Re: Encrypted Virtual Discs

well, I don't think the cryptoloop device can be used without a custom kernel (since the loopback device is integrated into the kernel)... when trying to load the compiled cryptoloop module it's missing the symbols 'crypto_alloc_tfm' and 'crypto_free_tfm' :-(

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB