On Mon, Sep 01, 2025 at 07:56:26AM +0200, Jan Kiszka wrote: > From: Jan Kiszka <[email protected]> > > If the buffers that should be considered for building the hmac are not > available at the same time, the current API is unsuitable. Extend it so > that passing a NULL pointer as result_len is used as indicator that > further buffers will be passed in succeeding calls to > qcrypto_gnutls_hmac_bytes[v]. > > Signed-off-by: Jan Kiszka <[email protected]> > Reviewed-by: Philippe Mathieu-Daudé <[email protected]> > --- > Cc: "Daniel P. Berrangé" <[email protected]> > --- > crypto/hmac-gcrypt.c | 4 +++- > crypto/hmac-glib.c | 4 +++- > crypto/hmac-gnutls.c | 4 +++- > crypto/hmac-nettle.c | 4 +++- > include/crypto/hmac.h | 12 ++++++++++++ > 5 files changed, 24 insertions(+), 4 deletions(-)
Reviewed-by: Daniel P. Berrangé <[email protected]> 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 :|
