-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Pranjali-2501/main
added readme for attest CLI
- Loading branch information
Showing
2 changed files
with
49 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# `attest` CLI tool | ||
|
||
This binary is a thin wrapper around the `client` library to gather attestation | ||
reports in either binary or textproto formats. | ||
|
||
The tool's input is the intended `REPORT_DATA` contents, which is 64 bytes of | ||
user-provided data to include in the attestation report. This is typically a | ||
nonce. | ||
|
||
The tool's output is the report in any specified format to either standard out | ||
or directly to a file. | ||
|
||
|
||
## Usage | ||
|
||
``` | ||
./attest [options...] | ||
``` | ||
|
||
### `-in` | ||
|
||
This flag provides a string of 64 bytes `REPORT_DATA` content directly on the command line to include in the output attestation report. | ||
REPORT_DATA can be either in base64 or hex format. If -inform=auto, first check with base64, hex and last with auto. | ||
|
||
### `-inform` | ||
|
||
The format that input takes. One of | ||
|
||
* `base64`: for a byte string in base64 encoding. Fewer bytes than expected | ||
will be zero-filled. | ||
* `hex`: for a byte string encoded as a hexadecimal string. Fewer bytes than | ||
expected will be zero-filled. | ||
* `auto`: first check with base64 and last with hex | ||
|
||
Default value is `auto`. | ||
|
||
### `-outform` | ||
|
||
The format that output takes. This can be `bin` for Intel's specified structures | ||
in binary or `textproto` for this module's protobuf message types in human readable text format. | ||
|
||
Default value is `bin`. | ||
|
||
### `-out` | ||
|
||
Path to output file to write attestation report to. | ||
|
||
Default is empty, interpreted as stdout. |