Re: [PATCH v2 10/17] crypto/cipher-nettle: Implement AES-GCM

Daniel P. Berrangé <[email protected]>
Newsgroups org.nongnu.qemu-arm,org.nongnu.qemu-devel
Message-ID <[email protected]>
On Wed, Jul 15, 2026 at 03:33:29AM +0000, Jamin Lin wrote:
> Add the AES-GCM AEAD mode to the nettle backend so it is available when
> QEMU is built with nettle instead of gcrypt. GCM is driven through
> nettle's generic gcm_* interface, using the AES encrypt function for both
> directions: gcm_set_iv() sets the (typically 96-bit) nonce, gcm_update()
> feeds the associated data, gcm_encrypt()/gcm_decrypt() need not be block
> aligned, and gcm_digest() produces the authentication tag.
> 
> Signed-off-by: Jamin Lin <[email protected]>
> ---
>  crypto/cipher-nettle.c.inc | 128 +++++++++++++++++++++++++++++++++++++
>  1 file changed, 128 insertions(+)

Reviewed-by: Daniel P. Berrangé <[email protected]>


With regards,
Daniel
-- 
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.