Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[omaha-client] Implement deserialization of Omaha public keys from PEM.
This CL replaces the default deserialization derivation with a custom one which uses FromStr (https://docs.rs/ecdsa/0.13.4/ecdsa/struct.VerifyingKey.html#impl-FromStr) to deserialize from a PEM string into a p256::ecdsa::VerifyingKey. The default deserialization derivation does not behave as expected: RustCrypto/elliptic-curves#536. This CL also adds a test case for deserializing that key from PEM, and deserializing a PublicKeyAndId struct from JSON. Change-Id: I2ea02fa56b70c430935e40c74f30d2a8e1173516 Bug: 95799 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/667108 Reviewed-by: Sen Jiang <senj@google.com> Commit-Queue: James Buckland <jbuckland@google.com>
- Loading branch information