Bug: b/117558570 Test: Android, CE CDM, and Linux tests Merge of http://go/wvgerrit/67566 This CL adds changes to support the Level 3 upgrade to v15 with both the dynamic and static adapters. It also rearranges the wvcrc.cpp files so that the tests have their own copy and Level 3 can just use the one in ref/src. Change-Id: Ieee2859601881aa1800622454e6ce0345eb94aa7
24 lines
628 B
C++
24 lines
628 B
C++
// Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine Master
|
|
// License Agreement.
|
|
//
|
|
// Compute CRC32 Checksum. Needed for verification of WV Keybox.
|
|
//
|
|
#ifndef CDM_WVCRC32_H_
|
|
#define CDM_WVCRC32_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace wvoec {
|
|
|
|
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
|
|
|
|
#endif // CDM_WVCRC32_H_
|