Skip to content

Commit 735e2be

Browse files
committed
Fix (delegated) targets metadata HASHES definition
Remove not fully accurate phrase in the HASHES definition in section “4.5. File formats: targets.json and delegated target roles” of the spec. Contrary to that phrase, HASHES is an unconditionally mandatory value under each TARGETPATH for top-level targets and all delegated targets: { TARGETPATH : { "length" : LENGTH, "hashes" : HASHES, ("custom" : { ... }) } , ... }
1 parent 16dba58 commit 735e2be

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tuf-spec.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -813,10 +813,9 @@ repo](https://github.com/theupdateframework/specification/issues).
813813
It is allowed to have a TARGETS object with no TARGETPATH elements. This
814814
can be used to indicate that no target files are available.
815815

816-
HASHES is a dictionary that specifies one or more hashes, including
817-
the cryptographic hash function. For example: { "sha256": HASH, ... }. It
818-
is required for delegated roles, and optional for all others. HASH is the
819-
hexdigest of the cryptographic function computed on the target file.
816+
HASHES is a dictionary that specifies one or more hashes, including the
817+
cryptographic hash function. For example: { "sha256": HASH, ... }. HASH is
818+
the hexdigest of the cryptographic function computed on the target file.
820819

821820
If defined, the elements and values of "custom" will be made available to the
822821
client application. The information in "custom" is opaque to the framework

0 commit comments

Comments
 (0)