mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
cryptodev: Introduce cryptodev alg type in QAPI
Introduce cryptodev alg type in cryptodev.json, then apply this to related codes, and drop 'enum CryptoDevBackendAlgType'. There are two options: 1, { 'enum': 'QCryptodevBackendAlgType', 'prefix': 'CRYPTODEV_BACKEND_ALG', 'data': ['sym', 'asym']} Then we can keep 'CRYPTODEV_BACKEND_ALG_SYM' and avoid lots of changes. 2, changes in this patch(with prefix 'QCRYPTODEV_BACKEND_ALG'). To avoid breaking the rule of QAPI, use 2 here. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: zhenwei pi <pizhenwei@bytedance.com> Message-Id: <20230301105847.253084-4-pizhenwei@bytedance.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
3f478371fd
commit
999c789f00
6 changed files with 30 additions and 22 deletions
|
@ -4,6 +4,20 @@
|
|||
# This work is licensed under the terms of the GNU GPL, version 2 or later.
|
||||
# See the COPYING file in the top-level directory.
|
||||
|
||||
##
|
||||
# @QCryptodevBackendAlgType:
|
||||
#
|
||||
# The supported algorithm types of a crypto device.
|
||||
#
|
||||
# @sym: symmetric encryption
|
||||
# @asym: asymmetric Encryption
|
||||
#
|
||||
# Since: 8.0
|
||||
##
|
||||
{ 'enum': 'QCryptodevBackendAlgType',
|
||||
'prefix': 'QCRYPTODEV_BACKEND_ALG',
|
||||
'data': ['sym', 'asym']}
|
||||
|
||||
##
|
||||
# @QCryptodevBackendType:
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue