History log of /frameworks/av/drm/mediadrm/plugins/clearkey/tests/AesCtrDecryptorUnittest.cpp
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/tests/AesCtrDecryptorUnittest.cpp
8d0bc4a8ea2a5d0d6aba036f15b185d60e18778f 23-Jun-2014 John "Juce" Bruce <juce@google.com> Add Unit Tests for ClearKey Plugin

Change-Id: I0008a01d29ade169df9a0fd30ca0303adf9ecad3
/frameworks/av/drm/mediadrm/plugins/clearkey/tests/AesCtrDecryptorUnittest.cpp