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.
8 # = Cryptography devices
12 # @QCryptodevBackendAlgType:
14 # The supported algorithm types of a crypto device.
16 # @sym: symmetric encryption
17 # @asym: asymmetric Encryption
21 { 'enum': 'QCryptodevBackendAlgType',
22 'prefix': 'QCRYPTODEV_BACKEND_ALG',
23 'data': ['sym', 'asym']}
26 # @QCryptodevBackendServiceType:
28 # The supported service types of a crypto device.
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
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
62 { 'struct': 'QCryptodevBackendClient',
63 'data': { 'queue': 'uint32',
64 'type': 'QCryptodevBackendType' } }
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
79 { 'struct': 'QCryptodevInfo',
80 'data': { 'id': 'str',
81 'service': ['QCryptodevBackendServiceType'],
82 'client': ['QCryptodevBackendClient'] } }
87 # Returns information about current crypto devices.
89 # Returns: a list of @QCryptodevInfo
93 { 'command': 'query-cryptodev', 'returns': ['QCryptodevInfo']}