-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[python] Add
gramine-sgx-sign --date
option
We did set date in SIGSTRUCT according to system clock without option to override. When doing reproducible builds, this field needs to be fixed to a known value, which now can be done using the `--date` option. If no `--date` option is given, keep the previous behaviour and set the current date. SIGSTRUCT keeps dates using BCD, but to avoid messing with setters in Sigstruct class, this commit won't support setting truly arbitrary values into the DATE field. Instead, we support only the values that have only decimal digits in hexadecimal representation. The tool gramine-sgx-sign is fixed to always output 4 digits for year, to be copy-pasteable to --date option. Signed-off-by: Wojtek Porczyk <woju@invisiblethingslab.com>
- Loading branch information
Showing
3 changed files
with
49 additions
and
13 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