1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/hashes: change SHA2 PAD type to const

This commit is contained in:
LP-HAW 2024-06-05 18:21:21 +02:00
parent 266a8405e9
commit 7efb4d9fb6

View File

@ -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,