@@ -1126,8 +1126,8 @@ repo](https://github.com/theupdateframework/specification/issues).
1126
1126
for more details.
1127
1127
1128
1128
* ** 1.9.1** . ** Targets recovery** If a threshold of targets keys are removed
1129
- from the root metadata, delete the old targets, snapshot, and timestamp
1130
- metadata files.
1129
+ from the root metadata, delete the old top-level targets, snapshot, and
1130
+ timestamp metadata files.
1131
1131
1132
1132
* ** 1.9.2** . ** Snapshot recovery** If a threshold of snapshot keys are
1133
1133
removed from the root metadata, delete the old snapshot and timestamp
@@ -1244,35 +1244,35 @@ non-volatile storage as FILENAME.EXT.
1244
1244
the new targets metadata file is expired, discard it, abort the update cycle,
1245
1245
and report the potential freeze attack.
1246
1246
1247
- * ** 4.5** . ** Fast-forward attack recovery** If a threshold of delegated
1248
- targets keys for a role are removed from the delegating targets metadata,
1249
- delete the old delegated targets metadata for that role along with the
1250
- snapshot and timestamp metadata.
1251
-
1252
- * ** 4.6** . ** Perform a preorder depth-first search for metadata about the
1247
+ * ** 4.5** . ** Perform a preorder depth-first search for metadata about the
1253
1248
desired target, beginning with the top-level targets role.** Note: If
1254
1249
any metadata requested in steps 4.4.1 - 4.4.2.3 cannot be downloaded nor
1255
1250
validated, end the search and report that the target cannot be found.
1256
1251
1257
- * ** 4.6 .1** . If this role has been visited before, then skip this role (so
1252
+ * ** 4.5 .1** . If this role has been visited before, then skip this role (so
1258
1253
that cycles in the delegation graph are avoided). Otherwise, if an
1259
1254
application-specific maximum number of roles have been visited, then go to
1260
1255
step 5 (so that attackers cannot cause the client to waste excessive
1261
1256
bandwidth or time). Otherwise, if this role contains metadata about the
1262
1257
desired target, then go to step 5.
1263
1258
1264
- * ** 4.6 .2** . Otherwise, recursively search the list of delegations in order
1259
+ * ** 4.5 .2** . Otherwise, recursively search the list of delegations in order
1265
1260
of appearance.
1266
1261
1267
- * ** 4.6.2.1** . If the current delegation is a multi-role delegation,
1262
+ * ** 4.5.2.1** . ** Fast-forward attack recovery** If a threshold of
1263
+ delegated targets keys for the current delegation are removed from the
1264
+ delegating targets metadata, delete the old delegated targets metadata for
1265
+ the current delegation along with the snapshot and timestamp metadata.
1266
+
1267
+ * ** 4.5.2.1** . If the current delegation is a multi-role delegation,
1268
1268
recursively visit each role, and check that each has signed exactly the
1269
1269
same non-custom metadata (i.e., length and hashes) about the target (or
1270
1270
the lack of any such metadata).
1271
1271
1272
- * ** 4.6 .2.2** . If the current delegation is a terminating delegation,
1272
+ * ** 4.5 .2.2** . If the current delegation is a terminating delegation,
1273
1273
then jump to step 5.
1274
1274
1275
- * ** 4.6 .2.3** . Otherwise, if the current delegation is a non-terminating
1275
+ * ** 4.5 .2.3** . Otherwise, if the current delegation is a non-terminating
1276
1276
delegation, continue processing the next delegation, if any. Stop the
1277
1277
search, and jump to step 5 as soon as a delegation returns a result.
1278
1278
0 commit comments