All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] question to crypt_format function
@ 2015-10-20 14:27 Stephan Giehlow
  2015-10-20 15:30 ` Arno Wagner
  2015-10-20 18:23 ` Milan Broz
  0 siblings, 2 replies; 5+ messages in thread
From: Stephan Giehlow @ 2015-10-20 14:27 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]

Hi,



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-ex
ample.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?



Thanks for help.

Stephan Giehlow



im Auftrag

OpenLimit SignCubes AG

Zugerstrasse 74

CH-6341 Baar

Kanton Zug

Switzerland

Tel:   +49 30 400 35 10 - 10

E-Mail:  <mailto:s.giehlow@openlimit.com> s.giehlow@openlimit.com

Web:     <https://www.openlimit.com/> https://www.openlimit.com/

---

Nutzen Sie OpenLimit Signaturlösungen für die rechtssichere
Digitalisierung gemäß BSI TR RESISCAN.

 <https://www.openlimit.com/de/loesungen/ersetzendes-scannen.html>
https://www.openlimit.com/de/loesungen/ersetzendes-scannen.html


<https://www.bsi.bund.de/DE/Publikationen/TechnischeRichtlinien/tr03138/in
dex_htm.html>
https://www.bsi.bund.de/DE/Publikationen/TechnischeRichtlinien/tr03138/ind
ex_htm.html


[-- Attachment #2: Type: text/html, Size: 3865 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dm-crypt] question to crypt_format function
  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
  1 sibling, 0 replies; 5+ messages in thread
From: Arno Wagner @ 2015-10-20 15:30 UTC (permalink / raw)
  To: dm-crypt

Hello,

does the same thing happen when you run cryptsetup
manually from a commandline? In particular, what are 
the last steps printed when you do it manually with 
the '--debug' option?

Regards,
Arno Wagner


On Tue, Oct 20, 2015 at 16:27:16 CEST, Stephan Giehlow wrote:
> Hi,
> 
> 
> 
> 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-ex
> ample.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?
> 
> 
> 
> Thanks for help.
> 
> Stephan Giehlow
> 
> 
> 
> im Auftrag
> 
> OpenLimit SignCubes AG
> 
> Zugerstrasse 74
> 
> CH-6341 Baar
> 
> Kanton Zug
> 
> Switzerland
> 
> Tel:   +49 30 400 35 10 - 10
> 
> E-Mail:  <mailto:s.giehlow@openlimit.com> s.giehlow@openlimit.com
> 
> Web:     <https://www.openlimit.com/> https://www.openlimit.com/
> 
> ---
> 
> Nutzen Sie OpenLimit Signaturlösungen für die rechtssichere
> Digitalisierung gemäß BSI TR RESISCAN.
> 
>  <https://www.openlimit.com/de/loesungen/ersetzendes-scannen.html>
> https://www.openlimit.com/de/loesungen/ersetzendes-scannen.html
> 
> 
> <https://www.bsi.bund.de/DE/Publikationen/TechnischeRichtlinien/tr03138/in
> dex_htm.html>
> https://www.bsi.bund.de/DE/Publikationen/TechnischeRichtlinien/tr03138/ind
> ex_htm.html
> 

> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt


-- 
Arno Wagner,     Dr. sc. techn., Dipl. Inform.,    Email: arno@wagner.name
GnuPG: ID: CB5D9718  FP: 12D6 C03B 1B30 33BB 13CF  B774 E35C 5FA1 CB5D 9718
----
A good decision is based on knowledge and not on numbers. -- Plato

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dm-crypt] question to crypt_format function
  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
  2015-10-21  9:19   ` Stephan Giehlow
  1 sibling, 1 reply; 5+ messages in thread
From: Milan Broz @ 2015-10-20 18:23 UTC (permalink / raw)
  To: Stephan Giehlow, dm-crypt

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dm-crypt] question to crypt_format function
  2015-10-20 18:23 ` Milan Broz
@ 2015-10-21  9:19   ` Stephan Giehlow
  2015-10-21  9:46     ` Milan Broz
  0 siblings, 1 reply; 5+ messages in thread
From: Stephan Giehlow @ 2015-10-21  9:19 UTC (permalink / raw)
  To: Milan Broz, dm-crypt

Hi,

thanks for the fast answer. The cryptsetup binary itself works on the arm
device. I added debug logging to my source. When I perform the
crypt_format function I can see the Log "#Crypto backend () initialized".
On my developer virtual machine are more information - like "#Crypto
backen (Linux 3.7.10-1.32-desktop kernel CryptoAPI) initialized".

Is there any missing additional call to initialize any crypto backend?

Thanks,
Stephan

-----Ursprüngliche Nachricht-----
Von: Milan Broz [mailto:gmazyland@gmail.com]
Gesendet: Dienstag, 20. Oktober 2015 20:24
An: Stephan Giehlow <stephan.giehlow@openlimit.com>; dm-crypt@saout.de
Betreff: Re: [dm-crypt] question to crypt_format function

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-ex
ample.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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dm-crypt] question to crypt_format function
  2015-10-21  9:19   ` Stephan Giehlow
@ 2015-10-21  9:46     ` Milan Broz
  0 siblings, 0 replies; 5+ messages in thread
From: Milan Broz @ 2015-10-21  9:46 UTC (permalink / raw)
  To: Stephan Giehlow, dm-crypt

On 10/21/2015 11:19 AM, Stephan Giehlow wrote:
> Hi,
> 
> thanks for the fast answer. The cryptsetup binary itself works on the arm
> device. I added debug logging to my source. When I perform the
> crypt_format function I can see the Log "#Crypto backend () initialized".
> On my developer virtual machine are more information - like "#Crypto
> backen (Linux 3.7.10-1.32-desktop kernel CryptoAPI) initialized".
> 
> Is there any missing additional call to initialize any crypto backend?

No, it should be automatic. (The example works as it is in sources.)
So it depends what crypto backend libcryptsetup was compiled for (empty string
in message is definitely wrong), you apparently
use non-standard configuration (kernel crypto API is not default backend).

Anyway, I cannot say more without reading logs and strace.

Milan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-21  9:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2015-10-21  9:19   ` Stephan Giehlow
2015-10-21  9:46     ` Milan Broz

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.