qapi/crypto: Rename QCryptoHashAlgorithm to *Algo, and drop prefix
authorMarkus Armbruster <armbru@redhat.com>
Wed, 4 Sep 2024 11:18:28 +0000 (13:18 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 10 Sep 2024 12:02:16 +0000 (14:02 +0200)
commitef834aa2b2b52ac44ca97d70d5ef5e975a229034
treed175decc323ac64104b4243d6c3389affe1d0804
parent5f4059ef33e927ce9f72cb60000efa156566cd5c
qapi/crypto: Rename QCryptoHashAlgorithm 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.

QCryptoHashAlgorithm has a 'prefix' that overrides the generated
enumeration constants' prefix to QCRYPTO_HASH_ALG.

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

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

Rename the type to QCryptoHashAlgo instead.  The prefix becomes to
QCRYPTO_HASH_ALGO.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20240904111836.3273842-12-armbru@redhat.com>
[Conflicts with merge commit 7bbadc60b58b resolved]
54 files changed:
backends/cryptodev-builtin.c
backends/cryptodev-lkcf.c
block/parallels-ext.c
block/quorum.c
crypto/afsplit.c
crypto/akcipher-gcrypt.c.inc
crypto/akcipher-nettle.c.inc
crypto/block-luks.c
crypto/block.c
crypto/blockpriv.h
crypto/hash-afalg.c
crypto/hash-gcrypt.c
crypto/hash-glib.c
crypto/hash-gnutls.c
crypto/hash-nettle.c
crypto/hash.c
crypto/hashpriv.h
crypto/hmac-gcrypt.c
crypto/hmac-glib.c
crypto/hmac-gnutls.c
crypto/hmac-nettle.c
crypto/hmac.c
crypto/hmacpriv.h
crypto/ivgen.c
crypto/ivgenpriv.h
crypto/pbkdf-gcrypt.c
crypto/pbkdf-gnutls.c
crypto/pbkdf-nettle.c
crypto/pbkdf-stub.c
crypto/pbkdf.c
crypto/x509-utils.c
hw/misc/aspeed_hace.c
include/crypto/afsplit.h
include/crypto/block.h
include/crypto/hash.h
include/crypto/hmac.h
include/crypto/ivgen.h
include/crypto/pbkdf.h
include/crypto/x509-utils.h
io/channel-websock.c
qapi/crypto.json
target/i386/sev.c
tests/bench/benchmark-crypto-akcipher.c
tests/bench/benchmark-crypto-hash.c
tests/bench/benchmark-crypto-hmac.c
tests/unit/test-crypto-afsplit.c
tests/unit/test-crypto-akcipher.c
tests/unit/test-crypto-block.c
tests/unit/test-crypto-hash.c
tests/unit/test-crypto-hmac.c
tests/unit/test-crypto-ivgen.c
tests/unit/test-crypto-pbkdf.c
ui/vnc.c
util/hbitmap.c