Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diagrams #27

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions ascii-art/ctt.ascii-art
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.--------.
| Signer |
+--------+------------------------------------------.
| .-----------. |
| | phdr | |
| .-------. .---------. | .-----. | |
| | datum | / SK_cose / | | ... | | |
| '--+-+--' '----+----' | '-----' | |
| | | | '-+-+-------' |
| | | v | | |
| | | .-----. | | |
| | '--->| Sign1 |<-----' | |
| | '-+-+-' | | .-----.
| | | | | .----. | | TSA |
| | | '----------)--->| hash | | +-----+---------.
| | | | '-+--' | | .-. |
| | | | | | | | L | |
| | | | v | | '+' |
| | | | .----------------. | | | |
| | | | | messageImprint +-+->| v |
| | | | '----------------' | | .---------. |
| | | | | | | timestamp | |
| | | | .-------. | | '---------' |
| | | | | nonce +----------+->| ^ |
| | | | '-------' | | | |
| | | | | | .---+----. |
| | [signature] [phdr] | | / SK_tsa / |
| | | | | | '--------' |
| | | | .-----------------. | | |
| | | | | uhdr | | '-------+-------'
| | | | | .-----. .-----. | | |
| | | | | | ... | | TST |<--+---------'
| | | | | '-----' '-----' | |
| | | | '--------+--------' |
| | | | | |
'----+----------+-------------+----------+----------'
| | | |
[payload] v v [uhdr]
| .------------------. |
'------>| rfc3161-ctt COSE |<-----'
'------------------'
38 changes: 38 additions & 0 deletions ascii-art/ttc.ascii-art
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.--------. .-----.
| Signer | | TSA |
+--------+----------------------------------------. +-----+---------.
| .-------. .----. | | .-. |
| | datum +------------->| hash | | | | L | |
| '-+---+-' '-+--' | | '+' |
| | | | | | | |
| | | | | | v |
| | | v | | .---------. |
| | | .----------------. | | | timestamp | |
| | | | messageImprint +------+->| '---------' |
| | | '----------------' | | ^ |
| | | | | | |
| | | .-------. | | .---+----. |
| | | | nonce +---------------+->| / SK_tsa / |
| | | '-------' | | '--------' |
| | | | '-------+-------'
| | | .------------------. | |
| | | | phdr | | |
| | | .---------. | .-----. .-----. | | |
| | | / SK_cose / | | ... | | TST |<-----+---------'
| | | '----+----' | '-----' '-----' | |
| | | | '--+--+------------' |
| | | v | | |
| | | .-----. | | |
| | '-->| Sign1 |<-----' | .---------. |
| | '--+--' | | uhdr | |
| | | | | .-----. | |
| | | | | | ... | | |
| | [signature] [phdr] | '-----' | |
| | | | '----+----' |
| | | | | |
'---+------------+--------------+---------+-------'
| | | |
[payload] v v [uhdr]
| .------------------. |
'-------->| rfc3161-ttc COSE |<-----'
'------------------'
17 changes: 17 additions & 0 deletions draft-birkholz-cose-tsa-tst-header-parameter.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,23 @@ IANA is requested to add the COSE header parameters defined in {{tbl-new-hdrs}}

--- back

# Diagrams

The diagrams in this appendix illustrate the processing flow of the modes specified in {{sec-timestamp-then-cose}} and {{sec-cose-then-timestamp}} respectively.

For simplicity, only the `COSE_Sign1` processing is shown.
Similar diagrams for `COSE_Sign` can be derived by allowing multiple `SK_cose` boxes and replacing the label `[signature]` with `[signatures]`.

~~~ aasvg
{::include ascii-art/ttc.ascii-art}
~~~
{: #fig-ttc artwork-align="left" title="Timestamp then COSE"}

~~~ aasvg
{::include ascii-art/ctt.ascii-art}
~~~
{: #fig-ctt artwork-align="left" title="COSE then Timestamp"}

# Acknowledgments
{:unnumbered}

Expand Down
Loading