Skip to contentSkip to conversation

Security concern: gpg keyfile vs passphrase

dm-crypt lyz 5 participants 6 messages Jul 7, 2015 – Jul 9, 2015 1 message not in the archive

lore
Share & tools
lore

lyz

author
#0 lore raw

Hi all,

I'm encrypting my whole system under LUKS, and I've seen that in the wiki of Arch and Gentoo they suggest to use a keyfile and encrypt it with gpg.

Why is more secure to encrypt a keyfile with a passphrase and then encrypt the device with the keyfile rather than encrypting the device directly with the passphrase?

Against a brute force attack the passphrase is the same, so they should be equally secure, am I wrong?

Thank you

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#2 lore raw

The keyfile will be stored in the /boot partition.

My question is if it's in a cryptographic way more secure, like if gpg encryption of a keyfile is more difficult to break rather than a dm-crypt encryption of a device, therefore it's logical to use a keyfile to encrypt the device and gpg to encrypt the keyfile.

Thanks

Quoted 41 lines · wintonian

A quick guess,

In this scenario you have the following:-

A, something physical - i.e. a keyfile.
plus
B, something known - i.e. a pass phrase.

Which equals something more secure

I guess there might be more to it than that, but I assume that's part of it.

Regards
Robert

Quoted 23 lines · lyz

Hi all,

I'm encrypting my whole system under LUKS, and I've seen that in the wiki of Arch and Gentoo they suggest to use a keyfile and encrypt it with gpg.

Why is more secure to encrypt a keyfile with a passphrase and then encrypt the device with the keyfile rather than encrypting the device directly with the passphrase?

Against a brute force attack the passphrase is the same, so they should be equally secure, am I wrong?

Thank you

_______________________________________________
dm-crypt mailing list
[email protected]
http://www.saout.de/mailman/listinfo/dm-crypt

#3 lore raw

I think a keyfile is only better if it resides in a different place than the LUKS header, i.e. is on an USB stick that gets removed or the like and can hence act as an extra factor.

Crtypto-wise, if yoy use a high-entropy passphrase,see FAQ Item 5.1 at
https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions/
...I do not see any reason why using GnuPG to protect the passhrase would be any more secure.

Arno

Quoted 59 lines · lyz

The keyfile will be stored in the /boot partition.

My question is if it's in a cryptographic way more secure, like if gpg encryption of a keyfile is more difficult to break rather than a dm-crypt encryption of a device, therefore it's logical to use a keyfile to encrypt the device and gpg to encrypt the keyfile.

Thanks

Quoted 10 lines · wintonian

A quick guess,

In this scenario you have the following:-

A, something physical - i.e. a keyfile.
plus
B, something known - i.e. a pass phrase.

Which equals something more secure

Quoted 31 lines

I guess there might be more to it than that, but I assume that's part of it.

Regards
Robert

Quoted 23 lines · lyz

Hi all,

I'm encrypting my whole system under LUKS, and I've seen that in the wiki of Arch and Gentoo they suggest to use a keyfile and encrypt it with gpg.

Why is more secure to encrypt a keyfile with a passphrase and then encrypt the device with the keyfile rather than encrypting the device directly with the passphrase?

Against a brute force attack the passphrase is the same, so they should be equally secure, am I wrong?

Thank you

_______________________________________________
dm-crypt mailing list
[email protected]
http://www.saout.de/mailman/listinfo/dm-crypt

_______________________________________________
dm-crypt mailing list
[email protected]
http://www.saout.de/mailman/listinfo/dm-crypt

Signature · 7 lines
Arno Wagner,     Dr. sc. techn., Dipl. Inform.,    Email: [email protected]
GnuPG: ID: CB5D9718  FP: 12D6 C03B 1B30 33BB 13CF  B774 E35C 5FA1 CB5D 9718
----
A good decision is based on knowledge and not on numbers. -- Plato

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier
#4 lore raw

It's a simple strategy to mitigate physical theft, if your 'key-material' is on a moveable device. (while it is trivial to acquire a physical object unnoticed it's much harder to acquire something from the brain of a person unnoticed, I'd assume)

-Sven

Quoted 91 lines · Arno Wagner

I think a keyfile is only better if it resides in a different place than the LUKS header, i.e. is on an USB stick that gets removed or the like and can hence act as an extra factor.

Crtypto-wise, if yoy use a high-entropy passphrase,see FAQ Item 5.1 at
https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions/
...I do not see any reason why using GnuPG to protect the passhrase would be any more secure.

Arno

Quoted 57 lines · lyz

The keyfile will be stored in the /boot partition.

My question is if it's in a cryptographic way more secure, like if gpg encryption of a keyfile is more difficult to break rather than a dm-crypt encryption of a device, therefore it's logical to use a keyfile to encrypt the device and gpg to encrypt the keyfile.

Thanks

Quoted 11 lines · wintonian

A quick guess,

In this scenario you have the following:-

A, something physical - i.e. a keyfile.
plus
B, something known - i.e. a pass phrase.

Which equals something more secure

I guess there might be more to it than that, but I assume that's part

of

Quoted 17 lines

it.

Regards
Robert

Quoted 11 lines · lyz

Hi all,

I'm encrypting my whole system under LUKS, and I've seen that in the wiki of Arch and Gentoo they suggest to use a keyfile and encrypt it with gpg.

Why is more secure to encrypt a keyfile with a passphrase and then encrypt the device with the keyfile rather than encrypting the device directly with the passphrase?

Against a brute force attack the passphrase is the same, so they

should

Quoted 7 lines
Quoted 7 lines

be equally secure, am I wrong?

Thank you

Quoted 6 lines
Quoted 5 lines

_______________________________________________
dm-crypt mailing list
[email protected]
http://www.saout.de/mailman/listinfo/dm-crypt

Quoted 4 lines

_______________________________________________
dm-crypt mailing list
[email protected]
http://www.saout.de/mailman/listinfo/dm-crypt

--
Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: [email protected]
GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718
----
A good decision is based on knowledge and not on numbers. -- Plato

If it's in the news, don't worry about it. The very definition of "news" is "something that hardly ever happens." -- Bruce Schneier
_______________________________________________
dm-crypt mailing list
[email protected]
http://www.saout.de/mailman/listinfo/dm-crypt

#5 lore raw
In reply to lyz

(replying to the list rather than the individual might be a better idea)

A quick guess,

In this scenario you have the following:-

A, something physical - i.e. a keyfile.
plus
B, something known - i.e. a pass phrase.

Which equals something more secure

I guess there might be more to it than that, but I assume that's part of it.

Regards
Robert

Quoted 23 lines · lyz

Hi all,

I'm encrypting my whole system under LUKS, and I've seen that in the wiki of Arch and Gentoo they suggest to use a keyfile and encrypt it with gpg.

Why is more secure to encrypt a keyfile with a passphrase and then encrypt the device with the keyfile rather than encrypting the device directly with the passphrase?

Against a brute force attack the passphrase is the same, so they should be equally secure, am I wrong?

Thank you

_______________________________________________
dm-crypt mailing list
[email protected]
http://www.saout.de/mailman/listinfo/dm-crypt

#6 lore raw
In reply to lyz
Quoted 3 lines · lyz

I'm encrypting my whole system under LUKS, and I've seen that in the wiki of Arch and Gentoo they suggest to use a keyfile and encrypt it with gpg.

What are the URL's?

David