Pick widevine oemcrypto-v18 change
No-Typo-Check: From a third party header file Bug: 260918793 Test: unit tests Test: atp v2/widevine-eng/drm_compliance Change-Id: I36effd6a10a99bdb2399ab1f4a0fad026d607c70
This commit is contained in:
@@ -40,6 +40,20 @@ class KeySession {
|
||||
virtual OEMCryptoResult Decrypt(
|
||||
const OEMCrypto_SampleDescription* samples, size_t samples_length,
|
||||
const OEMCrypto_CENCEncryptPatternDesc& pattern) = 0;
|
||||
virtual OEMCryptoResult GenericEncrypt(const std::string& in_buffer,
|
||||
const std::string& iv,
|
||||
OEMCrypto_Algorithm algorithm,
|
||||
std::string* out_buffer) = 0;
|
||||
virtual OEMCryptoResult GenericDecrypt(const std::string& in_buffer,
|
||||
const std::string& iv,
|
||||
OEMCrypto_Algorithm algorithm,
|
||||
std::string* out_buffer) = 0;
|
||||
virtual OEMCryptoResult GenericSign(const std::string& message,
|
||||
OEMCrypto_Algorithm algorithm,
|
||||
std::string* signature) = 0;
|
||||
virtual OEMCryptoResult GenericVerify(const std::string& message,
|
||||
OEMCrypto_Algorithm algorithm,
|
||||
const std::string& signature) = 0;
|
||||
|
||||
protected:
|
||||
metrics::CryptoMetrics* metrics_;
|
||||
|
||||
Reference in New Issue
Block a user