Adds a dev_sign module to sign a root metadata with development keys.
No-Docs-Update-Reason: module in early development.
Change-Id: I3417ab711968d4f8ee1bcf9f164d9730d53af1b7
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/62901
Reviewed-by: Joe Ethier <jethier@google.com>
Commit-Queue: Ali Zhang <alizhang@google.com>
Adds support for generating a root metadata with key assignments for
the 'Root' and 'Targets' roles.
No-Docs-Update-Reason: module in early development
Change-Id: I3580dd6b2a40bdc38be8e88627685c62f2c7aa74
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/62442
Commit-Queue: Ali Zhang <alizhang@google.com>
Reviewed-by: Joe Ethier <jethier@google.com>
Adds support for importing ECDSA (NIST-P256) public keys from standard
pem files as KeyMapping objects.
Also refactors key generation to persist keys in standard pem formats
instead of customized JSON format. The pem formats are much more
recognizable in general and also removes the need for the
securesystemslib module.
No-Docs-Update-Reason: module in early development
Change-Id: Ie06808728137e70e35afdceb5254cf6abf20f1ea
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/62441
Commit-Queue: Ali Zhang <alizhang@google.com>
Reviewed-by: Joe Ethier <jethier@google.com>
Adds a keygen module to generate ECDSA keys for development use only.
No-Docs-Update-Reason: Module in development
Change-Id: I42b1336b88fa1b2c5c41b8cdafd97e40668255f5
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/61783
Pigweed-Auto-Submit: Ali Zhang <alizhang@google.com>
Reviewed-by: Joe Ethier <jethier@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Testing: Includes baseline unit test coverage
Change-Id: Idb0dfed54cb52e600a5d1acb0002bf051225a84d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/60043
Commit-Queue: Joe Ethier <jethier@google.com>
Reviewed-by: Ali Zhang <alizhang@google.com>