From: Milan Broz <mbroz@redhat.com>
To: ".. ink .." <mhogomchungu@gmail.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] clarification on the use of API with key slot argument on plain volumes
Date: Mon, 03 Oct 2011 17:34:28 +0200 [thread overview]
Message-ID: <4E89D604.90609@redhat.com> (raw)
In-Reply-To: <CAFnMBaS6EfGGwJx0RZnLnWL1zHN6-GE-h6h4qBQUdkWYc5tECA@mail.gmail.com>
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
prev parent reply other threads:[~2011-10-03 15:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=4E89D604.90609@redhat.com \
--to=mbroz@redhat.com \
--cc=dm-crypt@saout.de \
--cc=mhogomchungu@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox