Closed Javagedes closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Please upload report for BASE (
feature/sea@32c6ba4
). Learn more about missing BASE report.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
Updates the
gen_rim
command line tool to now have two subcommands -Generate
andSigning
.Generate
is the same tool as before, providing the ability to generate a RIM for a STM binary. It adds new functionality to also be able to update an existing RIM'ssignature
value.Signing
provides new functionality that can generateSig_structure<payload>
cbor binary. This binary is the portion of RIM that is actually used as the digest when signing the RIM as a part of theCoseSign1
structure. TheSig_structure<payload>
is defined in rfc9052. This command can either take the same arguments as theGenerate
function or consume an existing RIM.Expected Flows
Flow 1
rim generate $(STM_PATH) -o $(RIM_PATH) ...
rim signing $(RIM_PATH) --from-rim ...
rim generate $(RIM_PATH) --update-signature --signature $(SIGNATURE)
Flow 2
rim signing $(STM_PATH) ...
rim generate $(STM_PATH) -o $(RIM_PATH) --signature $(SIGNATURE) ...
How This Was Tested
Tested RIM generation still works as expected. Tested Sig Structure is successfully generated.
Integration Instructions
N/A