summaryrefslogtreecommitdiffstats
path: root/crypto/cipher-gcrypt.c
diff options
context:
space:
mode:
authorDaniel P. Berrange2015-10-24 12:44:13 +0200
committerDaniel P. Berrange2016-03-17 15:41:15 +0100
commit7d9690148ac25bc755a759adab7d63f517d092b1 (patch)
tree4d0602424dc0864328c4c6617f318d646a3a0f51 /crypto/cipher-gcrypt.c
parentcrypto: wire up XTS mode for cipher APIs (diff)
downloadqemu-7d9690148ac25bc755a759adab7d63f517d092b1.tar.gz
qemu-7d9690148ac25bc755a759adab7d63f517d092b1.tar.xz
qemu-7d9690148ac25bc755a759adab7d63f517d092b1.zip
crypto: add block encryption framework
Add a generic framework for supporting different block encryption formats. Upon instantiating a QCryptoBlock object, it will read the encryption header and extract the encryption keys. It is then possible to call methods to encrypt/decrypt data buffers. There is also a mode whereby it will create/initialize a new encryption header on a previously unformatted volume. The initial framework comes with support for the legacy QCow AES based encryption. This enables code in the QCow driver to be consolidated later. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'crypto/cipher-gcrypt.c')
0 files changed, 0 insertions, 0 deletions