Skip to content

Commit

Permalink
qapi/crypto: Rename QCryptoAFAlg to QCryptoAFAlgo (addtl)
Browse files Browse the repository at this point in the history
Hello,

This is a follow up to commit 8f52502 to
take care of a few remaining QCryptoAFAlg -> QCryptoAFAlgo renames.

Signed-off-by: Cal Peake <[email protected]>
Reviewed-by: Cédric Le Goater <[email protected]>
  • Loading branch information
Cal Peake authored and GitHub Actions Bot committed Oct 22, 2024
1 parent ecd5abf commit 5fd33c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crypto/hash-afalg.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ QCryptoHash *qcrypto_afalg_hash_new(QCryptoHashAlgo alg, Error **errp)
static
void qcrypto_afalg_hash_free(QCryptoHash *hash)
{
QCryptoAFAlg *ctx = hash->opaque;
QCryptoAFAlgo *ctx = hash->opaque;

if (ctx) {
qcrypto_afalg_comm_free(ctx);
Expand All @@ -159,7 +159,7 @@ void qcrypto_afalg_hash_free(QCryptoHash *hash)
* be provided to calculate the final hash.
*/
static
int qcrypto_afalg_send_to_kernel(QCryptoAFAlg *afalg,
int qcrypto_afalg_send_to_kernel(QCryptoAFAlgo *afalg,
const struct iovec *iov,
size_t niov,
bool more_data,
Expand All @@ -183,7 +183,7 @@ int qcrypto_afalg_send_to_kernel(QCryptoAFAlg *afalg,
}

static
int qcrypto_afalg_recv_from_kernel(QCryptoAFAlg *afalg,
int qcrypto_afalg_recv_from_kernel(QCryptoAFAlgo *afalg,
QCryptoHashAlgo alg,
uint8_t **result,
size_t *result_len,
Expand Down Expand Up @@ -222,7 +222,7 @@ int qcrypto_afalg_hash_update(QCryptoHash *hash,
size_t niov,
Error **errp)
{
return qcrypto_afalg_send_to_kernel((QCryptoAFAlg *) hash->opaque,
return qcrypto_afalg_send_to_kernel((QCryptoAFAlgo *) hash->opaque,
iov, niov, true, errp);
}

Expand All @@ -232,7 +232,7 @@ int qcrypto_afalg_hash_finalize(QCryptoHash *hash,
size_t *result_len,
Error **errp)
{
return qcrypto_afalg_recv_from_kernel((QCryptoAFAlg *) hash->opaque,
return qcrypto_afalg_recv_from_kernel((QCryptoAFAlgo *) hash->opaque,
hash->alg, result, result_len, errp);
}

Expand Down

0 comments on commit 5fd33c7

Please sign in to comment.