commit | b85739d830dbfc0898ab38eaa941ce23eb65d328 | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Mon Jul 05 16:52:45 2021 +0100 |
committer | Alan Stokes <alanstokes@google.com> | Mon Jul 05 17:30:22 2021 +0100 |
tree | 2db7990f23713c423959eb2e4ae7f07c046cf65f | |
parent | 35049b610054004dea0b0433f22fb5594e1116d9 [diff] |
Switch to RsaPublicKey. We have been storing the CompOS public key as the raw modulus. But on the CompOS side we actually need it as a DER-encodedn RSAPublicKey (which encodes both modulus and exponent). Bug: 190166662 Test: Use compos_key_cmd to generate a key, odsign accepts it. Test: Use FakeCompOs to generate a key, compos_key_cmd accepts it. Change-Id: Ifdc9dc236d2b41ba2ee6a1a04cd7fd6dc4b1a241