History log of /frameworks/av/drm/mediadrm/plugins/clearkey/AesCtrDecryptor.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7f7783d0c0c726eaaf517125383b0fb30251bdd0 07-Oct-2017 Edwin Wong <edwinwong@google.com> Validate decryption key length to decrypt function.

Cherry picked from http://go/ag/3038278.

AesCtrDecryptor::decrypt() doesn't check whether the size of "key"
is equal to 16 bytes, which may lead to an OOB read problem in the
context of mediadrmserver.

Add DecryptsWithEmptyKey and DecryptsWithKeyTooLong unit tests.

Test: ClearKeyDrmUnitTest
adb shell LD_LIBRARY_PATH="/vendor/lib/mediadrm"
/data/nativetest/ClearKeyDrmUnitTest/ClearKeyDrmUnitTest

bug: 63982768
Change-Id: I1f22c9df2b051972b2c532608b7f203e3ce77926
(cherry picked from commit 379b672b189aa72ce0103b485019022f3e292c36)
/frameworks/av/drm/mediadrm/plugins/clearkey/AesCtrDecryptor.h
16dfdcff6e4bb025220b88d5fc132ae48e7cb437 11-Jun-2014 John "Juce" Bruce <juce@google.com> Implement OpenSSL-Based Decryptor

Implements an object that does AES-CTR-128 by invoking OpenSSL.

Change-Id: I8457899ec8b69bd8f0d727029985c9580911cf99
/frameworks/av/drm/mediadrm/plugins/clearkey/AesCtrDecryptor.h