X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/80e2389990082500d76eb566d4946be3e786c3ef..d8f41ccd20de16f8ebe2ccc84d47bf1cb2b26bbb:/Security/libsecurity_utilities/lib/crc.h diff --git a/Security/libsecurity_utilities/lib/crc.h b/Security/libsecurity_utilities/lib/crc.h new file mode 100644 index 00000000..0991f3f0 --- /dev/null +++ b/Security/libsecurity_utilities/lib/crc.h @@ -0,0 +1,18 @@ +#ifndef __CRC__ +#define __CRC__ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +u_int32_t CalculateCRC(u_int8_t* buffer, size_t length); +u_int32_t StagedCRC(u_int32_t initialCRC, u_int8_t* buffer, size_t length); + +#ifdef __cplusplus +}; +#endif + + +#endif