qapi storage-daemon/qapi: Fix documentation section structure
[qemu/armbru.git] / qapi / cryptodev.json
blobcf960ea81fd3421617a7819cf436303308ea4453
1 # -*- Mode: Python -*-
2 # vim: filetype=python
4 # This work is licensed under the terms of the GNU GPL, version 2 or later.
5 # See the COPYING file in the top-level directory.
7 ##
8 # = Cryptography devices
9 ##
12 # @QCryptodevBackendAlgType:
14 # The supported algorithm types of a crypto device.
16 # @sym: symmetric encryption
17 # @asym: asymmetric Encryption
19 # Since: 8.0
21 { 'enum': 'QCryptodevBackendAlgType',
22   'prefix': 'QCRYPTODEV_BACKEND_ALG',
23   'data': ['sym', 'asym']}
26 # @QCryptodevBackendServiceType:
28 # The supported service types of a crypto device.
30 # Since: 8.0
32 { 'enum': 'QCryptodevBackendServiceType',
33   'prefix': 'QCRYPTODEV_BACKEND_SERVICE',
34   'data': ['cipher', 'hash', 'mac', 'aead', 'akcipher']}
37 # @QCryptodevBackendType:
39 # The crypto device backend type
41 # @builtin: the QEMU builtin support
42 # @vhost-user: vhost-user
43 # @lkcf: Linux kernel cryptographic framework
45 # Since: 8.0
47 { 'enum': 'QCryptodevBackendType',
48   'prefix': 'QCRYPTODEV_BACKEND_TYPE',
49   'data': ['builtin', 'vhost-user', 'lkcf']}
52 # @QCryptodevBackendClient:
54 # Information about a queue of crypto device.
56 # @queue: the queue index of the crypto device
58 # @type: the type of the crypto device
60 # Since: 8.0
62 { 'struct': 'QCryptodevBackendClient',
63   'data': { 'queue': 'uint32',
64             'type': 'QCryptodevBackendType' } }
67 # @QCryptodevInfo:
69 # Information about a crypto device.
71 # @id: the id of the crypto device
73 # @service: supported service types of a crypto device
75 # @client: the additional infomation of the crypto device
77 # Since: 8.0
79 { 'struct': 'QCryptodevInfo',
80   'data': { 'id': 'str',
81             'service': ['QCryptodevBackendServiceType'],
82             'client': ['QCryptodevBackendClient'] } }
85 # @query-cryptodev:
87 # Returns information about current crypto devices.
89 # Returns: a list of @QCryptodevInfo
91 # Since: 8.0
93 { 'command': 'query-cryptodev', 'returns': ['QCryptodevInfo']}