Class TufCanonicalJson
Produces a deterministic UTF-8 encoding of TUF signed metadata objects suitable for signature
verification. This follows the same structural rules as the secure-systems-lab reference
(go-securesystemslib canonical JSON):
objects have lexicographically sorted keys, no insignificant whitespace, and stable array ordering.
public static class TufCanonicalJson
- Inheritance
-
TufCanonicalJson
- Inherited Members
Methods
EncodeSigned(JsonElement)
Canonicalizes the signed element of a TUF metadata document to UTF-8 bytes.
public static byte[] EncodeSigned(JsonElement signed)
Parameters
signedJsonElementThe
signedJSON object.
Returns
- byte[]
Canonical UTF-8 payload hashed by TUF signatures.