File: XmlEncryption\DpapiNGProtectionDescriptorFlags.cs
Web Access
Project: src\src\DataProtection\DataProtection\src\Microsoft.AspNetCore.DataProtection.csproj (Microsoft.AspNetCore.DataProtection)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System;
 
namespace Microsoft.AspNetCore.DataProtection.XmlEncryption;
 
/// <summary>
/// Flags used to control the creation of protection descriptors.
/// </summary>
/// <remarks>
/// These values correspond to the 'dwFlags' parameter on NCryptCreateProtectionDescriptor.
/// See <see href="https://msdn.microsoft.com/en-us/library/windows/desktop/hh706800(v=vs.85).aspx"/> for more information.
/// </remarks>
[Flags]
public enum DpapiNGProtectionDescriptorFlags
{
    /// <summary>
    /// No special handling is necessary.
    /// </summary>
    None = 0,
 
    /// <summary>
    /// The provided descriptor is a reference to a full descriptor stored
    /// in the system registry.
    /// </summary>
    NamedDescriptor = 0x00000001,
 
    /// <summary>
    /// When combined with <see cref="NamedDescriptor"/>, uses the HKLM registry
    /// instead of the HKCU registry when locating the full descriptor.
    /// </summary>
    MachineKey = 0x00000020,
}