Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: Stelios Bounanos <sb-lst@enotty.net>
Cc: dm-crypt@saout.de, linux-crypto@vger.kernel.org
Subject: Re: [dm-crypt] cryptsetup with arc4 cipher
Date: Wed, 05 Aug 2009 15:09:59 +0200	[thread overview]
Message-ID: <4A7984A7.40109@redhat.com> (raw)
In-Reply-To: <87zlaf3zl0.wl@obsidian.enotty.net>

Stelios Bounanos wrote:
> I was surprised to see arc4 perform so badly, particularly since
> "openssl speed" results tell a very different story.  I decided to do
> some simple benchmarking of my own but I can't seem to get cryptsetup to
> work with arc4:
> 
>   # cryptsetup luksFormat --align-payload=512 -q -c arc4 /dev/sda4 key
>   # cryptsetup luksOpen -d key /dev/sda4 ctest
>     Command failed: No key available with this passphrase.
> 
> The above commands work fine with aes.  I can see arc4 in /proc/crypto.
> 
> Any ideas?

There is apparently some problem in kernel, not sure if dm-crypt or crypto
api one, This ARC4 configuration is allowed (no errors) but produces something
more like random generator:-)

one sector device:
# dmsetup create x --table "0 1 crypt arc4-cbc-plain 0123456789abcdef 0 /dev/sdb 0"

# sha256sum /dev/mapper/x
d37afeeb57a60b69715edd99f2a1523e77f6be51a1c61c56efc91ed691c90dfc  /dev/mapper/x

# sha256sum /dev/mapper/x
fdc87e8e9f158d26e58c5b48c80375b56cc24d0c088872f4aacc7e19fb5c5599  /dev/mapper/x

Not sure what's wrong yet...

Milan
--
mbroz@redhat.com

       reply	other threads:[~2009-08-05 13:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87zlaf3zl0.wl@obsidian.enotty.net>
2009-08-05 13:09 ` Milan Broz [this message]
2009-08-05 20:30   ` [dm-crypt] cryptsetup with arc4 cipher Sebastian Andrzej Siewior
2009-08-06  7:46     ` Milan Broz
2009-08-06  8:38       ` Sebastian Andrzej Siewior
2009-08-06  9:19         ` Herbert Xu
     [not found]       ` <4A7A8A73.706-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-08-06 17:07         ` Stelios Bounanos
2009-08-08  3:10           ` [dm-crypt] " Herbert Xu
2009-08-08  3:08     ` Herbert Xu
2009-08-08  3:13       ` Herbert Xu

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=4A7984A7.40109@redhat.com \
    --to=mbroz@redhat.com \
    --cc=dm-crypt@saout.de \
    --cc=linux-crypto@vger.kernel.org \
    --cc=sb-lst@enotty.net \
    /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