From 7efb4d9fb6e8e001eacfd9e8caac4c11f77e98d9 Mon Sep 17 00:00:00 2001 From: LP-HAW Date: Wed, 5 Jun 2024 18:21:21 +0200 Subject: [PATCH] sys/hashes: change SHA2 PAD type to const --- sys/hashes/sha2xx_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/hashes/sha2xx_common.c b/sys/hashes/sha2xx_common.c index 4931312a15..be1f182175 100644 --- a/sys/hashes/sha2xx_common.c +++ b/sys/hashes/sha2xx_common.c @@ -168,7 +168,7 @@ static void sha2xx_transform(uint32_t *state, const unsigned char block[64]) } } -static unsigned char PAD[64] = { +static const unsigned char PAD[64] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,