Source release 17.1.0
This commit is contained in:
20
oemcrypto/util/test/oemcrypto_ref_test_utils.cpp
Normal file
20
oemcrypto/util/test/oemcrypto_ref_test_utils.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
// Copyright 2021 Google LLC. All Rights Reserved. This file and proprietary
|
||||
// source code may only be used and distributed under the Widevine License
|
||||
// Agreement.
|
||||
//
|
||||
// Reference implementation utilities of OEMCrypto APIs
|
||||
//
|
||||
#include "oemcrypto_ref_test_utils.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "cdm_random.h"
|
||||
|
||||
namespace wvoec {
|
||||
namespace util {
|
||||
std::vector<uint8_t> RandomData(size_t length) {
|
||||
const std::string data = wvutil::CdmRandom::RandomData(length);
|
||||
return std::vector<uint8_t>(data.begin(), data.end());
|
||||
}
|
||||
} // namespace util
|
||||
} // namespace wvoec
|
||||
Reference in New Issue
Block a user