[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 1/7] crypto: Introduce ECDSA algorithm API
From: |
Lei He |
Subject: |
[PATCH v2 1/7] crypto: Introduce ECDSA algorithm API |
Date: |
Wed, 22 Jun 2022 17:15:43 +0800 |
Introduce ECDSA related structures to qapi-crypto.
Signed-off-by: lei he <helei.sig11@bytedance.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
---
qapi/crypto.json | 28 ++++++++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
diff --git a/qapi/crypto.json b/qapi/crypto.json
index 653e6e3f3d..c42e281494 100644
--- a/qapi/crypto.json
+++ b/qapi/crypto.json
@@ -545,7 +545,7 @@
##
{ 'enum': 'QCryptoAkCipherAlgorithm',
'prefix': 'QCRYPTO_AKCIPHER_ALG',
- 'data': ['rsa']}
+ 'data': ['rsa', 'ecdsa']}
##
# @QCryptoAkCipherKeyType:
@@ -587,6 +587,29 @@
'padding-alg': 'QCryptoRSAPaddingAlgorithm'}}
##
+# @QCryptoCurveID:
+#
+# The known curved for ECC algorithms.
+#
+# Since: 7.1
+##
+{ 'enum': 'QCryptoCurveID',
+ 'prefix': 'QCRYPTO_CURVE_ID',
+ 'data': ['nist-p192', 'nist-p256', 'nist-p384']}
+
+##
+# @QCryptoAkCipherOptionsECDSA:
+#
+# Specific parameters for ECDSA algorithm.
+#
+# @curve-id: QCryptoCurveId
+#
+# Since: 7.1
+##
+{ 'struct': 'QCryptoAkCipherOptionsECDSA',
+ 'data': { 'curve-id': 'QCryptoCurveID' }}
+
+##
# @QCryptoAkCipherOptions:
#
# The options that are available for all asymmetric key algorithms
@@ -597,4 +620,5 @@
{ 'union': 'QCryptoAkCipherOptions',
'base': { 'alg': 'QCryptoAkCipherAlgorithm' },
'discriminator': 'alg',
- 'data': { 'rsa': 'QCryptoAkCipherOptionsRSA' }}
+ 'data': { 'rsa': 'QCryptoAkCipherOptionsRSA',
+ 'ecdsa': 'QCryptoAkCipherOptionsECDSA' }}
--
2.11.0
- [PATCH v2 0/7] crypto: Introduce ECDSA algorithm, Lei He, 2022/06/22
- [PATCH v2 1/7] crypto: Introduce ECDSA algorithm API,
Lei He <=
- [PATCH v2 5/7] crypto: Implement ECDSA algorithm by hogweed, Lei He, 2022/06/22
- [PATCH v2 4/7] crypto: Add ECDSA key parser, Lei He, 2022/06/22
- [PATCH v2 6/7] crypto: Implement ECDSA algorithm by gcrypt, Lei He, 2022/06/22
- [PATCH v2 3/7] crypto: Remove "qemu/osdep.h" in rsakey.h, Lei He, 2022/06/22
- [PATCH v2 2/7] crypto: Support more ASN.1 types, Lei He, 2022/06/22
- [PATCH v2 7/7] crypto: Add test suite for ECDSA algorithm, Lei He, 2022/06/22
- PING: [PATCH v2 0/7] crypto: Introduce ECDSA algorithm, Lei He, 2022/06/30