Update Key Control Verification String
Merge from widevine repo of http://go/wvgerrit/22382 This updates the key control verification string in the haystack, in the reference oemcrypto (mock), and in the oemcrypto unit tests. The unit tests now set the key control block to be kc12 for all licenses if the API is set to version 12. Previously, we only used the more recent verification codes if the key control block used recent features. This should help prevent future incidents like b/32830469. Change-Id: I6c215b4058445a6d807610af94457598f26d591a
This commit is contained in:
@@ -17,7 +17,8 @@ bool KeyControlBlock::Validate() {
|
||||
if (memcmp(verification_, "kctl", 4) && // original verification
|
||||
memcmp(verification_, "kc09", 4) && // add in version 9 api
|
||||
memcmp(verification_, "kc10", 4) && // add in version 10 api
|
||||
memcmp(verification_, "kc11", 4)) { // add in version 11 api
|
||||
memcmp(verification_, "kc11", 4) && // add in version 11 api
|
||||
memcmp(verification_, "kc12", 4)) { // add in version 12 api
|
||||
LOGE("KCB: BAD verification string: %4.4s", verification_);
|
||||
valid_ = false;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user