2023-09-10 09:47:49 -04:00
|
|
|
/***********************************************************************************************************************************
|
|
|
|
CRC-32 Calculation
|
|
|
|
|
|
|
|
CRC-32 and CRC-32C calculations required to validate the integrity of pg_control.
|
|
|
|
***********************************************************************************************************************************/
|
|
|
|
#ifndef POSTGRES_INTERFACE_CRC32_H
|
|
|
|
#define POSTGRES_INTERFACE_CRC32_H
|
|
|
|
|
|
|
|
#include <inttypes.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Functions
|
|
|
|
***********************************************************************************************************************************/
|
2024-10-21 13:56:04 +03:00
|
|
|
// Generate CRC-32C checksum
|
2023-09-10 09:47:49 -04:00
|
|
|
FN_EXTERN uint32_t crc32cOne(const unsigned char *data, size_t size);
|
|
|
|
|
|
|
|
#endif
|