------------- Moves ecm_generator to media_cas_packager_sdk/internal. ------------- Add a simple TCP server listening on a port. My intention is to use this server to support the Simulcrypt APIs (TODO). Also add a simple TCP client binary for testing the server and also demo how to call the Simulcrypt APIs (TODO). ------------- If only a single key is in the ECM, it is the EVEN key. To make the code matches this understanding, change a parameter from 'false' to 'true'. But this change has NO impact on the produced ECM, regardless this parameter is 'false' or 'true' (i.e., whether using push_front or push_back), only a single key is in the ECM. ------------- Add classes that process Simulcrypt ECMG messages 1) Stream_set-up 2) CW_provision ------------- Renames server and client binaries. ------------- Make ecmg call ecm_generator to generate ecm. The return of the ecm to Simulcrypt caller will be implemented in the next CL. For now, using the 'key' (control word) in CW_provision message also as the 'key_id'. ------------- Move common folder ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217358698
33 lines
1.2 KiB
C++
33 lines
1.2 KiB
C++
////////////////////////////////////////////////////////////////////////////////
|
|
// Copyright 2013 Google LLC.
|
|
//
|
|
// This software is licensed under the terms defined in the Widevine Master
|
|
// License Agreement. For a copy of this agreement, please contact
|
|
// widevine-licensing@google.com.
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Description:
|
|
// Auxiliary functions for license server SDK testing.
|
|
|
|
#ifndef COMMON_TEST_UTILS_H_
|
|
#define COMMON_TEST_UTILS_H_
|
|
|
|
#include <string>
|
|
|
|
#include "util/status.h"
|
|
|
|
namespace widevine {
|
|
|
|
// Generate RSA signature using the specified RSA private key, SHA256 digest,
|
|
// and PKCS#1 1.5 padding. |pem_private_key| is a PEM-encoded private RSA key,
|
|
// |message| is the message to be signed, and |signature| is a pointer to a
|
|
// std::string where the signature will be stored. The caller returns ownership of
|
|
// all paramters.
|
|
util::Status GenerateRsaSignatureSha256Pkcs1(const std::string& pem_private_key,
|
|
const std::string& message,
|
|
std::string* signature);
|
|
|
|
} // namespace widevine
|
|
|
|
#endif // COMMON_TEST_UTILS_H_
|