Skip to content

Commit 80a0909

Browse files
committed
Address review comments
- Add link to PAE in signing-spec - Line edits - Use EXT to generalize extension for different metaformats Signed-off-by: Aditya Sirish <[email protected]>
1 parent 46fa241 commit 80a0909

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

tap17.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,18 @@ The specification adopted will be the SSL Signing Spec 0.1, as linked above. As
3636
such, we defer to that document to describe the specifics of signature
3737
generation 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

4345
The envelope's `payload` is the JSON serialization of the message, equivalent to
4446
the `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

5052
Inputs:
5153

@@ -63,7 +65,8 @@ Steps:
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

9093
Further, due to interactions in both communities, the signature envelopes have
9194
evolved to better fit their use cases. Adopting a common source of truth, i.e.,

0 commit comments

Comments
 (0)