diff options
author | Jeff Tinker <jtinker@google.com> | 2014-04-01 22:23:23 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-04-01 22:23:23 +0000 |
commit | 99021c47f45ee8bf3317cff7d08226e76c8d8227 (patch) | |
tree | 5f8c264aefbb41cab611f5db8272c36827b9fa39 /drm/mediadrm/plugins/mock/MockDrmCryptoPlugin.h | |
parent | 118e7ff24af2e470ffed2bf7b37c9afa69afee92 (diff) | |
parent | f356a123bf966150965a1af1cb9bd6ff2ca020de (diff) | |
download | frameworks_av-99021c47f45ee8bf3317cff7d08226e76c8d8227.zip frameworks_av-99021c47f45ee8bf3317cff7d08226e76c8d8227.tar.gz frameworks_av-99021c47f45ee8bf3317cff7d08226e76c8d8227.tar.bz2 |
am f356a123: am 68d9d71a: Support CAST V2 Authentication in MediaDrm
* commit 'f356a123bf966150965a1af1cb9bd6ff2ca020de':
Support CAST V2 Authentication in MediaDrm
Diffstat (limited to 'drm/mediadrm/plugins/mock/MockDrmCryptoPlugin.h')
-rw-r--r-- | drm/mediadrm/plugins/mock/MockDrmCryptoPlugin.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/drm/mediadrm/plugins/mock/MockDrmCryptoPlugin.h b/drm/mediadrm/plugins/mock/MockDrmCryptoPlugin.h index 2297f9b..97d7052 100644 --- a/drm/mediadrm/plugins/mock/MockDrmCryptoPlugin.h +++ b/drm/mediadrm/plugins/mock/MockDrmCryptoPlugin.h @@ -76,10 +76,14 @@ namespace android { status_t queryKeyStatus(Vector<uint8_t> const &sessionId, KeyedVector<String8, String8> &infoMap) const; - status_t getProvisionRequest(Vector<uint8_t> &request, - String8 &defaultUrl); + status_t getProvisionRequest(String8 const &certType, + String8 const &certAuthority, + Vector<uint8_t> &request, + String8 &defaultUrl); - status_t provideProvisionResponse(Vector<uint8_t> const &response); + status_t provideProvisionResponse(Vector<uint8_t> const &response, + Vector<uint8_t> &certificate, + Vector<uint8_t> &wrappedKey); status_t getSecureStops(List<Vector<uint8_t> > &secureStops); status_t releaseSecureStops(Vector<uint8_t> const &ssRelease); @@ -122,6 +126,12 @@ namespace android { Vector<uint8_t> const &signature, bool &match); + status_t signRSA(Vector<uint8_t> const &sessionId, + String8 const &algorithm, + Vector<uint8_t> const &message, + Vector<uint8_t> const &wrappedKey, + Vector<uint8_t> &signature); + private: String8 vectorToString(Vector<uint8_t> const &vector) const; String8 arrayToString(uint8_t const *array, size_t len) const; |