From: Andreas Schneider Date: Thu, 30 Nov 2023 07:32:45 +0000 (+0100) Subject: lib:crypto: Use bytearray macros X-Git-Tag: talloc-2.4.2~433 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f65a17e7abb83b2d352fd7f75d3a32b7a729b76c;p=thirdparty%2Fsamba.git 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 --- 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(