| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: I2ca7580bbde5a8903b9ba5c1513ddba887e8d49e
|
|
|
|
| |
Change-Id: Ia49a9329fa6f9c0ed26aa60a3175bc7944e8f3ac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I03c194ccf270ef9dfb910626741d6be76945df05
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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: I45a6a75d2b9332e523a7f61f19594c4029665ed7
|
|
|
|
|
|
| |
Translated by: Death Mask Salesman
Change-Id: I87f1f4417689b62c171264bfc05bf58e2ddfea03
|
|
Change-Id: Ia0bf0a3e1831016a0a418095356e236d55b07fe6
|