-
Notifications
You must be signed in to change notification settings - Fork 8
Add VBS-Protected Key Attestation Sample. #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add VBS-Protected Key Attestation Sample. #16
Conversation
attestation/utils.cpp
Outdated
| { | ||
| cout << "Creating VBS NCrypt (Key Guard) key..."; | ||
|
|
||
| wil::unique_ncrypt_key key_guard_key = create_key(MS_KEY_STORAGE_PROVIDER, nullptr, NCRYPT_OVERWRITE_KEY_FLAG | NCRYPT_USE_VIRTUAL_ISOLATION_FLAG); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NCRYPT_OVERWRITE_KEY_FLAG should not be required as the key is ephemeral (name = nullptr).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping NCRYPT_OVERWRITE_KEY_FLAG because key is no longer ephemeral.
| } | ||
|
|
||
| return 0; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have a comment explaining what the report will contain, similar to the comment on sample_tpm_key_att.cpp.
Add VBS-Protected Key Attestation Sample.