Skip to content

Commit ce5a688

Browse files
committed
Move subtree validity into proof evaluation
The index check as already in there per RFC 9162. Putting both there is tidy.
1 parent c5c83cf commit ce5a688

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

draft-davidben-tls-merkle-tree-certs.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ Subtrees are Merkle Trees, so entries can be proven to be contained in the subtr
415415

416416
Given a subtree inclusion proof, `inclusion_proof`, for entry `index`, with hash `entry_hash`, of a subtree `[start, end)`, the subtree inclusion proof can be *evaluated* to compute the expected subtree hash:
417417

418-
1. Check `start <= index < end`. If this does not hold, fail proof evaluation.
418+
1. Check that `[start, end)` is a valid subtree ({{definition-of-a-subtree}}), and that `start <= index < end`. If either do not hold, fail proof evaluation.
419419

420420
1. Set `fn` to `index - start` and `sn` to `end - start - 1`.
421421

@@ -1072,8 +1072,6 @@ When verifying the signature on an X.509 certificate (Step (a)(1) of {{Section 6
10721072

10731073
1. Let `index` be the certificate's serial number. If `index` is contained in one of the relying party's revoked ranges ({{revocation-by-index}}), abort this process and fail verification.
10741074

1075-
1. Check the MTCProof's `start` and `end` describe a subtree per {{definition-of-a-subtree}}. If not, abort this process and fail verification.
1076-
10771075
1. Construct a TBSCertificateLogEntry as follows:
10781076
1. Copy the `version`, `issuer`, `validity`, `subject`, `issuerUniqueID`, `subjectUniqueID`, and `extensions` fields from the TBSCertificate.
10791077
1. Set `subjectPublicKeyInfoHash` to the hash of the DER encoding of `subjectPublicKeyInfo`.

0 commit comments

Comments
 (0)