<p><br>
On Jul 28, 2012 8:53 PM, "Heiko Baums" <<a href="mailto:lists@baums-on-web.de">lists@baums-on-web.de</a>> wrote:<br>
><br>
> Am Sat, 28 Jul 2012 19:44:01 +0200<br>
> schrieb Christoph Vigano <<a href="mailto:mail@cvigano.de">mail@cvigano.de</a>>:<br>
><br>
> > According to crypttab(5):<br>
> > "size=<br>
> > Specifies the key size in bits; see cryptsetup(8) for possible values<br>
> > and the default value of this option."<br>
> ><br>
> > As it is custom in cryptography, key sizes are given in bits, like RSA<br>
> > 4096 which means the key is 512 bytes long.<br>
> ><br>
> > If your former size argument was given in bytes, convert that number<br>
> > to bits and try again.<br>
><br>
> But you don't want to tell me, that Lennart Poettering also has written<br>
> his own dd. If this was really the case then I definitively would call<br>
> him mad. But if the new systemd-cryptsetup is using dd then size<br>
> wouldn't need to be in bits.<br>
><br>
> I'll try it anyway.<br>
><br>
> Heiko</p>
<p>Just read three man page please, it is documented there. From my memory, size is in bits and offset in bytes.</p>
<p>dd is not used. The key is not written to a temporary file, but libcryptsetup reads the relevant portion of the file/device directly.</p>
<p>Tom</p>