Re: Problem with kernel integrated cryptoapi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ben Slusky wrote:

Yes. You'll need to get the new util-linux from: <URL:http://ftp.cwi.nl/aeb/util-linux/util-linux-2.12.tar.gz>

And apply these patches:
<URL:http://www.stwing.org/~sluskyb/util-linux/losetup-variable-key-size-mk2.patch>
<URL:http://www.stwing.org/~sluskyb/util-linux/losetup-keygen-prog-mk4.patch>


I tried this. I get the following:



darjeeling:~# losetup -e aes /dev/loop0 /dev/vg01/boring You must specify a key size (in bits) for use with CryptoAPI encryption.

darjeeling:~# losetup -e aes -k 128 /dev/loop0 /dev/vg01/boring
losetup: invalid option -- k
usage:
  losetup loop_device                                      # give info
  losetup -d loop_device                                   # delete
  losetup [ -e encryption ] [ -o offset ] loop_device file # setup

darjeeling:~# lsmod
Module                  Size  Used by    Not tainted
[...]
aes                    30240   0
cryptoloop              1436   0  (unused)
loop                    8400   0  (autoclean) [cryptoloop]

darjeeling:~# uname -a
Linux darjeeling 2.4.22 #1 Fri Aug 29 21:00:55 GMT 2003 i686 unknown


How do I specify the key size?


-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux