DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: Vasile Catalin-B50542 <catalin.vasile@freescale.com>
Cc: Lars Winterfeld <lars.winterfeld@tu-ilmenau.de>, dm-crypt@saout.de
Subject: Re: [dm-crypt] out of order encryption
Date: Thu, 6 Aug 2015 13:48:02 +0200	[thread overview]
Message-ID: <55C34972.9020007@gmail.com> (raw)
In-Reply-To: <55C345CA.90101@freescale.com>

On 08/06/2015 01:32 PM, Vasile Catalin-B50542 wrote:
> I am sending crypto requests to a hardware component which has
> an option to keeping them in order or not. I was trying to use the out of
> order option because this would let requests run in parallel.
> If I tried running them with the out of order option bun then I get:
> No key available with this passphrase.
> When trying to execute the following commands:
> cryptsetup -c aes-xts-plain -y -v luksFormat /dev/sda1
> cryptsetup open /dev/sda1 test_xts1


Sigh. Please when you asking about some explicit problem, please
always mention it from the beginning...

So this is probably unrelated to dmcrypt. Userspace cryptsetup could use
kernel crypto API wrapper directly (add --debug and you will see,
there should be log message that it uses kernel crypto userspace interface).

This seems like a bug in the kernel crypto API provider, what exactly it is?
What architecture?

We have seen the same problem with Raspbery PI2 & NEON crypto driver
(it was a bug in kernel code), I guess it is the same here.

Milan

> 
> On 06.08.2015 14:19, Lars Winterfeld wrote:
>> Am 06.08.2015 um 12:38 schrieb Vasile Catalin-B50542:
>>> Does the underlying encryption layer (CryptoAPI) have to ensure the
>>> complete callbacks are called in the order the requests were submitted?
>> Are you thinking about parallelization or asynchronous processing?
>>
> 
> 
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt
> 

  parent reply	other threads:[~2015-08-06 11:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-06  7:00 [dm-crypt] out of order encryption Vasile Catalin-B50542
2015-08-06  9:15 ` Milan Broz
2015-08-06 10:12   ` Vasile Catalin-B50542
2015-08-06 10:38   ` Vasile Catalin-B50542
2015-08-06 11:06     ` Milan Broz
2015-08-06 11:19     ` Lars Winterfeld
2015-08-06 11:32       ` Vasile Catalin-B50542
2015-08-06 11:46         ` Lars Winterfeld
2015-08-06 11:48         ` Milan Broz [this message]
2015-08-06 12:10           ` Vasile Catalin-B50542
2015-08-06 12:40             ` Milan Broz

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=55C34972.9020007@gmail.com \
    --to=gmazyland@gmail.com \
    --cc=catalin.vasile@freescale.com \
    --cc=dm-crypt@saout.de \
    --cc=lars.winterfeld@tu-ilmenau.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