Changed CRC input vector to constant

master
Xavier Arteaga 4 years ago committed by Andre Puschmann
parent 959f37ae81
commit 8e8889032e

@ -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);

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

Loading…
Cancel
Save