Skip to content

Commit

Permalink
Add documentation for VBS in CngKeyCreationOptions
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Barton <jbarton@microsoft.com>
  • Loading branch information
vcsjones and bartonjs committed Sep 3, 2024
1 parent 4011912 commit 747df88
Showing 1 changed file with 13 additions and 0 deletions.
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>
/// Instructs Virtualization-based security (VBS) to protect the client key with a per-boot key
/// when combined with <see cref="RequireVbs"/> or <see cref="PreferVbs"/> .
/// </summary>
UsePerBootKey = 0x00040000, // NCRYPT_USE_PER_BOOT_KEY_FLAG
}
}

0 comments on commit 747df88

Please sign in to comment.