commit | 6cf830b8913e741d7d3c7ed047b2cbdbb222034e | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Mon Sep 30 11:31:49 2019 -0700 |
committer | Tianjie Xu <xunchang@google.com> | Fri Oct 04 18:29:37 2019 +0000 |
tree | 834340d818e6604ef8b944b3ce31a0388ed28935 | |
parent | c288d5ba2182a0b2742fa93d04db3e024b00e98e [diff] |
Factor out the RSA verification in payload verifier Right now, the payload is always signed with a RSA key, and the payload verifier takes the public key as a PEM encoded string. As we want to support payload signing with EC keys, we need to figure out the key types first in the verifier. So, add an overload function in payload verifier to accept EVP_PKEY as the public key. Bug: 141244025 Test: unittests pass Change-Id: Ibbdac5a7a3de48347100861aeac0013bff43da6f