All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: Stephan Giehlow <stephan.giehlow@openlimit.com>, dm-crypt@saout.de
Subject: Re: [dm-crypt] question to crypt_format function
Date: Tue, 20 Oct 2015 20:23:50 +0200	[thread overview]
Message-ID: <562686B6.3060904@gmail.com> (raw)
In-Reply-To: <053701d10b43$6c6ad4b0$45407e10$@openlimit.com>

On 10/20/2015 04:27 PM, Stephan Giehlow wrote:
> we are using libcryptsetup to generate a luks container on an arm
> device. The developed code comes from your example
> (https://gitlab.com/cryptsetup/cryptsetup/wikis/API/crypt_luks_usage_8c-example.html).
> But we have one problem: When running the code on the device, the
> crypt_format function will ends with the error “Cannot initialize
> crypto backend”. Do you have any tip to solve the error?

Something is probably misconfigured on your system.

If cryptsetup binary itself works, try to add debug info to your program:

crypt_set_debug_level(CRYPT_DEBUG_ALL);

and also try to strace it (do not use valuable password though:)

If it there is still not useful explanation in log, please send the output of these logs.

Thanks,
Milan

  parent reply	other threads:[~2015-10-20 18:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-20 14:27 [dm-crypt] question to crypt_format function Stephan Giehlow
2015-10-20 15:30 ` Arno Wagner
2015-10-20 18:23 ` Milan Broz [this message]
2015-10-21  9:19   ` Stephan Giehlow
2015-10-21  9:46     ` 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=562686B6.3060904@gmail.com \
    --to=gmazyland@gmail.com \
    --cc=dm-crypt@saout.de \
    --cc=stephan.giehlow@openlimit.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.