// Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary // source code may only be used and distributed under the Widevine // License Agreement. // // Compute CRC32 Checksum. Needed for verification of WV Keybox. // #ifndef WVCRC32_H_ #define WVCRC32_H_ #include namespace wvoec_ref { uint32_t wvcrc32(const uint8_t* p_begin, int i_count); uint32_t wvcrc32Init(); uint32_t wvcrc32Cont(const uint8_t* p_begin, int i_count, uint32_t prev_crc); // Convert to network byte order uint32_t wvcrc32n(const uint8_t* p_begin, int i_count); } // namespace wvoec_ref #endif // WVCRC32_H_