Skip to contentSkip to conversation

2.6.0-test2+Util-linux/cryptoapi

DISCUSSION [email protected] 3 participants 3 messages Jul 31, 2003 – Aug 13, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines

First of all, in util-linux 2.12 the keybits option is gone I wanted to have losetup/mount hash the passphrase

The patches I got were maximal, too much junk.
So I went for a minimal version instead.

It is usable (when the kernel part is stable, which it isn't today) but mount/losetup may well acquire a few options before it is conveniently usable.

(I do not read crypto lists, and see only a very small fraction of what passes by on lk, so if you want to influence util-linux an explicit cc is a good idea.)

Quoted 2 lines

has the encryption setup changed again since 2.4.x with hvr's testing cryptoapi stuff?

cryptoloop as it went in is essentially hvr's.

Andries

#1 lore raw
Quoted 6 lines · On Thu, 31 Jul 2003 11:41:25 +0200, [email protected] wrote:

The patches I got were maximal, too much junk.
So I went for a minimal version instead.

It is usable (when the kernel part is stable, which it isn't today) but mount/losetup may well acquire a few options before it is conveniently usable.

Can we discuss those options now? I find the latest losetup to be completely unusable, tho' I appreciate the effort that's gone into it so far.

Firstly, are the other key size choices (128-bit, 192-bit) gone for good? If so then I'll need to redo this entire hard disk (which currently uses 128-bit AES) before I can test 2.6 on my laptop.

Secondly, there's the issue of passphrase hashing. I agree with the decision to cut it out of losetup, but where do we put it now? Andries has suggested an external program, but this isn't as simple as it sounds. To get this working would require a new way of reading the passphrase, since the hashed passphrase might contain a newline, or a null. Maybe change the semantics of the -p option, so that:

losetup -e aes /dev/loop/10 /home/sluskyb/testloop

will work when I give it the passphrase "foobar", but also

	pwhash -h sha1 |losetup -e aes -k 128 -p 0 /dev/loop/0 \
		/dev/discs/disc0/part3

will read exactly 16 bytes of (probably) non-printable chars and use that as the key.

Questions? Comments? Flames?

Signature · 4 lines
Ben Slusky                      | A free society is a society
[email protected]          | where it is safe to be
[email protected]              | unpopular.
PGP keyID ADA44B3B              |               -Adlai Stevenson
#2 lore raw
In reply to [email protected]
Quoted 9 lines · On Thu, 31 Jul 2003 [email protected] wrote:
Quoted 2 lines

First of all, in util-linux 2.12 the keybits option is gone I wanted to have losetup/mount hash the passphrase

The patches I got were maximal, too much junk.
So I went for a minimal version instead.

It is usable (when the kernel part is stable, which it isn't today) but mount/losetup may well acquire a few options before it is conveniently usable.

I'm not sure what value of stable you want, I've been using 2.6.0-test1 (ac?) with crypto since it came out. Clearly there are a lot of things missing before 2.6 is ready for general use, but it sure is nice to have that filesystem protected. The crypto seems stable, as long as that's the main thing you do with the box.

I hope we can get the control of key length back, while I doubt that anyone who actually could break the default is going to be involved in anything I do, I'd like to see it for future applications.

Signature · 3 lines
bill davidsen <[email protected]>
  CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.