@@ -36,16 +36,18 @@ The specification adopted will be the SSL Signing Spec 0.1, as linked above. As
3636such, we defer to that document to describe the specifics of signature
3737generation and verification.
3838
39- The envelope's ` payloadType ` is ` application/vnd.tuf+json ` for all TUF roles.
40- This means that the payload is expected to be a JSON file with a
41- ` _type ` field identifying the specific role.
39+ The envelope's ` payloadType ` is ` application/vnd.tuf+EXT ` for all TUF roles,
40+ where ` EXT ` indicates the extension based on the metaformat. For example, TUF's
41+ reference implementation uses JSON by default, and would therefore use
42+ ` application/vnd.tuf+json ` . This means that the payload is expected to be a JSON
43+ file with a ` _type ` field identifying the specific role.
4244
4345The envelope's ` payload ` is the JSON serialization of the message, equivalent to
4446the ` signed ` object in the current format.
4547
4648## Pseudocode
4749
48- Implementations should process the authentication layer as follows:
50+ The reference implementation should process the authentication layer as follows:
4951
5052Inputs:
5153
6365* If ` envelope.payload ` exists (new-style envelope):
6466 * If ` payloadType ` != ` application/vnd.tuf+json ` , raise error
6567 * ` preauthEncoding ` := PAE(UTF8(` envelope.payloadType ` ),
66- ` envelope.payload ` ) as per signing-spec
68+ ` envelope.payload ` ) as per
69+ [ signing-spec] ( https://github.com/secure-systems-lab/signing-spec/blob/master/protocol.md#signature-definition )
6770 * ` signers ` := set of ` name ` for which Verify(` preauthEncoding ` ,
6871 ` signature.sig ` , ` publicKey ` ) succeeds, for all combinations of
6972 (` signature ` ) in ` envelope.signatures ` and (` name ` , ` publicKey ` ) in
@@ -82,10 +85,10 @@ Steps:
8285
8386# Motivation
8487
85- TUF's sister project, in-toto, reused the current signature envelope to maximize
86- code reuse. Both projects currently use the same crypto provider. However, the
87- current envelope is detailed in both projects, and as time has shown, keeping
88- them synchronized has been difficult.
88+ TUF's sister project, in-toto, reused TUF's current signature envelope to
89+ maximize code reuse. Both projects currently use the same crypto provider.
90+ However, the current envelope is detailed in both projects, and as time has
91+ shown, keeping them synchronized has been difficult.
8992
9093Further, due to interactions in both communities, the signature envelopes have
9194evolved to better fit their use cases. Adopting a common source of truth, i.e.,
0 commit comments