222 lines
9.9 KiB
C#
222 lines
9.9 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Security.AccessControl;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Contains parameters that are passed to the cryptographic service provider (CSP) that performs cryptographic computations. This class cannot be inherited.</summary>
|
|
// Token: 0x020003F8 RID: 1016
|
|
[Token(Token = "0x20003F8")]
|
|
[ComVisible(true)]
|
|
public sealed class CspParameters
|
|
{
|
|
/// <summary>Represents the flags for <see cref="T:System.Security.Cryptography.CspParameters" /> that modify the behavior of the cryptographic service provider (CSP).</summary>
|
|
/// <returns>An enumeration value, or a bitwise combination of enumeration values.</returns>
|
|
/// <exception cref="T:System.ArgumentException">Value is not a valid enumeration value.</exception>
|
|
// Token: 0x17000502 RID: 1282
|
|
// (get) Token: 0x06002355 RID: 9045 RVA: 0x00016B90 File Offset: 0x00014D90
|
|
// (set) Token: 0x06002356 RID: 9046 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000502")]
|
|
public CspProviderFlags Flags
|
|
{
|
|
[Token(Token = "0x6002355")]
|
|
[Address(RVA = "0x4B5010", Offset = "0x4B4010", VA = "0x1804B5010")]
|
|
get
|
|
{
|
|
return CspProviderFlags.NoFlags;
|
|
}
|
|
[Token(Token = "0x6002356")]
|
|
[Address(RVA = "0xC03DA0", Offset = "0xC02DA0", VA = "0x180C03DA0")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets a <see cref="T:System.Security.AccessControl.CryptoKeySecurity" /> object that represents access rights and audit rules for a container.</summary>
|
|
/// <returns>A <see cref="T:System.Security.AccessControl.CryptoKeySecurity" /> object that represents access rights and audit rules for a container.</returns>
|
|
// Token: 0x17000503 RID: 1283
|
|
// (get) Token: 0x06002357 RID: 9047 RVA: 0x00002082 File Offset: 0x00000282
|
|
// (set) Token: 0x06002358 RID: 9048 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000503")]
|
|
public CryptoKeySecurity CryptoKeySecurity
|
|
{
|
|
[Token(Token = "0x6002357")]
|
|
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x6002358")]
|
|
[Address(RVA = "0x415830", Offset = "0x414830", VA = "0x180415830")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets a password associated with a smart card key.</summary>
|
|
/// <returns>A password associated with a smart card key.</returns>
|
|
// Token: 0x17000504 RID: 1284
|
|
// (get) Token: 0x06002359 RID: 9049 RVA: 0x00002082 File Offset: 0x00000282
|
|
// (set) Token: 0x0600235A RID: 9050 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000504")]
|
|
public SecureString KeyPassword
|
|
{
|
|
[Token(Token = "0x6002359")]
|
|
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x600235A")]
|
|
[Address(RVA = "0xC03E80", Offset = "0xC02E80", VA = "0x180C03E80")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets a handle to the unmanaged parent window for a smart card password dialog box.</summary>
|
|
/// <returns>A handle to the parent window for a smart card password dialog box.</returns>
|
|
// Token: 0x17000505 RID: 1285
|
|
// (get) Token: 0x0600235B RID: 9051 RVA: 0x00016BA8 File Offset: 0x00014DA8
|
|
// (set) Token: 0x0600235C RID: 9052 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000505")]
|
|
public IntPtr ParentWindowHandle
|
|
{
|
|
[Token(Token = "0x600235B")]
|
|
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
[Token(Token = "0x600235C")]
|
|
[Address(RVA = "0xC03EE0", Offset = "0xC02EE0", VA = "0x180C03EE0")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters" /> class.</summary>
|
|
// Token: 0x0600235D RID: 9053 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600235D")]
|
|
[Address(RVA = "0xC03C40", Offset = "0xC02C40", VA = "0x180C03C40")]
|
|
public CspParameters()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters" /> class with the specified provider type code.</summary>
|
|
/// <param name="dwTypeIn">A provider type code that specifies the kind of provider to create.</param>
|
|
// Token: 0x0600235E RID: 9054 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600235E")]
|
|
[Address(RVA = "0xC03CF0", Offset = "0xC02CF0", VA = "0x180C03CF0")]
|
|
public CspParameters(int dwTypeIn)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters" /> class with the specified provider type code and name.</summary>
|
|
/// <param name="dwTypeIn">A provider type code that specifies the kind of provider to create.</param>
|
|
/// <param name="strProviderNameIn">A provider name.</param>
|
|
// Token: 0x0600235F RID: 9055 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600235F")]
|
|
[Address(RVA = "0xC03AB0", Offset = "0xC02AB0", VA = "0x180C03AB0")]
|
|
public CspParameters(int dwTypeIn, string strProviderNameIn)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters" /> class with the specified provider type code and name, and the specified container name.</summary>
|
|
/// <param name="dwTypeIn">The provider type code that specifies the kind of provider to create.</param>
|
|
/// <param name="strProviderNameIn">A provider name.</param>
|
|
/// <param name="strContainerNameIn">A container name.</param>
|
|
// Token: 0x06002360 RID: 9056 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002360")]
|
|
[Address(RVA = "0xC03D40", Offset = "0xC02D40", VA = "0x180C03D40")]
|
|
public CspParameters(int dwTypeIn, string strProviderNameIn, string strContainerNameIn)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters" /> class using a provider type, a provider name, a container name, access information, and a password associated with a smart card key.</summary>
|
|
/// <param name="providerType">The provider type code that specifies the kind of provider to create.</param>
|
|
/// <param name="providerName">A provider name.</param>
|
|
/// <param name="keyContainerName">A container name.</param>
|
|
/// <param name="cryptoKeySecurity">An object that represents access rights and audit rules for a container.</param>
|
|
/// <param name="keyPassword">A password associated with a smart card key.</param>
|
|
// Token: 0x06002361 RID: 9057 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002361")]
|
|
[Address(RVA = "0xC03B00", Offset = "0xC02B00", VA = "0x180C03B00")]
|
|
public CspParameters(int providerType, string providerName, string keyContainerName, CryptoKeySecurity cryptoKeySecurity, SecureString keyPassword)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters" /> class using a provider type, a provider name, a container name, access information, and a handle to an unmanaged smart card password dialog.</summary>
|
|
/// <param name="providerType">The provider type code that specifies the kind of provider to create.</param>
|
|
/// <param name="providerName">A provider name.</param>
|
|
/// <param name="keyContainerName">A container name.</param>
|
|
/// <param name="cryptoKeySecurity">An object that represents access rights and audit rules for the container.</param>
|
|
/// <param name="parentWindowHandle">A handle to the parent window for a smart card password dialog.</param>
|
|
// Token: 0x06002362 RID: 9058 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002362")]
|
|
[Address(RVA = "0xC03BD0", Offset = "0xC02BD0", VA = "0x180C03BD0")]
|
|
public CspParameters(int providerType, string providerName, string keyContainerName, CryptoKeySecurity cryptoKeySecurity, IntPtr parentWindowHandle)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002363 RID: 9059 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002363")]
|
|
[Address(RVA = "0xC03B70", Offset = "0xC02B70", VA = "0x180C03B70")]
|
|
internal CspParameters(int providerType, string providerName, string keyContainerName, CspProviderFlags flags)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002364 RID: 9060 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002364")]
|
|
[Address(RVA = "0xC03C80", Offset = "0xC02C80", VA = "0x180C03C80")]
|
|
internal CspParameters(CspParameters parameters)
|
|
{
|
|
}
|
|
|
|
/// <summary>Represents the provider type code for <see cref="T:System.Security.Cryptography.CspParameters" />.</summary>
|
|
// Token: 0x040013D8 RID: 5080
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40013D8")]
|
|
public int ProviderType;
|
|
|
|
/// <summary>Represents the provider name for <see cref="T:System.Security.Cryptography.CspParameters" />.</summary>
|
|
// Token: 0x040013D9 RID: 5081
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40013D9")]
|
|
public string ProviderName;
|
|
|
|
/// <summary>Represents the key container name for <see cref="T:System.Security.Cryptography.CspParameters" />.</summary>
|
|
// Token: 0x040013DA RID: 5082
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40013DA")]
|
|
public string KeyContainerName;
|
|
|
|
/// <summary>Specifies whether an asymmetric key is created as a signature key or an exchange key.</summary>
|
|
// Token: 0x040013DB RID: 5083
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40013DB")]
|
|
public int KeyNumber;
|
|
|
|
// Token: 0x040013DC RID: 5084
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2C")]
|
|
[Token(Token = "0x40013DC")]
|
|
private int m_flags;
|
|
|
|
// Token: 0x040013DD RID: 5085
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40013DD")]
|
|
private CryptoKeySecurity m_cryptoKeySecurity;
|
|
|
|
// Token: 0x040013DE RID: 5086
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x40013DE")]
|
|
private SecureString m_keyPassword;
|
|
|
|
// Token: 0x040013DF RID: 5087
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40013DF")]
|
|
private IntPtr m_parentWindowHandle;
|
|
}
|
|
}
|