The Update Framework (TUF) security model over COSE_Sign1/CBOR
0

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-tuf: replace astring with re in the python-tuf interop test

+4 -2
+1 -1
test/interop/python-tuf/dune
··· 6 6 7 7 (test 8 8 (name test) 9 - (libraries tuf.core tuf.json ptime alcotest astring) 9 + (libraries tuf.core tuf.json ptime alcotest re) 10 10 (deps 11 11 (source_tree traces))) 12 12
+3 -1
test/interop/python-tuf/test.ml
··· 12 12 | Error e -> Alcotest.failf "%a" Client.pp_error e 13 13 14 14 (* Find the first occurrence of [sub] in [s]. *) 15 - let index s sub = Astring.String.find_sub ~sub s 15 + let index s sub = 16 + Re.exec_opt Re.(compile (str sub)) s 17 + |> Option.map (fun g -> Re.Group.start g 0) 16 18 17 19 (* The whole chain verifies: this passes only if our canonical JSON of each 18 20 [signed] object reproduces what python-tuf signed, and our Ed25519 check