Skip to content

Commit

Permalink
crypto: implement the LUKS block encryption format
Browse files Browse the repository at this point in the history
Provide a block encryption implementation that follows the
LUKS/dm-crypt specification.

This supports all combinations of hash, cipher algorithm,
cipher mode and iv generator that are implemented by the
current crypto layer.

There is support for opening existing volumes formatted
by dm-crypt, and for formatting new volumes. In the latter
case it will only use key slot 0.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
  • Loading branch information
berrange committed Mar 17, 2016
1 parent 7d96901 commit 3e308f2
Show file tree
Hide file tree
Showing 6 changed files with 1,530 additions and 5 deletions.
1 change: 1 addition & 0 deletions crypto/Makefile.objs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ crypto-obj-y += afsplit.o
crypto-obj-y += xts.o
crypto-obj-y += block.o
crypto-obj-y += block-qcow.o
crypto-obj-y += block-luks.o

# Let the userspace emulators avoid linking gnutls/etc
crypto-aes-obj-y = aes.o
Expand Down
Loading

0 comments on commit 3e308f2

Please sign in to comment.