Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add documentation for VBS in CngKeyCreationOptions #107301

Merged
merged 3 commits into from
Sep 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,21 @@ public enum CngKeyCreationOptions : int
None = 0x00000000,
MachineKey = 0x00000020, // NCRYPT_MACHINE_KEY_FLAG
OverwriteExistingKey = 0x00000080, // NCRYPT_OVERWRITE_KEY_FLAG

/// <summary>
/// Indicates a key should be protected with Virtualization-based security (VBS).
/// </summary>
PreferVbs = 0x00010000, // NCRYPT_PREFER_VBS_FLAG

/// <summary>
/// Indicates a key must be protected with Virtualization-based security (VBS).
/// </summary>
RequireVbs = 0x00020000, // NCRYPT_REQUIRE_VBS_FLAG

/// <summary>
/// An additional flag that can be used along with <see cref="RequireVbs"/> or <see cref="PreferVbs"/> .
/// Instructs Virtualization-based security (VBS) to protect the client key with a per-boot key.
/// </summary>
UsePerBootKey = 0x00040000, // NCRYPT_USE_PER_BOOT_KEY_FLAG
}
}
Loading