diff options
| author | 2018-03-02 14:26:19 -0800 | |
|---|---|---|
| committer | 2018-03-07 13:28:32 -0800 | |
| commit | 4ba1eeaa0e0468131da08a5c5f461361cac79ff1 (patch) | |
| tree | 2a060dc2194a864ad55f7155f2672b41e1c864f1 /libs/hwui/ProgramCache.cpp | |
| parent | 8c55e8c306ceb26c9c177b745ea855ac3e4c1372 (diff) | |
Verify the content length in the verity digest
When generating digest for verity, for the last incomplete 4k chunk, the
data is padded with 0s. This implies that we can not tell from the
digest whether the file contains 0 or not, or how many 0s.
Since the verity hash is used by the kernel, the definition cannot be
change. Instead, the actual hashed content length is appended to the
original digest and is verified before used.
Also uprev algorithm IDs.
Test: use new apksigner to sign an apk, apk can be installed on device
Bug: 30972906
Change-Id: I382af6e4090c7dc3f92d5acb5ac5d02d1f496992
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions