From c2f10f20ec9be98f363d6739ba1552955efe6532 Mon Sep 17 00:00:00 2001 From: Jeff Tinker Date: Tue, 4 Mar 2014 13:23:56 -0800 Subject: [PATCH] Support CAST V2 Authentication in MediaDrm Update frameworks to enable support for CAST V2 Authentication in the DRM Plugin. Change-Id: Ic38f0e1484b1388dd87f4591c74984cb724d50e2 related-to-bug: 12702350 --- include/media/drm/DrmAPI.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/include/media/drm/DrmAPI.h b/include/media/drm/DrmAPI.h index 95bdf7762..fc6b49c27 100644 --- a/include/media/drm/DrmAPI.h +++ b/include/media/drm/DrmAPI.h @@ -178,12 +178,16 @@ namespace android { // provisioning server. // // If successful, the opaque provision request blob is returned to the caller. - virtual status_t getProvisionRequest(Vector &request, + virtual status_t getProvisionRequest(String8 const &cert_type, + String8 const &cert_authority, + Vector &request, String8 &defaultUrl) = 0; // After a provision response is received by the app, it is provided to the // Drm plugin using provideProvisionResponse. - virtual status_t provideProvisionResponse(Vector const &response) = 0; + virtual status_t provideProvisionResponse(Vector const &response, + Vector &certificate, + Vector &wrapped_key) = 0; // A means of enforcing the contractual requirement for a concurrent stream // limit per subscriber across devices is provided via SecureStop. SecureStop @@ -290,6 +294,15 @@ namespace android { bool &match) = 0; + // Compute an RSA signature on the provided message using the algorithm + // specified by algorithm. + virtual status_t signRSA(Vector const &sessionId, + String8 const &algorithm, + Vector const &message, + Vector const &wrapped_key, + Vector &signature) = 0; + + status_t setListener(const sp& listener) { Mutex::Autolock lock(mEventLock); mListener = listener;