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:
Jeff Tinker
2013-04-19 16:34:57 -07:00
parent 87c3f5652f
commit 36aeacde48
3 changed files with 1 additions and 48 deletions

View File

@@ -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,