mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 09:28:05 +00:00
Stupid bug integer overflow.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
d82affa880
commit
d9a8826a32
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ uint8_t pending_save_dkek = 0xff;
|
|||
#define POLY 0xedb88320
|
||||
|
||||
uint32_t crc32c(const uint8_t *buf, size_t len) {
|
||||
uint32_t crc = 0xffffffffffffffff;
|
||||
uint32_t crc = 0xffffffff;
|
||||
while (len--) {
|
||||
crc ^= *buf++;
|
||||
for (int k = 0; k < 8; k++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue