Skip to content

Commit

Permalink
Fix (delegated) targets metadata HASHES definition
Browse files Browse the repository at this point in the history
Remove nonsensical 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" : { ... }) }
   , ...
 }
  • Loading branch information
lukpueh committed Nov 15, 2019
1 parent 16dba58 commit 40bf6b1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tuf-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -813,10 +813,9 @@ repo](https://github.com/theupdateframework/specification/issues).
It is allowed to have a TARGETS object with no TARGETPATH elements. This
can be used to indicate that no target files are available.

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

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

0 comments on commit 40bf6b1

Please sign in to comment.