From: Markus Armbruster <armbru@redhat.com>
To: Jamin Lin <jamin_lin@aspeedtech.com>
Cc: "Daniel P. Berrangé" <berrange@redhat.com>,
"Cédric Le Goater" <clg@kaod.org>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Steven Lee" <steven_lee@aspeedtech.com>,
"Troy Lee" <leetroy@gmail.com>,
"Kane Chen" <kane_chen@aspeedtech.com>,
"Andrew Jeffery" <andrew@codeconstruct.com.au>,
"Joel Stanley" <joel@jms.id.au>, "Eric Blake" <eblake@redhat.com>,
"Fabiano Rosas" <farosas@suse.de>,
"Laurent Vivier" <lvivier@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"open list:All patches CC here" <qemu-devel@nongnu.org>,
"open list:ASPEED BMCs" <qemu-arm@nongnu.org>,
"Troy Lee" <troy_lee@aspeedtech.com>
Subject: Re: [PATCH v1 1/8] qapi/crypto: Add ECDSA algorithm and curve id
Date: Thu, 20 Aug 2026 11:07:57 +0200 [thread overview]
Message-ID: <87h5kp2m8i.fsf@pond.sub.org> (raw)
In-Reply-To: <20260818092249.602137-2-jamin_lin@aspeedtech.com> (Jamin Lin's message of "Tue, 18 Aug 2026 09:22:53 +0000")
Jamin Lin <jamin_lin@aspeedtech.com> writes:
> Introduce a new asymmetric cipher algorithm, ECDSA, a curve identifier
> enum (prime256v1 / NIST P-256 and secp384r1 / NIST P-384) and the
> per-algorithm ECDSA options. This is the QAPI groundwork consumed by the
> crypto akcipher backends in the following patches.
>
> Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Why do you need this algorithm? Oh, the cover letter explains. Please
add a suitable brief explanation to this commit message, too.
> ---
> qapi/crypto.json | 33 +++++++++++++++++++++++++++++++--
> 1 file changed, 31 insertions(+), 2 deletions(-)
>
> diff --git a/qapi/crypto.json b/qapi/crypto.json
> index 6e3a98ff68..016d7c65bf 100644
> --- a/qapi/crypto.json
> +++ b/qapi/crypto.json
> @@ -557,10 +557,26 @@
> #
> # @rsa: RSA algorithm
> #
> +# @ecdsa: ECDSA algorithm
Missing (since 11.2)
> +#
> # Since: 7.1
> ##
> { 'enum': 'QCryptoAkCipherAlgo',
> - 'data': ['rsa']}
> + 'data': ['rsa', 'ecdsa']}
> +
> +##
> +# @QCryptoCurveID:
> +#
> +# The supported elliptic curves.
> +#
> +# @prime256v1: NIST P-256 curve (prime256v1)
> +#
> +# @secp384r1: NIST P-384 curve (secp384r1)
> +#
> +# Since: 11.2
> +##
> +{ 'enum': 'QCryptoCurveID',
> + 'data': ['prime256v1', 'secp384r1']}
>
> ##
> # @QCryptoAkCipherKeyType:
> @@ -605,6 +621,18 @@
> 'data': { 'hash-alg':'QCryptoHashAlgo',
> 'padding-alg': 'QCryptoRSAPaddingAlgo'}}
>
> +##
> +# @QCryptoAkCipherOptionsECDSA:
> +#
> +# Specific parameters for the ECDSA algorithm.
> +#
> +# @curve-id: the elliptic curve to use
> +#
> +# Since: 11.2
> +##
> +{ 'struct': 'QCryptoAkCipherOptionsECDSA',
> + 'data': { 'curve-id': 'QCryptoCurveID' }}
> +
> ##
> # @QCryptoAkCipherOptions:
> #
> @@ -618,4 +646,5 @@
> { 'union': 'QCryptoAkCipherOptions',
> 'base': { 'alg': 'QCryptoAkCipherAlgo' },
> 'discriminator': 'alg',
> - 'data': { 'rsa': 'QCryptoAkCipherOptionsRSA' }}
> + 'data': { 'rsa': 'QCryptoAkCipherOptionsRSA',
> + 'ecdsa': 'QCryptoAkCipherOptionsECDSA' }}
With the missing since corrected, QAPI schema
Acked-by: Markus Armbruster <armbru@redhat.com>
next prev parent reply other threads:[~2026-08-20 9:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-18 9:22 [PATCH v1 0/8] Add ECDSA akcipher support and the ASPEED SBC ECDSA engine for AST10x0 Jamin Lin
2026-08-18 9:22 ` [PATCH v1 1/8] qapi/crypto: Add ECDSA algorithm and curve id Jamin Lin
2026-08-20 9:07 ` Markus Armbruster [this message]
2026-08-18 9:22 ` [PATCH v1 2/8] crypto/akcipher: Support ECDSA sign/verify with gcrypt Jamin Lin
2026-08-18 9:22 ` [PATCH v1 3/8] crypto/akcipher: Support ECDSA sign/verify with nettle Jamin Lin
2026-08-18 9:22 ` [PATCH v1 4/8] tests/crypto: Add ECDSA sign/verify tests Jamin Lin
2026-08-18 9:22 ` [PATCH v1 5/8] hw/misc/aspeed_sbc: Support the ECDSA verify command Jamin Lin
2026-08-19 20:03 ` Cédric Le Goater
2026-08-20 0:49 ` Jamin Lin
2026-08-18 9:23 ` [PATCH v1 6/8] hw/misc/aspeed_sbc: Increase register space to 0x1000 Jamin Lin
2026-08-18 9:23 ` [PATCH v1 7/8] hw/arm/aspeed_ast10x0: Wire SEC SRAM to the SBC model Jamin Lin
2026-08-18 9:23 ` [PATCH v1 8/8] tests/qtest: Add ASPEED SBC ECDSA engine test Jamin Lin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h5kp2m8i.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=andrew@codeconstruct.com.au \
--cc=berrange@redhat.com \
--cc=clg@kaod.org \
--cc=eblake@redhat.com \
--cc=farosas@suse.de \
--cc=jamin_lin@aspeedtech.com \
--cc=joel@jms.id.au \
--cc=kane_chen@aspeedtech.com \
--cc=leetroy@gmail.com \
--cc=lvivier@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=steven_lee@aspeedtech.com \
--cc=troy_lee@aspeedtech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.