| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: I68d71b516fc47c72a19f4b8fb7167086814cf148
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch is to refactor twrpDigest using polymorphism
and inheritance to use the same call patterns for creating and
reading a digest. Now a library.
Use SHA2 from libcrypto. SHA2 is default if device has libcrypto.
Change string MD5 everywhere to use digest or Digest instead. Updated
string tags to digest. Translation will be required.
Switch out digest code into a driver class from partitionmanager.
SHA2 is better for digest creation due to decreased collision space
compared to MD5 and SHA1.
See https://en.wikipedia.org/wiki/SHA-2
Change-Id: I74b5546789990b12aa4ce2e389d25f80a3fe213f
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We can use switches and enums to make things more understandable
and work with results in a more sensible manner.
PS2: Move file MD5 verification and error handling into
a separate function to reduce code.
PS3: Default to false in Check_Restore_File_MD5 function
Change-Id: Id3ee0bb444cf13be67bb5dec2c43f7c26a86b954
(cherry picked from commit 5c3950716e5c7c6279efd5f3f338d6d22e5215e2)
|
|
|
|
| |
Change-Id: I23b2c44afca5c903becd201503f81766828c9304
|
|
|
|
| |
Change-Id: I65f16530565c4b510274c72227a5f1483519a677
|
|
|
|
| |
Change-Id: Ibcad999a1276b4519fc2b104b458ee77c984dc8b
|
|
|
|
| |
Change-Id: I949fe4bd99d2a4471fef3e3967980a6163943e71
|
|
- PS2: generic xml instead android xml
- PS3: formatting
Change-Id: I4c552e172d670278ab2bad1897ceb89b7ee7fec2
|