Determining valid and proper byte ranges, regarding checksums and possibly other unsigned (VIDA) records. #14
named-dodo
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When signing a VIDA record, the easiest byte range would include the entire file except for the signature itself.
However, there are cases where this leads to issues.
For example, the PNG file format has a CRC32 checksum at the end of each segment.
This includes the VIDA segment, meaning that after signing, you either have an invalid checksum or update the checksum and invalidate the signature.
To combat this, you need to exclude the checksum from the digest that the VIDA record uses.
There are multiple reasons why a certain part of the file should be excluded from the digest:
This data will need to be constructed for each file format we support.
Additionally, we need to figure out how to report to end users if something is wrong with any of this.
Beta Was this translation helpful? Give feedback.
All reactions