commit | d7977a480fc54ed7590ebd683b90fbf68a6c4981 | [log] [tgz] |
---|---|---|
author | Ali Zhang <alizhang@google.com> | Tue Oct 19 16:40:18 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Nov 05 19:30:19 2021 +0000 |
tree | 3618bb19efdbd7992d58fc47121ac3875c9ce6be | |
parent | 0211fdf8f27cd87c2245039a8c7eb3c1535d84b2 [diff] |
pw_software_update: Add a role type to CommonMetadata Adds a role type to CommonMetadata, which is also defined in the TUF spec. Expected value is one of ('root', 'targets', 'snapshot', 'timestamp'). This field serves as a "magic code" identifier that makes various `serialized_x_metadata` fields more tamper resistant. The field is verified against the expected role type immediately after a successful metadata signatures verification. No-Docs-Update-Reason: module in early development Change-Id: Ibdb717bcd450ace8a2681e223422eed0b58b723c Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/66100 Reviewed-by: Ewout van Bekkum <ewout@google.com> Commit-Queue: Ali Zhang <alizhang@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/