Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Nov 8, 2023
1 parent e6e81cc commit ef49c28
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions draft-steele-cose-hash-envelope.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ For large payloads this is a problem. This draft addresses this problem by descr

## Usage

### Protected Header
~~~~ cbor-diag
{
/ Algorithm /
Expand All @@ -58,12 +59,38 @@ For large payloads this is a problem. This draft addresses this problem by descr
/ typ of the envelope /
TBD 0: application/hashed+cose
/ Hash algorithm of the payload /
TBD 1: sha-256
TBD 1: 1 / sha-256 /
/ cty of the preimage of the payload /
TBD 2: application/jwk+json
}
~~~~

### Attached Payload

~~~~ cbor-diag
18( / COSE Sign 1 /
[
h'a4013822...3a616263', / Protected /
{} / Unprotected /
h'317cedc7...c494e772', / Payload /
h'15280897...93ef39e5' / Signature /
]
)
~~~~

### Detached Payload

~~~~ cbor-diag
18( / COSE Sign 1 /
[
h'a4013822...3a616263', / Protected /
{} / Unprotected /
nil, / Detached payload /
h'15280897...93ef39e5' / Signature /
]
)
~~~~


# Conventions and Definitions

Expand All @@ -73,11 +100,19 @@ For large payloads this is a problem. This draft addresses this problem by descr

TODO Security

## Choice of Hash Function

Choose a good one.

# IANA Considerations

This document has no IANA actions.
#### COSE Header Algorithm Parameters

* Name: payload hash algorithm
* Label: TBD_1
* Value type: int
* Value registry: https://www.iana.org/assignments/named-information/named-information.xhtml
* Description: Hash algorithm used to produce the payload.

--- back

Expand Down

0 comments on commit ef49c28

Please sign in to comment.