Changed CRC input vector to constant

This commit is contained in:
Xavier Arteaga 2020-11-05 18:42:55 +01:00 committed by Andre Puschmann
parent 959f37ae81
commit 8e8889032e
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ static inline uint64_t srslte_crc_checksum_get(srslte_crc_t* h)
return (h->crcinit & h->crcmask);
}
SRSLTE_API uint32_t srslte_crc_checksum_byte(srslte_crc_t* h, uint8_t* data, int len);
SRSLTE_API uint32_t srslte_crc_checksum_byte(srslte_crc_t* h, const uint8_t* data, int len);
SRSLTE_API uint32_t srslte_crc_checksum(srslte_crc_t* h, uint8_t* data, int len);

View File

@ -140,7 +140,7 @@ uint32_t srslte_crc_checksum(srslte_crc_t* h, uint8_t* data, int len)
}
// len is multiple of 8
uint32_t srslte_crc_checksum_byte(srslte_crc_t* h, uint8_t* data, int len)
uint32_t srslte_crc_checksum_byte(srslte_crc_t* h, const uint8_t* data, int len)
{
int i;
uint32_t crc = 0;