Unit Test for OEMCrypto_ERROR_KEY_EXPIRED
Merge from widevine repo of http://go/wvgerrit/21141 All of the decrypt calls and the SelectKey call should return OEMCrypto_ERROR_KEY_EXPIRED on error. This CL updates the oemcrypto unit tests, reference mock, and level 3 code. b/28294273 Change-Id: I7ac6a3652e0b2fe5a46071e1c2eda00daeed7a33
This commit is contained in:
@@ -166,7 +166,7 @@ class SessionContext {
|
||||
bool UpdateMacKeys(const std::vector<uint8_t>& mac_keys,
|
||||
const std::vector<uint8_t>& iv);
|
||||
bool QueryKeyControlBlock(const KeyId& key_id, uint32_t* data);
|
||||
bool SelectContentKey(const KeyId& key_id);
|
||||
OEMCryptoResult SelectContentKey(const KeyId& key_id);
|
||||
const Key* current_content_key(void) { return current_content_key_; }
|
||||
void set_mac_key_server(const std::vector<uint8_t>& mac_key_server) {
|
||||
mac_key_server_ = mac_key_server;
|
||||
|
||||
Reference in New Issue
Block a user