From f65a17e7abb83b2d352fd7f75d3a32b7a729b76c Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 30 Nov 2023 08:32:45 +0100 Subject: [PATCH] lib:crypto: Use bytearray macros Do not use old macros which are not descriptive by the name. Signed-off-by: Andreas Schneider Reviewed-by: Joseph Sutton --- lib/crypto/gnutls_sp800_108.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/crypto/gnutls_sp800_108.c b/lib/crypto/gnutls_sp800_108.c index dc04354d3d2..65710657bae 100644 --- a/lib/crypto/gnutls_sp800_108.c +++ b/lib/crypto/gnutls_sp800_108.c @@ -41,7 +41,7 @@ static NTSTATUS samba_gnutls_sp800_108_derive_key_part( static const uint8_t zero = 0; int rc; - RSIVAL(buf, 0, i); + PUSH_BE_U32(buf, 0, i); rc = gnutls_hmac(hmac_hnd, buf, sizeof(buf)); if (rc < 0) { return gnutls_error_to_ntstatus(rc, @@ -69,7 +69,7 @@ static NTSTATUS samba_gnutls_sp800_108_derive_key_part( return gnutls_error_to_ntstatus( rc, NT_STATUS_HMAC_NOT_SUPPORTED); } - RSIVAL(buf, 0, L); + PUSH_BE_U32(buf, 0, L); rc = gnutls_hmac(hmac_hnd, buf, sizeof(buf)); if (rc < 0) { return gnutls_error_to_ntstatus( -- 2.47.3