diff options
author | Tianjie Xu <xunchang@google.com> | 2019-09-30 11:31:49 -0700 |
---|---|---|
committer | Tianjie Xu <xunchang@google.com> | 2019-10-04 18:29:37 +0000 |
commit | 6cf830b8913e741d7d3c7ed047b2cbdbb222034e (patch) | |
tree | 834340d818e6604ef8b944b3ce31a0388ed28935 /scripts/update_payload/format_utils.py | |
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
Diffstat (limited to 'scripts/update_payload/format_utils.py')
0 files changed, 0 insertions, 0 deletions