John "Juce" Bruce 30a3da1b83 Skip key padding better
(This is a merge of http://go/wvgerrit/151112.)

The Widevine CDMs have never validated the padding on AES keys. However,
the code to ignore the padding was unusual and based on the assumption
the keys would always have either 0 or 16 bytes of padding and did not
handle other cases correctly. This patch updates the padding-ignoring
code to just do the obvious thing: Reject keys that are too small and
ignore all extra bytes regardless of count.

Bug: 114159862
Test: x86-64
Change-Id: Ic48010477e4cb5f7d2afbde25cf2f098e3470089
2022-04-29 18:20:31 +00:00
2022-04-29 18:20:31 +00:00
2020-02-12 14:36:45 -08:00
2014-02-20 12:48:45 -08:00
2021-10-27 05:05:43 +00:00
2022-04-22 16:35:07 +00:00
Description
No description provided
1.1 GiB