From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Tue, 20 Oct 2015 20:23:54 +0200 (CEST) Received: by wikq8 with SMTP id q8so59276268wik.1 for ; Tue, 20 Oct 2015 11:23:53 -0700 (PDT) References: <053701d10b43$6c6ad4b0$45407e10$@openlimit.com> From: Milan Broz Message-ID: <562686B6.3060904@gmail.com> Date: Tue, 20 Oct 2015 20:23:50 +0200 MIME-Version: 1.0 In-Reply-To: <053701d10b43$6c6ad4b0$45407e10$@openlimit.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Subject: Re: [dm-crypt] question to crypt_format function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stephan Giehlow , dm-crypt@saout.de 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-e= xample.html). > But we have one problem: When running the code on the device, the > crypt_format function will ends with the error =93Cannot initialize > crypto backend=94. 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