|
|
@ -47,7 +47,6 @@ SRSRAN_API uint32_t srsran_crc_attach_byte(srsran_crc_t* h, uint8_t* data, int l
|
|
|
|
|
|
|
|
|
|
|
|
static inline void srsran_crc_checksum_put_byte(srsran_crc_t* h, uint8_t byte)
|
|
|
|
static inline void srsran_crc_checksum_put_byte(srsran_crc_t* h, uint8_t byte)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
uint64_t crc = h->crcinit;
|
|
|
|
uint64_t crc = h->crcinit;
|
|
|
|
|
|
|
|
|
|
|
|
uint32_t idx;
|
|
|
|
uint32_t idx;
|
|
|
@ -74,6 +73,8 @@ SRSRAN_API uint32_t srsran_crc_checksum_byte(srsran_crc_t* h, const uint8_t* dat
|
|
|
|
|
|
|
|
|
|
|
|
SRSRAN_API uint32_t srsran_crc_checksum(srsran_crc_t* h, uint8_t* data, int len);
|
|
|
|
SRSRAN_API uint32_t srsran_crc_checksum(srsran_crc_t* h, uint8_t* data, int len);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SRSRAN_API bool srsran_crc_match_byte(srsran_crc_t* h, uint8_t* data, int len);
|
|
|
|
|
|
|
|
|
|
|
|
SRSRAN_API bool srsran_crc_match(srsran_crc_t* h, uint8_t* data, int len);
|
|
|
|
SRSRAN_API bool srsran_crc_match(srsran_crc_t* h, uint8_t* data, int len);
|
|
|
|
|
|
|
|
|
|
|
|
#endif // SRSRAN_CRC_H
|
|
|
|
#endif // SRSRAN_CRC_H
|
|
|
|