All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [dm-crypt] Pass+keyfile
@ 2014-12-01 14:54 0x14
  2014-12-01 16:39 ` Arno Wagner
  0 siblings, 1 reply; 20+ messages in thread
From: 0x14 @ 2014-12-01 14:54 UTC (permalink / raw)
  To: dm-crypt

> This construction is redundant and does not provide any
> additional security as compared to passphrase alone,
> assuming that your passphrase is secure.

Additional security, as I see it, will be:

1. If you have knowledge about encrypted device, you need to not only 
know the passphrase, but also have the keyfile (have physical access to 
it). Some sort of 2-FA
2. Separate keyfile may be easier to physical destruction, it may be 
crucial when you are in hurry to do that - small microsd card with 
keyfile VS encrypted harddrive. If I get it right, bigger encrypted 
containers in plain mode are harder to destroy also.

Isn`t it somehow comparable to having LUKS header on separate device 
(--header option)?

Am I wrong?

Thanks for patience in advance :)

P.S. Writing form another mail, sorry for possible confusion.

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [dm-crypt] Pass+keyfile
@ 2014-12-01  2:54 0x14
  2014-12-01 12:49 ` Arno Wagner
  0 siblings, 1 reply; 20+ messages in thread
From: 0x14 @ 2014-12-01  2:54 UTC (permalink / raw)
  To: dm-crypt

Hi there, is this construction secure? Assuming "keyfile" is a file and 
"/dev/device" is a block device, both made with /dev/urandom.

cryptsetup open --hash=sha512 --cipher=aes-xts-plain64 --type=plain 
keyfile keyfile_tmp && cat /dev/mapper/keyfile_tmp | \
cryptsetup open --hash=sha512 --cipher=aes-xts-plain64 --type=plain 
--key-file=- /dev/device cryptodevice && \
cryptsetup close keyfile_tmp && mount /dev/mapper/cryptodevice 
/media/cryptodevice

The goal is to use pass+keyfile to decrypt storage. I put it in a script 
and it works as it should at a glance. Are there alternatives or 
improvements? Stupid errors maybe?

Thanks.

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2014-12-03 16:19 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-01 14:54 [dm-crypt] Pass+keyfile 0x14
2014-12-01 16:39 ` Arno Wagner
2014-12-01 16:49   ` Sven Eschenberg
2014-12-01 17:37   ` 0x14
2014-12-01 22:25     ` Arno Wagner
2014-12-02  0:15       ` 0x14
2014-12-02  1:03         ` Arno Wagner
2014-12-02  2:43           ` 0x14
2014-12-02  3:31             ` Arno Wagner
2014-12-02  3:51               ` 0x14
2014-12-02 19:16       ` 0x14
2014-12-02 21:02         ` Arno Wagner
2014-12-02 22:48           ` 0x14
2014-12-02 23:22             ` Arno Wagner
2014-12-02 23:40               ` 0x14
2014-12-03 16:15                 ` Arno Wagner
2014-12-03 16:19                   ` Dragan Milivojević
  -- strict thread matches above, loose matches on Subject: below --
2014-12-01  2:54 0x14
2014-12-01 12:49 ` Arno Wagner
2014-12-01 13:49   ` Quentin Lefebvre

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.