New APIs: Support for creating LUKS and managing keys.
authorRichard Jones <rjones@redhat.com>
Thu, 22 Jul 2010 10:00:59 +0000 (11:00 +0100)
committerRichard Jones <rjones@redhat.com>
Thu, 22 Jul 2010 15:51:56 +0000 (16:51 +0100)
commit945e569db64ab2608b21feba0aa94044c9835ac3
tree26f47a5537c954fd9bb69ff1311c56fa46c20fc1
parent2fd8c259d3daa88b0cdf98090bb57f3dbd178432
New APIs: Support for creating LUKS and managing keys.

This commit adds four APIs for creating new LUKS devices
and key management.  These are:

  luks_format         Format a LUKS device with the default cipher.
  luks_format_cipher  Format with a chosen cipher.
  luks_add_key        Add another key to an existing device.
  luks_kill_slot      Delete a key from an existing device.

This enables all the significant functionality of the
cryptsetup luks* commands.

Note that you can obtain the UUID of a LUKS device already
by using vfs-uuid.

This also includes a regression test covering all the LUKS
functions.
TODO
daemon/luks.c
regressions/Makefile.am
regressions/test-luks.sh [new file with mode: 0755]
src/MAX_PROC_NR
src/generator.ml