[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 07/16] crypto/hash-afalg: Implement new hash API
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH v5 07/16] crypto/hash-afalg: Implement new hash API |
Date: |
Thu, 10 Oct 2024 12:16:58 +0100 |
User-agent: |
Mutt/2.2.12 (2023-09-09) |
On Tue, Oct 08, 2024 at 09:57:14AM +0200, Cédric Le Goater wrote:
> From: Alejandro Zeise <alejandro.zeise@seagate.com>
>
> Updates the afalg hash driver to support the new accumulative
> hashing changes as part of the patch series.
>
> Implements opening/closing of contexts, updating hash data
> and finalizing the hash digest.
>
> In order to support the update function, a flag needs to be passed
> to the kernel via the socket send call (MSG_MORE) to notify it that more
> data is to be expected to calculate the hash correctly.
> As a result, a new function was added to the iov helper utils to allow
> passing a flag to the socket send call.
>
> Signed-off-by: Alejandro Zeise <alejandro.zeise@seagate.com>
> [ clg: - Handled qcrypto_afalg_hash_ctx_new() errors in
> qcrypto_afalg_hash_new()
> - Freed alg_name in qcrypto_afalg_hash_new()
> - Reworked qcrypto_afalg_recv_from_kernel()
> - Split iov changes from original patch ]
> Signed-off-by: Cédric Le Goater <clg@redhat.com>
> ---
> crypto/hash-afalg.c | 127 ++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 127 insertions(+)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- Re: [PATCH v5 03/16] crypto/hash-gcrypt: Implement new hash API, (continued)
- [PATCH v5 06/16] util/iov: Introduce iov_send_recv_with_flags(), Cédric Le Goater, 2024/10/08
- [PATCH v5 07/16] crypto/hash-afalg: Implement new hash API, Cédric Le Goater, 2024/10/08
- Re: [PATCH v5 07/16] crypto/hash-afalg: Implement new hash API,
Daniel P . Berrangé <=
- [PATCH v5 09/16] tests/unit/test-crypto-hash: accumulative hashing, Cédric Le Goater, 2024/10/08
- [PATCH v5 08/16] crypto/hash: Implement and use new hash API, Cédric Le Goater, 2024/10/08
- [PATCH v5 10/16] crypto/hash-glib: Remove old hash API functions, Cédric Le Goater, 2024/10/08
- [PATCH v5 11/16] crypto/hash-gcrypt: Remove old hash API functions, Cédric Le Goater, 2024/10/08
- [PATCH v5 12/16] crypto/hash-gnutls: Remove old hash API functions, Cédric Le Goater, 2024/10/08
- [PATCH v5 13/16] crypto/hash-nettle: Remove old hash API functions, Cédric Le Goater, 2024/10/08
- [PATCH v5 14/16] crypto/hash-afalg: Remove old hash API functions, Cédric Le Goater, 2024/10/08
- [PATCH v5 15/16] crypto/hashpriv: Remove old hash API function, Cédric Le Goater, 2024/10/08