mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
Merge pull request #20729 from LP-HAW/fix-sha2-pad
sys/hashes: change SHA2 PAD type to const
This commit is contained in:
commit
dd6051cf67
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user