LUKS question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am working on a project which has luks component in it. The requirement is
to call luks api in C and pass the passphrase. E.g I want to add a new
keyslot
by passing the keyfile (existing) and the new passhphrase to a function.

Looks like crypt_luksAddkey (libcryptsetup.h) does that but it only takes
the key-file.
And for the new passphrase, you seem to be using get_key. Is there a way to
pass
the passhphrase(new) as well?

I have noticed that the structure crypt_options has a const char
*passphrase. Can you please
tell me the significance of the variable. I am wondering if that is the one
which I am looking for?

Please let me know

Thank you,
Sanjay
-- 
49:02:1f:d9:d5:10:98:58:12:af:56:e4:f1:34:cf:7e -Sunj
www.sanjaysha.com

[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux