-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance --export-header option for tr31-tool
* If the header (and optional blocks) are not already a multiple of the encryption block size, add fake optional block padding. * Currently this enhancement only supports an optional block count of at most 8 to avoid having to parse the optional block count digits. This does not impact tr31_import() in any way though and is purely a tr31-tool limitation. * The fake optional block padding is removed once tr31_import() succeeds such that tr31_export() can apply new optional block padding as required. * The processing of an export header is now encapsulated in tr31-tool as tr31_init_from_header() such that it can eventually be reused for other purposes too, like parsing verbatim optional block strings, or moved into the TR-31 library.
- Loading branch information
Showing
3 changed files
with
132 additions
and
40 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
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