DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: "booger@post.pl" <a.stanoszek@core.com.pl>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] cryptsetup with des or des3
Date: Sat, 26 Jun 2010 17:29:08 +0200	[thread overview]
Message-ID: <4C261CC4.7080308@redhat.com> (raw)
In-Reply-To: <1954592487.20100612200634@core.com.pl>

On 06/12/2010 08:06 PM, booger@post.pl wrote:
> Hello,
>
>   I own the QNAP TS419 PRO NAS device which is basically:
>
>   Linux NAS 2.6.30.6 #1 Tue Apr 27 02:06:10 CST 2010 armv5tel unknown
>
>   It  has dm-crypt support and I am trying to encrypt my external disk,
>   connected  by  esata interface. It is visible as /dev/sdy, it has one
>   partition, /dev/sdy1.
>
>   Unfortunatelly when I do cryptsetup luksFormat I get following error message:


The command fails, because you are trying to use AES, not DES or triple DES.
If there is no aes module (try modprobe aes) and you really want to force use 3DES,
you can - just you have to specify key size also.
(But you cannot use ESSIV here, just plain or benbi type IV mode.)

For DES:
cryptsetup -c des-cbc-plain -s 64 luksFormat <dev>

FOR 3DES:
cryptsetup -c des3_ede-cbc-plain -s 192 luksFormat <dev>

Milan

  reply	other threads:[~2010-06-26 15:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-12 18:06 [dm-crypt] cryptsetup with des or des3 booger@post.pl
2010-06-26 15:29 ` Milan Broz [this message]
2010-06-26 18:39   ` 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=4C261CC4.7080308@redhat.com \
    --to=mbroz@redhat.com \
    --cc=a.stanoszek@core.com.pl \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox