Optimize Status Queries in WVCryptoPlugin By Deleting Them
Removes the status query from WVCryptoPlugin's decrypt method. It was not providing any additional security since it was not cryptographically secure, and querying status is an expensive operation on some devices. It should not be done on a frequent basis, such as in every decrypt call. Bug: 8667365 Merge of https://widevine-internal-review.googlesource.com/#/c/5121/ from widevine CDM repository to android repository. Change-Id: Id9a877c5655cb8dbee7e97f983d43ec2ab6acc6e
This commit is contained in:
@@ -16,8 +16,7 @@ enum {
|
||||
kErrorIncorrectBufferSize = ERROR_DRM_VENDOR_MIN,
|
||||
kErrorCDMGeneric = ERROR_DRM_VENDOR_MIN + 1,
|
||||
kErrorUnsupportedCrypto = ERROR_DRM_VENDOR_MIN + 2,
|
||||
kErrorCannotGuaranteeSecurity = ERROR_DRM_VENDOR_MIN + 3,
|
||||
kErrorExpectedUnencrypted = ERROR_DRM_VENDOR_MIN + 4,
|
||||
kErrorExpectedUnencrypted = ERROR_DRM_VENDOR_MIN + 3,
|
||||
|
||||
// Used by crypto test mode
|
||||
kErrorTestMode = ERROR_DRM_VENDOR_MAX,
|
||||
|
||||
Reference in New Issue
Block a user