]> xenbits.xensource.com Git - libvirt.git/commit
util: Introduce encryption APIs
authorJohn Ferlan <jferlan@redhat.com>
Wed, 18 May 2016 15:29:06 +0000 (11:29 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 20 May 2016 15:09:01 +0000 (11:09 -0400)
commit1ce9c08ab349a4ce059216114e4fcdc3e559e96c
treec9470e6d421a69fdac3c159a3725ee754dde4ee7
parent6a3f4121a529d518b5aff03542745df48ba7ccef
util: Introduce encryption APIs

Introduce virCryptoHaveCipher and virCryptoEncryptData to handle
performing encryption.

 virCryptoHaveCipher:
   Boolean function to determine whether the requested cipher algorithm
   is available. It's expected this API will be called prior to
   virCryptoEncryptdata. It will return true/false.

 virCryptoEncryptData:
   Based on the requested cipher type, call the specific encryption
   API to encrypt the data.

Currently the only algorithm support is the AES 256 CBC encryption.

Adjust tests for the API's
configure.ac
src/libvirt_private.syms
src/util/vircrypto.c
src/util/vircrypto.h
tests/vircryptotest.c