Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhijaju committed Apr 25, 2023
1 parent 1113b98 commit 2ea5b59
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ sequence<{{WebTransportHash}}> |serverCertificateHashes|, run these steps.
|networkPartitionKey|, |url|, false, |newConnection|, and |http3Only|. If the user agent
supports more than one congestion control algorithm, choose one appropriate for
|congestionControl| for sending of data on this |connection|. When obtaining a connection, if
|serverCertificateHashes| is specified instead of the default certificate version algorithm,
|serverCertificateHashes| is specified instead of the default certificate verification algorithm,
validate the certificate against [=custom certificate requirements=], and then
[=verify a certificate hash|verify the certificate hash=] against |serverCertificateHashes|.
The certificate is considered valid if and only if both of those checks pass.
Expand Down Expand Up @@ -1192,11 +1192,10 @@ To <dfn>verify a certificate hash</dfn>, given a |certificate| and an array of h
perform the following steps:
1. Let |referenceHash| be the result of [=computing a certificate hash=] with |certificate|.
1. For every hash |hash| in |hashes|:
1. If |hash|.{{WebTransportHash/value}} is not null:
1. If |hash|.{{WebTransportHash/value}} is not null and |hash|.{{WebTransportHash/algorithm}}
is an [=ASCII case-insensitive=] match with "sha-256":
1. Let |hashValue| be the byte sequence which |hash|.{{WebTransportHash/value}} represents.
1. If |hash|.{{WebTransportHash/algorithm}} is an [=ASCII case-insensitive=] match with
"sha-256", and |hashValue| is equal to |referenceHash|, the |certificate| is valid.
Return true.
1. If |hashValue| is equal to |referenceHash|, return true.
1. Return false.

</div>
Expand Down

0 comments on commit 2ea5b59

Please sign in to comment.