qapi/crypto: Rename QCryptoRSAPaddingAlgorithm to *Algo, and drop prefix
authorMarkus Armbruster <armbru@redhat.com>
Wed, 4 Sep 2024 11:18:32 +0000 (13:18 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 10 Sep 2024 12:03:30 +0000 (14:03 +0200)
commitc96050f43e35012331abfb5aa347fa6543826d0e
tree2523b143e088259ebf343052a9a792ee7b8adf71
parentcd48d82a5068fe038719eeff8d3eab555e1f3bbb
qapi/crypto: Rename QCryptoRSAPaddingAlgorithm to *Algo, and drop prefix

QAPI's 'prefix' feature can make the connection between enumeration
type and its constants less than obvious.  It's best used with
restraint.

QCryptoRSAPaddingAlgorithm has a 'prefix' that overrides the generated
enumeration constants' prefix to QCRYPTO_RSA_PADDING_ALG.

We could simply drop 'prefix', but then the prefix becomes
QCRYPTO_RSA_PADDING_ALGORITHM, which is rather long.

We could additionally rename the type to QCryptoRSAPaddingAlg, but I
think the abbreviation "alg" is less than clear.

Rename the type to QCryptoRSAPaddingAlgo instead.  The prefix becomes
QCRYPTO_RSA_PADDING_ALGO.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20240904111836.3273842-16-armbru@redhat.com>
backends/cryptodev-builtin.c
backends/cryptodev-lkcf.c
crypto/akcipher-gcrypt.c.inc
crypto/akcipher-nettle.c.inc
qapi/crypto.json
tests/bench/benchmark-crypto-akcipher.c
tests/unit/test-crypto-akcipher.c