Skip to content

Commit

Permalink
Header depth is now less-weird.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewest committed Oct 8, 2024
1 parent 7a76a3c commit 4c63087
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 47 deletions.
6 changes: 3 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ At a high level, we'll make the following changes to SRI:
The following sections adjust algorithms accordingly.


<h3 id="parsing" algorithm>Parse |metadata|.</h3>
<h4 id="parsing" algorithm>Parse |metadata|.</h4>

First, we'll newly define two sets of algorithm tokens:

Expand Down Expand Up @@ -191,7 +191,7 @@ of signature expressions which are likewise understood:
3. Return |result|.


<h3 id="matching" algorithm>Do |bytes| and |header list| match |metadataList|?</h3>
<h4 id="matching" algorithm>Do |bytes| and |header list| match |metadataList|?</h4>

Since we adjusted the result of [[#parsing]] above, we need to adjust the
matching algorithm to match. The core change will be processing both hashing
Expand Down Expand Up @@ -225,7 +225,7 @@ entire [=response/header list=]:
4. <ins>If |result| is `true`, set |signature-match| to `true` and [=iteration/break=].</ins>
9. <del>Return `false`.</del><ins>Return `true` if both |hash-match| and |signature-match| are `true`. Otherwise return `false`.</ins>

<h3 id="validation" algorithm>Validate a signature using |algorithm| over |bytes| and |header list| with |public key|</h3>
<h4 id="validation" algorithm>Validate a signature using |algorithm| over |bytes| and |header list| with |public key|</h4>

The matching algorithm above calls into a new signature validation function.
Let's write that down. At core, it will execute the Ed25519 validation steps
Expand Down
Loading

0 comments on commit 4c63087

Please sign in to comment.