diff options
| author | Daniel P. Berrange | 2015-11-19 18:09:01 +0100 |
|---|---|---|
| committer | Daniel P. Berrange | 2015-12-23 12:02:20 +0100 |
| commit | d8c02bcc9404b65e8cc290c009bf43f571ec967f (patch) | |
| tree | 3f82cfbf40f036e9cbd62fc5aa6920c63d49a330 /qapi | |
| parent | crypto: move QCryptoHashAlgorithm enum definition into QAPI (diff) | |
| download | qemu-d8c02bcc9404b65e8cc290c009bf43f571ec967f.tar.gz qemu-d8c02bcc9404b65e8cc290c009bf43f571ec967f.tar.xz qemu-d8c02bcc9404b65e8cc290c009bf43f571ec967f.zip | |
crypto: move QCryptoCipherAlgorithm/Mode enum definitions into QAPI
The QCryptoCipherAlgorithm and QCryptoCipherMode enums are
defined in the crypto/cipher.h header. In the future some
QAPI types will want to reference the hash enums, so move
the enum definition into QAPI too.
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'qapi')
| -rw-r--r-- | qapi/crypto.json | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/qapi/crypto.json b/qapi/crypto.json index 0706ded59d..4bd690fcfb 100644 --- a/qapi/crypto.json +++ b/qapi/crypto.json @@ -48,3 +48,33 @@ { 'enum': 'QCryptoHashAlgorithm', 'prefix': 'QCRYPTO_HASH_ALG', 'data': ['md5', 'sha1', 'sha256']} + + +## +# QCryptoCipherAlgorithm: +# +# The supported algorithms for content encryption ciphers +# +# @aes-128: AES with 128 bit / 16 byte keys +# @aes-192: AES with 192 bit / 24 byte keys +# @aes-256: AES with 256 bit / 32 byte keys +# @des-rfb: RFB specific variant of single DES. Do not use except in VNC. +# Since: 2.6 +## +{ 'enum': 'QCryptoCipherAlgorithm', + 'prefix': 'QCRYPTO_CIPHER_ALG', + 'data': ['aes-128', 'aes-192', 'aes-256', 'des-rfb']} + + +## +# QCryptoCipherMode: +# +# The supported modes for content encryption ciphers +# +# @ecb: Electronic Code Book +# @cbc: Cipher Block Chaining +# Since: 2.6 +## +{ 'enum': 'QCryptoCipherMode', + 'prefix': 'QCRYPTO_CIPHER_MODE', + 'data': ['ecb', 'cbc']} |
