Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: jonathan.thieuleux@gmail.com, linux-crypto@vger.kernel.org
Subject: Re: Cipher block questions
Date: Tue, 21 Apr 2015 10:07:47 +0200	[thread overview]
Message-ID: <55360553.5040102@gmail.com> (raw)
In-Reply-To: <20150421072734.GA9043@arch.localdomain>

On 04/21/2015 09:27 AM, jonathan.thieuleux@gmail.com wrote:
> I'm implementing a new cipher block within the kernel and I'm stuck into a
> problem. My algorithm works pretty well, it can cipher and decipher a block. The
> algorithm also works with ECB, CBC, and CTR modes, however when I try to use the
> modes such as XTS or LRW I have the following errors which are attached. Did I
> need to add more code to make it work with XTS and other modes ?

First, from the cryptsetup log
  # Userspace crypto wrapper cannot use gost-xts-plain64 (-2).
it seems that there is some problem with loading of your gost cipher implementation.

What key size you are using in cryptsetup (default is probably 256bit)?

LRW and XTS modes requires *two* keys in fact (tweaking+encryption).

GOST should use 256bit key, so if you add --key-size 512 to your cryptsetup command
does it help?

Milan

  reply	other threads:[~2015-04-21  8:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-21  7:27 Cipher block questions jonathan.thieuleux
2015-04-21  8:07 ` Milan Broz [this message]
2015-04-21  9:52   ` jonathan.thieuleux

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=55360553.5040102@gmail.com \
    --to=gmazyland@gmail.com \
    --cc=jonathan.thieuleux@gmail.com \
    --cc=linux-crypto@vger.kernel.org \
    /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