From: Milan Broz <gmazyland@gmail.com>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] SHAx and LUKS/cryptsetup
Date: Sun, 09 Mar 2014 19:01:34 +0100 [thread overview]
Message-ID: <531CAC7E.2050805@gmail.com> (raw)
In-Reply-To: <20140309174247.GA1752@fancy-poultry.org>
On 9.3.2014 18:42, Heinz Diehl wrote:
> Hi,
>
> while experimenting with LUKS/dmcrypt, I prepared a partition
> using "-h ripemd160 -c aes-xts-plain64". LuksDump shows:
>
> Version: 1
> Cipher name: aes
> Cipher mode: xts-plain64
> Hash spec: ripemd160
>
> However, lsmod shows that both sha1_generic and sha1_ssse3 modules are
> loaded. So I did a reboot without touching the encrypted device, and
> there was no SHAx module loaded. After accessing the encrypted drive
> it was, hence this is clearly the cause that these modules get loaded.
>
> My question: why are there any SHA1 modules loaded when then encrypted
> drive is NOT using it?
Probably some dependence inside kernel, cryptsetup should not cause
loading of these modules (moreover it uses hash from userspace gcrypt
for LUKS header processing, not from kernel).
Probably trace which exact command caused it, maybe there is some sha
checksum somewhere triggering it. Isn't it filesystem on top loading it?
How exactly do you activate device and "touch" it?
Milan
p.s.
If you are using kernel backend (not gcrypt one), sha1 is used as test
that interface works. It was the simple way at that time. So in this case
it is cryptsetup causing it ;-) Maybe it could by changed now by some more
clever test.
next prev parent reply other threads:[~2014-03-09 18:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-09 17:42 [dm-crypt] SHAx and LUKS/cryptsetup Heinz Diehl
2014-03-09 18:01 ` Milan Broz [this message]
2014-03-09 18:32 ` Heinz Diehl
2014-03-09 19:53 ` Milan Broz
2014-03-09 20:15 ` Arno Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=531CAC7E.2050805@gmail.com \
--to=gmazyland@gmail.com \
--cc=dm-crypt@saout.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.