-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
taskprov: Enforce param length prefixes
Structs `VdafConfig`, `DpConfig`, and `QueryConfig` all include a length prefix for the type-specific parameters so that the struct can be decoded even if the type is not recognized. If the parameters don't fill the space indicated by the length prefix, then decoding should fail. This change ensures the length is enforced for recognized types. It unifies the decoding logic across draft02 and draft07 (the former does not have the length prefix).
- Loading branch information
Showing
2 changed files
with
123 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters