[dm-crypt] question to crypt_format function

Milan Broz gmazyland at gmail.com
Tue Oct 20 20:23:50 CEST 2015


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


More information about the dm-crypt mailing list