util-linux-2.12-9 pytanko...

Marek Guevara Braun marek.guevara w atm.com.pl
Czw, 11 Mar 2004, 18:32:01 CET


Pawel Koska wrote:

> Dnia czw 11. marca 2004 00:52, Marek Guevara Braun napisał:
>
>>> Czy ten pakiecik jest spatchowany do obslugi loop-aes
>>> (www.linio.terramail.pl) czy sciagac zrodelka i samemu patchowac ?
>>
>>Powinno diałać, gorzej z aktualnością dokumentacji do aes/losetup.
>>Składnia może być inna niż w url-u który podałeś.
> 
> Powinno ??
[... ciach ...]
> Wiec cos jest nie tak, albo faktycznie skladnia jest inna. Tylko gdzie moge 
> sie dowiedziec jaka powinna byc teraz skladnia i co on obsluguje jak 
> dokumentacja jest stara i nieaktualna ??

Hint poniżej. Zakładam, ze prawidłowe opcje dla wersji aktualnej to
-e aes --keybits 128 (lub 192 lub 256) a nie -e AES128, ale mogę
się mylić - ja używam wersji losetup nie obsługującej --keybits.

$ losetup --help
usage:
  losetup loop_device                                      # give info
  losetup -d loop_device                                   # delete
  losetup [ options ] loop_device file                     # setup
    where options include
    --offset <num>, -o <num>
        start at offset <num> into file.
    --pass-fd <num>, -p <num>
        read passphrase from file descriptor <num>
        instead of the terminal.
    --encryption <cipher>, -e <cipher>
        encrypt with <cipher>.
        Check /proc/crypto or /proc/crypto/cipher for available ciphers.
    --nohashpass, -N
        Don't hash the password given.  (previous versions hash,
non-debian doesn't.
    --keybits <num>, -k <num>
        specify number of bits in the hashed key given
        to the cipher.  Some ciphers support several key
        sizes and might be more efficient with a smaller
        key size.  Key sizes < 128 are generally not
        recommended

$ cat /proc/crypto
name         : md5
module       : kernel
type         : digest
blocksize    : 64
digestsize   : 16

name         : sha1
module       : sha1
type         : digest
blocksize    : 64
digestsize   : 20

name         : sha256
module       : sha256
type         : digest
blocksize    : 64
digestsize   : 32

name         : des
module       : des
type         : cipher
blocksize    : 8
min keysize  : 8
max keysize  : 8

name         : des3_ede
module       : des
type         : cipher
blocksize    : 8
min keysize  : 24
max keysize  : 24

name         : blowfish
module       : blowfish
type         : cipher
blocksize    : 8
min keysize  : 4
max keysize  : 56

name         : aes
module       : aes
type         : cipher
blocksize    : 16
min keysize  : 16
max keysize  : 32

name         : serpent
module       : serpent
type         : cipher
blocksize    : 16
min keysize  : 0
max keysize  : 32

name         : twofish
module       : twofish
type         : cipher
blocksize    : 16
min keysize  : 16
max keysize  : 32

name         : deflate
module       : deflate
type         : compression



Więcej informacji o liście dyskusyjnej pld-users-pl