Skip to content
Snippets Groups Projects
  • Daniel P. Berrangé's avatar
    7d969014
    crypto: add block encryption framework · 7d969014
    Daniel P. Berrangé authored
    
    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: default avatarEric Blake <eblake@redhat.com>
    Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
    7d969014
    History
    crypto: add block encryption framework
    Daniel P. Berrangé authored
    
    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: default avatarEric Blake <eblake@redhat.com>
    Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>