Re: GELI - disk encryption GEOM class committed.

From: Pawel Jakub Dawidek (pjd_at_FreeBSD.org)
Date: 07/29/05

  • Next message: Robert Watson: "11:20AM up 160 days, 19:27, 1 user, load averages: 0.35, 0.60, 0.54"
    Date: Fri, 29 Jul 2005 12:36:55 +0200
    To: Benjamin Lutz <benlutz@datacomm.ch>
    
    
    

    On Fri, Jul 29, 2005 at 03:09:13AM +0200, Benjamin Lutz wrote:
    +> > GELI is different than GBDE. It offers different features, but it also
    +> > use different scheme for doing crypto work.
    +>
    +>
    +> I tried to find out what exactly the differences are. Please correct me
    +> where I'm wrong:
    +>
    +> Encryption Strength:
    +> GELI - Supports AES, Blowfish, 3DES for data encryption, with a
    +> different key per sector. Access key is PKCS #5 protected.
    +> (What does this mean regarding a brute force attack?)

    No. The encryption key is the same. Every data block is encrypted using
    choosen encryption algorithm in CBC mode and with per-block unique IVs.

    PKCS#5v2 basically takes your passphrase and makes huge number of
    HMAC/SHA512 rounds with it. The result is used as a key.
    When brute forcing, you need to take a passphrase, do the same HMAC/SHA512
    work and result use as a key to try.

    It works really great as passphrase protection. On my laptop it takes
    about 1 second to make 2^16 HMAC/SHA512 operations.

    +> Speed:
    +> GBDE - Runs in software.
    +> GELI - Support for crypto(9) hardware. Blowfish is faster than AES.

    This was one of the main GELI goals, that's why simple sector-to-sector
    encryption is used, so geli doesn't add disk overhead.

    +> Booting from Encrypted Root:
    +> GELI - Works. How'd one load the kernel from an encrypted root though?

    Kernel has to be loaded from a USB Pen-Drive or a CD-ROM.
    You need to put /boot/ directory in there. GELI will ask for the passphrase
    before root file system is mounted. After that you can remove
    Pen-Drive/CD-ROM.

    +> The GBDE manpage warns that the on-disk format might be changed in the
    +> future. What about GELI? It'd be unpleasant to upgrade the OS and then
    +> find out that the encrypted volume is no longer accessible.

    It will be changed only in case of security flaw.

    +> How much throughput can one expect in practice, say, compared to the
    +> numbers in "openssl speed"?

    Depends on your disk speed, but you should just try it.

    -- 
    Pawel Jakub Dawidek                       http://www.wheel.pl
    pjd@FreeBSD.org                           http://www.FreeBSD.org
    FreeBSD committer                         Am I Evil? Yes, I Am!
    
    



  • Next message: Robert Watson: "11:20AM up 160 days, 19:27, 1 user, load averages: 0.35, 0.60, 0.54"

    Relevant Pages

    • Re: geli or gbde encryption of slices
      ... i have a question about chosing geli or gbde.. ... +> I was playing around with geli an gbde after last EuroBSDCon. ... I also used gshsec on +> the usb disc to even make things more difficult. ... +> a usb key and passphrase. ...
      (FreeBSD-Security)
    • Re: geli or gbde encryption of slices
      ... +> I was playing around with geli an gbde after last EuroBSDCon. ... +> the usb disc to even make things more difficult. ... +> the system can't do interactivaly query for the passphrase. ...
      (FreeBSD-Security)
    • Re: GELI - disk encryption GEOM class committed.
      ... Encryption Strength: ... GBDE - Uses AES128 for data encryption, ... GBDE - There are 4 independent access keys. ... GELI - There are 2 independent access keys. ...
      (freebsd-current)
    • Re: GELI - disk encryption GEOM class committed.
      ... Encryption Strength: ... GBDE - Uses AES128 for data encryption, ... GBDE - There are 4 independent access keys. ... GELI - There are 2 independent access keys. ...
      (freebsd-current)
    • GELI - disk encryption GEOM class committed.
      ... GELI is different than GBDE. ... It is fast - geli performs simple sector-to-sector encryption. ... Allows to backup/restore Master Keys, so when user have to quickly ...
      (freebsd-current)