From 5a90560e3ef81a275e0121ddffde781a11cf9b4a Mon Sep 17 00:00:00 2001 From: Sean McGrail Date: Fri, 27 Oct 2023 15:30:12 -0700 Subject: [PATCH] Change cast to const unsigned char * --- crypto/fipsmodule/bn/bytes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/fipsmodule/bn/bytes.c b/crypto/fipsmodule/bn/bytes.c index 97b0d3f958e..64da7704d6b 100644 --- a/crypto/fipsmodule/bn/bytes.c +++ b/crypto/fipsmodule/bn/bytes.c @@ -206,7 +206,7 @@ static int fits_in_bytes(const BN_ULONG *words, size_t num_words, } void bn_assert_fits_in_bytes(const BIGNUM *bn, size_t num) { - const uint8_t *bytes = (const uint8_t *)bn->d; + const unsigned char *bytes = (const unsigned char *)bn->d; size_t tot_bytes = bn->width * sizeof(BN_ULONG); if (tot_bytes > num) { CONSTTIME_DECLASSIFY(bytes + num, tot_bytes - num);