-
Notifications
You must be signed in to change notification settings - Fork 110
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
Require digest verification for related resources. #1567
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -3191,12 +3191,13 @@ <h2>Integrity of Related Resources</h2> | |||||||||
</p> | ||||||||||
|
||||||||||
<p> | ||||||||||
Specification authors that write algorithms that fetch a resource based on the | ||||||||||
`id` of an object inside a [=conforming document=] need to consider whether | ||||||||||
that resource's content is vital to the validity of that document. If it is, the | ||||||||||
specification MUST produce a validation error unless the resource matches the | ||||||||||
expected media type and cryptographic digest. | ||||||||||
A [=conforming verifier implementation=] that makes use of a resource based on | ||||||||||
the `id` of an object inside a [=conforming document=] with a corresponding | ||||||||||
cryptographic digest MUST check the digest against the retrieved resource. If | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just being picky...
Suggested change
It is pickiness. I will a accept either way. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, this is in the related resource section. The Note the sentence right before the above paragraph says:
This "an object" ^ is the same one referred to in the paragraph above. |
||||||||||
the digest of the retrieved resource does not match the one provided by the | ||||||||||
[=issuer=], the [=conforming verifier implementation=] MUST produce an error. | ||||||||||
msporny marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
</p> | ||||||||||
|
||||||||||
<p> | ||||||||||
Implementers are urged to consult appropriate sources, such as the | ||||||||||
<a href="https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf"> | ||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If necessary for clarity, here's an alternative suggestion to what Ivan suggests below:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that works and is mathematically more precise.
👍