Piped CdmEngine's generic crypto operations to Android CDM.
[ Merge of http://go/wvgerrit/172010 ] The CdmEngine provides an API for generic crypto operations that are already used for the CE CDM. This API is being exposed in the Android CDM. The parameter order of the Android CDM is modified to match the existing generic crypto parameters used in the media DRM plugin. Bug: 274984456 Bug: 29400687 Test: build x86-64 and Android Change-Id: I3b286ebb011bd58754b7b8ea814ed46daf1f62f9
This commit is contained in:
@@ -270,6 +270,33 @@ class WvContentDecryptionModule : public android::RefBase, public TimerHandler {
|
||||
virtual bool SetDefaultOtaKeyboxFallbackDurationRules();
|
||||
virtual bool SetFastOtaKeyboxFallbackDurationRules();
|
||||
|
||||
// Generic crypto API.
|
||||
virtual CdmResponseType GenericEncrypt(const CdmSessionId& session_id,
|
||||
const KeyId& key_id,
|
||||
const std::string& input,
|
||||
const std::string& iv,
|
||||
CdmEncryptionAlgorithm algorithm,
|
||||
std::string* output);
|
||||
|
||||
virtual CdmResponseType GenericDecrypt(const CdmSessionId& session_id,
|
||||
const KeyId& key_id,
|
||||
const std::string& input,
|
||||
const std::string& iv,
|
||||
CdmEncryptionAlgorithm algorithm,
|
||||
std::string* output);
|
||||
|
||||
virtual CdmResponseType GenericSign(const CdmSessionId& session_id,
|
||||
const KeyId& key_id,
|
||||
const std::string& input,
|
||||
CdmSigningAlgorithm algorithm,
|
||||
std::string* signature);
|
||||
|
||||
virtual CdmResponseType GenericVerify(const CdmSessionId& session_id,
|
||||
const KeyId& key_id,
|
||||
const std::string& input,
|
||||
CdmSigningAlgorithm algorithm,
|
||||
const std::string& signature);
|
||||
|
||||
private:
|
||||
struct CdmInfo {
|
||||
CdmInfo();
|
||||
|
||||
Reference in New Issue
Block a user