* [dm-crypt] clarification on the use of API with key slot argument on plain volumes
@ 2011-10-02 21:26 .. ink ..
2011-10-03 15:34 ` Milan Broz
0 siblings, 1 reply; 2+ messages in thread
From: .. ink .. @ 2011-10-02 21:26 UTC (permalink / raw)
To: dm-crypt
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]
I am trying to move from using cryptsetup from the command line to using the
library and i dont seem to understand the API very well.
Most API like "crypt_activate_by_passphrase" has a keyslot argument in them,
plain volumes do not use key slots. How can this API and others that has a
keyslot argument be used on plain volumes?
[-- Attachment #2: Type: text/html, Size: 414 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dm-crypt] clarification on the use of API with key slot argument on plain volumes
2011-10-02 21:26 [dm-crypt] clarification on the use of API with key slot argument on plain volumes .. ink ..
@ 2011-10-03 15:34 ` Milan Broz
0 siblings, 0 replies; 2+ messages in thread
From: Milan Broz @ 2011-10-03 15:34 UTC (permalink / raw)
To: .. ink ..; +Cc: dm-crypt
On 10/02/2011 11:26 PM, .. ink .. wrote:
>
> I am trying to move from using cryptsetup from the command line to
> using the library and i dont seem to understand the API very well.
There will be soon documentation with some examples soon (days,
we have already some patches).
> Most API like "crypt_activate_by_passphrase" has a keyslot argument
> in them, plain volumes do not use key slots. How can this API and
> others that has a keyslot argument be used on plain volumes?
use CRYPT_ANY_SLOT (it is ignored anyway).
See cryptsetup.c implementation as example for now.
(I'll reply with some example later but I'll be not online for few days now...)
Milan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-03 15:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-02 21:26 [dm-crypt] clarification on the use of API with key slot argument on plain volumes .. ink ..
2011-10-03 15:34 ` Milan Broz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox