Various fixes to CompOS signature handling.
Grant the CompOS APEX access to the signature proto. Switch to
protobuf-lite, since it is more generally available in APEX.
Modify the signature proto (and related code) to store the signature
of the fsverity_formatted_digest, not the raw digest.
Fix dozens of places where raw public key (modulus) and RsaPublicKey
were confused. (Who knew that having 2 different representations with
the same underlying type would cause bugs?)
Fix error in PKCS#7 generation.
All still behind if (false).
Bug: 190166662
Test: Manual: Valid pending artifacts are accepted & added to fs-v as needed.
Change-Id: I115a1e4d2267ca01887ba693e8e02a0bb7c9141a
9 files changed