Copy submitted odk fuzzing changes from cdm repository to android
Merging odk changes from http://go/wvgerrit/98084 Copy submitted changes for oemcrypto/odk/test/fuzzing from cdm repository to android so that fuzzer scripts in odk can be run using go/android-fuzzing Google3 CLs: http://cl/301943247 http://cl/304011238 http://cl/307142293 http://cl/307087692 Bug: 150900870 Test: The fuzzer scripts can be built once the code is moved to android tree. Odk fuzzer scripts have been verified and successfully running in google3 Change-Id: I92b8a357c32b145c7f80bdc93d05214862368957
This commit is contained in:
28
libwvdrmengine/oemcrypto/odk/test/fuzzing/odk_fuzz_structs.h
Normal file
28
libwvdrmengine/oemcrypto/odk/test/fuzzing/odk_fuzz_structs.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/* Copyright 2020 Google LLC. All rights reserved. This file and proprietary */
|
||||
/* source code may only be used and distributed under the Widevine Master */
|
||||
/* License Agreement. */
|
||||
#ifndef WIDEVINE_ODK_TEST_FUZZING_ODK_FUZZ_STRUCTS_H_
|
||||
#define WIDEVINE_ODK_TEST_FUZZING_ODK_FUZZ_STRUCTS_H_
|
||||
|
||||
#include "odk_structs.h"
|
||||
|
||||
struct ODK_ParseLicense_Args {
|
||||
ODK_NonceValues nonce_values;
|
||||
uint8_t initial_license_load;
|
||||
uint8_t usage_entry_present;
|
||||
uint8_t request_hash[ODK_SHA256_HASH_SIZE];
|
||||
ODK_TimerLimits timer_limits;
|
||||
ODK_ClockValues clock_values;
|
||||
};
|
||||
struct ODK_ParseRenewal_Args {
|
||||
ODK_NonceValues nonce_values;
|
||||
uint64_t system_time;
|
||||
ODK_TimerLimits timer_limits;
|
||||
ODK_ClockValues clock_values;
|
||||
};
|
||||
struct ODK_ParseProvisioning_Args {
|
||||
ODK_NonceValues nonce_values;
|
||||
size_t device_id_length;
|
||||
uint8_t device_id[64];
|
||||
};
|
||||
#endif /* WIDEVINE_ODK_TEST_FUZZING_ODK_FUZZ_STRUCTS_H_ */
|
||||
Reference in New Issue
Block a user