diff options
author | zhenwei pi <pizhenwei@bytedance.com> | 2023-03-01 18:58:38 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-03-07 12:38:59 -0500 |
commit | 999c789f0018151906484c25faff495b89b549dc (patch) | |
tree | 731407800327acf3630f0c1de2916984f73bf914 /qapi/cryptodev.json | |
parent | 3f478371fde24778ac09b4f7ffa82b00e87a97ec (diff) | |
download | qemu-999c789f0018151906484c25faff495b89b549dc.zip qemu-999c789f0018151906484c25faff495b89b549dc.tar.gz qemu-999c789f0018151906484c25faff495b89b549dc.tar.bz2 |
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>
Diffstat (limited to 'qapi/cryptodev.json')
-rw-r--r-- | qapi/cryptodev.json | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/qapi/cryptodev.json b/qapi/cryptodev.json index b65edbe..ebb6852 100644 --- a/qapi/cryptodev.json +++ b/qapi/cryptodev.json @@ -5,6 +5,20 @@ # 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: # # The crypto device backend type |