Mageia Bugzilla – Attachment 975 Details for
Bug 3092
Poor cipher choice when creating an encrypted filesystem.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch to specify cipher for the luksFormat command
dmcrypt.pm.patch (text/plain), 568 bytes, created by
Dave Hodgins
on 2011-10-18 05:57:23 CEST
(
hide
)
Description:
Patch to specify cipher for the luksFormat command
Filename:
MIME Type:
Creator:
Dave Hodgins
Created:
2011-10-18 05:57:23 CEST
Size:
568 bytes
patch
obsolete
>--- /usr/lib/libDrakX/fs/dmcrypt.pm.original 2011-05-26 17:57:45.000000000 -0400 >+++ /usr/lib/libDrakX/fs/dmcrypt.pm 2011-10-17 23:35:53.498846560 -0400 >@@ -65,7 +65,7 @@ > > my $tmp_key_file = "/tmp/.dmcrypt_key-$$"; > common::with_private_tmp_file($tmp_key_file, $part->{dmcrypt_key}, sub { >- _run_or_die('luksFormat', '--batch-mode', devices::make($part->{device}), $_[0]); >+ _run_or_die('--cipher=aes-xts-benbi', '--key-size=512', 'luksFormat', '--batch-mode', devices::make($part->{device}), $_[0]); > }); > fs::format::after_formatting($part, 1); > }
--- /usr/lib/libDrakX/fs/dmcrypt.pm.original 2011-05-26 17:57:45.000000000 -0400 +++ /usr/lib/libDrakX/fs/dmcrypt.pm 2011-10-17 23:35:53.498846560 -0400 @@ -65,7 +65,7 @@ my $tmp_key_file = "/tmp/.dmcrypt_key-$$"; common::with_private_tmp_file($tmp_key_file, $part->{dmcrypt_key}, sub { - _run_or_die('luksFormat', '--batch-mode', devices::make($part->{device}), $_[0]); + _run_or_die('--cipher=aes-xts-benbi', '--key-size=512', 'luksFormat', '--batch-mode', devices::make($part->{device}), $_[0]); }); fs::format::after_formatting($part, 1); }
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3092
: 975