This commit is contained in:
niko
2026-04-12 16:51:38 +02:00
parent 1b6f6d81d0
commit c12fbe3fc6
17828 changed files with 2994770 additions and 0 deletions
@@ -0,0 +1,41 @@
using System;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.Security.Authentication
{
/// <summary>The exception that is thrown when authentication fails for an authentication stream.</summary>
// Token: 0x020001C8 RID: 456
[Token(Token = "0x20001C8")]
[Serializable]
public class AuthenticationException : SystemException
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.AuthenticationException" /> class with no message.</summary>
// Token: 0x06000C28 RID: 3112 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C28")]
[Address(RVA = "0x7679B0", Offset = "0x7669B0", VA = "0x1807679B0")]
public AuthenticationException()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.AuthenticationException" /> class with the specified message and inner exception.</summary>
/// <param name="message">A <see cref="T:System.String" /> that describes the authentication failure.</param>
/// <param name="innerException">The <see cref="T:System.Exception" /> that is the cause of the current exception.</param>
// Token: 0x06000C29 RID: 3113 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C29")]
[Address(RVA = "0x767A00", Offset = "0x766A00", VA = "0x180767A00")]
public AuthenticationException(string message, Exception innerException)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.AuthenticationException" /> class from the specified instances of the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" /> classes.</summary>
/// <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> instance that contains the information required to deserialize the new <see cref="T:System.Security.Authentication.AuthenticationException" /> instance.</param>
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> instance.</param>
// Token: 0x06000C2A RID: 3114 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C2A")]
[Address(RVA = "0x7241B0", Offset = "0x7231B0", VA = "0x1807241B0")]
protected AuthenticationException(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
}
}
}
@@ -0,0 +1,43 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Authentication
{
/// <summary>Defines the possible versions of <see cref="T:System.Security.Authentication.SslProtocols" />.</summary>
// Token: 0x020001C9 RID: 457
[Token(Token = "0x20001C9")]
[Flags]
public enum SslProtocols
{
/// <summary>Allows the operating system to choose the best protocol to use, and to block protocols that are not secure. Unless your app has a specific reason not to, you should use this field.</summary>
// Token: 0x04000657 RID: 1623
[Token(Token = "0x4000657")]
None = 0,
/// <summary>Specifies the SSL 2.0 protocol. SSL 2.0 has been superseded by the TLS protocol and is provided for backward compatibility only.</summary>
// Token: 0x04000658 RID: 1624
[Token(Token = "0x4000658")]
Ssl2 = 12,
/// <summary>Specifies the SSL 3.0 protocol. SSL 3.0 has been superseded by the TLS protocol and is provided for backward compatibility only.</summary>
// Token: 0x04000659 RID: 1625
[Token(Token = "0x4000659")]
Ssl3 = 48,
/// <summary>Specifies the TLS 1.0 security protocol. The TLS protocol is defined in IETF RFC 2246.</summary>
// Token: 0x0400065A RID: 1626
[Token(Token = "0x400065A")]
Tls = 192,
/// <summary>Specifies the TLS 1.1 security protocol. The TLS protocol is defined in IETF RFC 4346.</summary>
// Token: 0x0400065B RID: 1627
[Token(Token = "0x400065B")]
[MonoTODO]
Tls11 = 768,
/// <summary>Specifies the TLS 1.2 security protocol. The TLS protocol is defined in IETF RFC 5246.</summary>
// Token: 0x0400065C RID: 1628
[Token(Token = "0x400065C")]
[MonoTODO]
Tls12 = 3072,
/// <summary>Use None instead of Default. Default permits only the Secure Sockets Layer (SSL) 3.0 or Transport Layer Security (TLS) 1.0 protocols to be negotiated, and those options are now considered obsolete. Consequently, Default is not allowed in many organizations. Despite the name of this field, <see cref="T:System.Net.Security.SslStream" /> does not use it as a default except under special circumstances.</summary>
// Token: 0x0400065D RID: 1629
[Token(Token = "0x400065D")]
Default = 240
}
}
@@ -0,0 +1,29 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
// Token: 0x020001CF RID: 463
[Token(Token = "0x20001CF")]
internal enum AsnDecodeStatus
{
// Token: 0x04000671 RID: 1649
[Token(Token = "0x4000671")]
NotDecoded = -1,
// Token: 0x04000672 RID: 1650
[Token(Token = "0x4000672")]
Ok,
// Token: 0x04000673 RID: 1651
[Token(Token = "0x4000673")]
BadAsn,
// Token: 0x04000674 RID: 1652
[Token(Token = "0x4000674")]
BadTag,
// Token: 0x04000675 RID: 1653
[Token(Token = "0x4000675")]
BadLength,
// Token: 0x04000676 RID: 1654
[Token(Token = "0x4000676")]
InformationNotAvailable
}
}
@@ -0,0 +1,150 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents Abstract Syntax Notation One (ASN.1)-encoded data.</summary>
// Token: 0x020001D0 RID: 464
[Token(Token = "0x20001D0")]
public class AsnEncodedData
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.AsnEncodedData" /> class.</summary>
// Token: 0x06000C40 RID: 3136 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C40")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected AsnEncodedData()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.AsnEncodedData" /> class using an <see cref="T:System.Security.Cryptography.Oid" /> object and a byte array.</summary>
/// <param name="oid">An <see cref="T:System.Security.Cryptography.Oid" /> object.</param>
/// <param name="rawData">A byte array that contains Abstract Syntax Notation One (ASN.1)-encoded data.</param>
// Token: 0x06000C41 RID: 3137 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C41")]
[Address(RVA = "0x767830", Offset = "0x766830", VA = "0x180767830")]
public AsnEncodedData(Oid oid, byte[] rawData)
{
}
/// <summary>Gets or sets the <see cref="T:System.Security.Cryptography.Oid" /> value for an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</summary>
/// <returns>An <see cref="T:System.Security.Cryptography.Oid" /> object.</returns>
// Token: 0x1700023B RID: 571
// (set) Token: 0x06000C42 RID: 3138 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x1700023B")]
public Oid Oid
{
[Token(Token = "0x6000C42")]
[Address(RVA = "0x767880", Offset = "0x766880", VA = "0x180767880")]
set
{
}
}
/// <summary>Gets or sets the Abstract Syntax Notation One (ASN.1)-encoded data represented in a byte array.</summary>
/// <returns>A byte array that represents the Abstract Syntax Notation One (ASN.1)-encoded data.</returns>
/// <exception cref="T:System.ArgumentNullException">The value is <see langword="null" />.</exception>
// Token: 0x1700023C RID: 572
// (get) Token: 0x06000C43 RID: 3139 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000C44 RID: 3140 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x1700023C")]
public byte[] RawData
{
[Token(Token = "0x6000C43")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return null;
}
[Token(Token = "0x6000C44")]
[Address(RVA = "0x767900", Offset = "0x766900", VA = "0x180767900")]
set
{
}
}
/// <summary>Copies information from an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</summary>
/// <param name="asnEncodedData">The <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object to base the new object on.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asnEncodedData" /> is <see langword="null" />.</exception>
// Token: 0x06000C45 RID: 3141 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C45")]
[Address(RVA = "0x766BB0", Offset = "0x765BB0", VA = "0x180766BB0", Slot = "4")]
public virtual void CopyFrom(AsnEncodedData asnEncodedData)
{
}
// Token: 0x06000C46 RID: 3142 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C46")]
[Address(RVA = "0x7675C0", Offset = "0x7665C0", VA = "0x1807675C0", Slot = "5")]
internal virtual string ToString(bool multiLine)
{
return null;
}
// Token: 0x06000C47 RID: 3143 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C47")]
[Address(RVA = "0x766CA0", Offset = "0x765CA0", VA = "0x180766CA0")]
internal string Default(bool multiLine)
{
return null;
}
// Token: 0x06000C48 RID: 3144 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C48")]
[Address(RVA = "0x766AF0", Offset = "0x765AF0", VA = "0x180766AF0")]
internal string BasicConstraintsExtension(bool multiLine)
{
return null;
}
// Token: 0x06000C49 RID: 3145 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C49")]
[Address(RVA = "0x766DC0", Offset = "0x765DC0", VA = "0x180766DC0")]
internal string EnhancedKeyUsageExtension(bool multiLine)
{
return null;
}
// Token: 0x06000C4A RID: 3146 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C4A")]
[Address(RVA = "0x766E80", Offset = "0x765E80", VA = "0x180766E80")]
internal string KeyUsageExtension(bool multiLine)
{
return null;
}
// Token: 0x06000C4B RID: 3147 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C4B")]
[Address(RVA = "0x767500", Offset = "0x766500", VA = "0x180767500")]
internal string SubjectKeyIdentifierExtension(bool multiLine)
{
return null;
}
// Token: 0x06000C4C RID: 3148 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C4C")]
[Address(RVA = "0x767290", Offset = "0x766290", VA = "0x180767290")]
internal string SubjectAltName(bool multiLine)
{
return null;
}
// Token: 0x06000C4D RID: 3149 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C4D")]
[Address(RVA = "0x766F40", Offset = "0x765F40", VA = "0x180766F40")]
internal string NetscapeCertType(bool multiLine)
{
return null;
}
// Token: 0x04000677 RID: 1655
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000677")]
internal Oid _oid;
// Token: 0x04000678 RID: 1656
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000678")]
internal byte[] _raw;
}
}
+26
View File
@@ -0,0 +1,26 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
// Token: 0x020001CE RID: 462
[Token(Token = "0x20001CE")]
internal static class CAPI
{
// Token: 0x06000C3E RID: 3134 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C3E")]
[Address(RVA = "0xC73970", Offset = "0xC72970", VA = "0x180C73970")]
public static string CryptFindOIDInfoNameFromKey(string key, OidGroup oidGroup)
{
return null;
}
// Token: 0x06000C3F RID: 3135 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C3F")]
[Address(RVA = "0xC732C0", Offset = "0xC722C0", VA = "0x180C732C0")]
public static string CryptFindOIDInfoKeyFromName(string name, OidGroup oidGroup)
{
return null;
}
}
}
+99
View File
@@ -0,0 +1,99 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents a cryptographic object identifier. This class cannot be inherited.</summary>
// Token: 0x020001CB RID: 459
[Token(Token = "0x20001CB")]
public sealed class Oid
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Oid" /> class using a string value of an <see cref="T:System.Security.Cryptography.Oid" /> object.</summary>
/// <param name="oid">An object identifier.</param>
// Token: 0x06000C2B RID: 3115 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C2B")]
[Address(RVA = "0xC76DA0", Offset = "0xC75DA0", VA = "0x180C76DA0")]
public Oid(string oid)
{
}
// Token: 0x06000C2C RID: 3116 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C2C")]
[Address(RVA = "0xC76DF0", Offset = "0xC75DF0", VA = "0x180C76DF0")]
internal Oid(string oid, OidGroup group, bool lookupFriendlyName)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Oid" /> class using the specified value and friendly name.</summary>
/// <param name="value">The dotted number of the identifier.</param>
/// <param name="friendlyName">The friendly name of the identifier.</param>
// Token: 0x06000C2D RID: 3117 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C2D")]
[Address(RVA = "0x417DD0", Offset = "0x416DD0", VA = "0x180417DD0")]
public Oid(string value, string friendlyName)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Oid" /> class using the specified <see cref="T:System.Security.Cryptography.Oid" /> object.</summary>
/// <param name="oid">The object identifier information to use to create the new object identifier.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="oid" /> is <see langword="null" />.</exception>
// Token: 0x06000C2E RID: 3118 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C2E")]
[Address(RVA = "0xC76E80", Offset = "0xC75E80", VA = "0x180C76E80")]
public Oid(Oid oid)
{
}
/// <summary>Gets or sets the dotted number of the identifier.</summary>
/// <returns>The dotted number of the identifier.</returns>
// Token: 0x17000234 RID: 564
// (get) Token: 0x06000C2F RID: 3119 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000C30 RID: 3120 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000234")]
public string Value
{
[Token(Token = "0x6000C2F")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return null;
}
[Token(Token = "0x6000C30")]
[Address(RVA = "0x415800", Offset = "0x414800", VA = "0x180415800")]
set
{
}
}
/// <summary>Gets or sets the friendly name of the identifier.</summary>
/// <returns>The friendly name of the identifier.</returns>
// Token: 0x17000235 RID: 565
// (get) Token: 0x06000C31 RID: 3121 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000235")]
public string FriendlyName
{
[Token(Token = "0x6000C31")]
[Address(RVA = "0xC76F10", Offset = "0xC75F10", VA = "0x180C76F10")]
get
{
return null;
}
}
// Token: 0x0400066A RID: 1642
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400066A")]
private string m_value;
// Token: 0x0400066B RID: 1643
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400066B")]
private string m_friendlyName;
// Token: 0x0400066C RID: 1644
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400066C")]
private OidGroup m_group;
}
}
@@ -0,0 +1,124 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents a collection of <see cref="T:System.Security.Cryptography.Oid" /> objects. This class cannot be inherited.</summary>
// Token: 0x020001CC RID: 460
[Token(Token = "0x20001CC")]
public sealed class OidCollection : ICollection, IEnumerable
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.OidCollection" /> class.</summary>
// Token: 0x06000C32 RID: 3122 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C32")]
[Address(RVA = "0xC76C00", Offset = "0xC75C00", VA = "0x180C76C00")]
public OidCollection()
{
}
/// <summary>Adds an <see cref="T:System.Security.Cryptography.Oid" /> object to the <see cref="T:System.Security.Cryptography.OidCollection" /> object.</summary>
/// <param name="oid">The <see cref="T:System.Security.Cryptography.Oid" /> object to add to the collection.</param>
/// <returns>The index of the added <see cref="T:System.Security.Cryptography.Oid" /> object.</returns>
// Token: 0x06000C33 RID: 3123 RVA: 0x00006900 File Offset: 0x00004B00
[Token(Token = "0x6000C33")]
[Address(RVA = "0xBA4710", Offset = "0xBA3710", VA = "0x180BA4710")]
public int Add(Oid oid)
{
return 0;
}
/// <summary>Gets an <see cref="T:System.Security.Cryptography.Oid" /> object from the <see cref="T:System.Security.Cryptography.OidCollection" /> object.</summary>
/// <param name="index">The location of the <see cref="T:System.Security.Cryptography.Oid" /> object in the collection.</param>
/// <returns>An <see cref="T:System.Security.Cryptography.Oid" /> object.</returns>
// Token: 0x17000236 RID: 566
[Token(Token = "0x17000236")]
public Oid this[int index]
{
[Token(Token = "0x6000C34")]
[Address(RVA = "0xC76C60", Offset = "0xC75C60", VA = "0x180C76C60")]
get
{
return null;
}
}
/// <summary>Gets the number of <see cref="T:System.Security.Cryptography.Oid" /> objects in a collection.</summary>
/// <returns>The number of <see cref="T:System.Security.Cryptography.Oid" /> objects in a collection.</returns>
// Token: 0x17000237 RID: 567
// (get) Token: 0x06000C35 RID: 3125 RVA: 0x00006918 File Offset: 0x00004B18
[Token(Token = "0x17000237")]
public int Count
{
[Token(Token = "0x6000C35")]
[Address(RVA = "0x478810", Offset = "0x477810", VA = "0x180478810", Slot = "5")]
get
{
return 0;
}
}
/// <summary>Returns an <see cref="T:System.Security.Cryptography.OidEnumerator" /> object that can be used to navigate the <see cref="T:System.Security.Cryptography.OidCollection" /> object.</summary>
/// <returns>An <see cref="T:System.Security.Cryptography.OidEnumerator" /> object that can be used to navigate the collection.</returns>
// Token: 0x06000C36 RID: 3126 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C36")]
[Address(RVA = "0xC76BA0", Offset = "0xC75BA0", VA = "0x180C76BA0", Slot = "8")]
IEnumerator IEnumerable.GetEnumerator()
{
return null;
}
/// <summary>Copies the <see cref="T:System.Security.Cryptography.OidCollection" /> object into an array.</summary>
/// <param name="array">The array to copy the <see cref="T:System.Security.Cryptography.OidCollection" /> object to.</param>
/// <param name="index">The location where the copy operation starts.</param>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="array" /> cannot be a multidimensional array.
/// -or-
/// The length of <paramref name="array" /> is an invalid offset length.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="array" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The value of <paramref name="index" /> is out range.</exception>
// Token: 0x06000C37 RID: 3127 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C37")]
[Address(RVA = "0xC76940", Offset = "0xC75940", VA = "0x180C76940", Slot = "4")]
void ICollection.CopyTo(Array array, int index)
{
}
/// <summary>Gets a value that indicates whether access to the <see cref="T:System.Security.Cryptography.OidCollection" /> object is thread safe.</summary>
/// <returns>
/// <see langword="false" /> in all cases.</returns>
// Token: 0x17000238 RID: 568
// (get) Token: 0x06000C38 RID: 3128 RVA: 0x00006930 File Offset: 0x00004B30
[Token(Token = "0x17000238")]
public bool IsSynchronized
{
[Token(Token = "0x6000C38")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "7")]
get
{
return default(bool);
}
}
/// <summary>Gets an object that can be used to synchronize access to the <see cref="T:System.Security.Cryptography.OidCollection" /> object.</summary>
/// <returns>An object that can be used to synchronize access to the <see cref="T:System.Security.Cryptography.OidCollection" /> object.</returns>
// Token: 0x17000239 RID: 569
// (get) Token: 0x06000C39 RID: 3129 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000239")]
public object SyncRoot
{
[Token(Token = "0x6000C39")]
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0", Slot = "6")]
get
{
return null;
}
}
// Token: 0x0400066D RID: 1645
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400066D")]
private ArrayList m_list;
}
}
@@ -0,0 +1,65 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Provides the ability to navigate through an <see cref="T:System.Security.Cryptography.OidCollection" /> object. This class cannot be inherited.</summary>
// Token: 0x020001CD RID: 461
[Token(Token = "0x20001CD")]
public sealed class OidEnumerator : IEnumerator
{
// Token: 0x06000C3A RID: 3130 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C3A")]
[Address(RVA = "0xC76D70", Offset = "0xC75D70", VA = "0x180C76D70")]
internal OidEnumerator(OidCollection oids)
{
}
/// <summary>Gets the current <see cref="T:System.Security.Cryptography.Oid" /> object in an <see cref="T:System.Security.Cryptography.OidCollection" /> object.</summary>
/// <returns>The current <see cref="T:System.Security.Cryptography.Oid" /> object.</returns>
// Token: 0x1700023A RID: 570
// (get) Token: 0x06000C3B RID: 3131 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700023A")]
object IEnumerator.Current
{
[Token(Token = "0x6000C3B")]
[Address(RVA = "0xC76D40", Offset = "0xC75D40", VA = "0x180C76D40", Slot = "5")]
get
{
return null;
}
}
/// <summary>Advances to the next <see cref="T:System.Security.Cryptography.Oid" /> object in an <see cref="T:System.Security.Cryptography.OidCollection" /> object.</summary>
/// <returns>
/// <see langword="true" />, if the enumerator was successfully advanced to the next element; <see langword="false" />, if the enumerator has passed the end of the collection.</returns>
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
// Token: 0x06000C3C RID: 3132 RVA: 0x00006948 File Offset: 0x00004B48
[Token(Token = "0x6000C3C")]
[Address(RVA = "0xC76CE0", Offset = "0xC75CE0", VA = "0x180C76CE0", Slot = "4")]
public bool MoveNext()
{
return default(bool);
}
/// <summary>Sets an enumerator to its initial position.</summary>
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
// Token: 0x06000C3D RID: 3133 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C3D")]
[Address(RVA = "0x4EDE50", Offset = "0x4ECE50", VA = "0x1804EDE50", Slot = "6")]
public void Reset()
{
}
// Token: 0x0400066E RID: 1646
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400066E")]
private OidCollection m_oids;
// Token: 0x0400066F RID: 1647
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400066F")]
private int m_current;
}
}
+56
View File
@@ -0,0 +1,56 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Identifies Windows cryptographic object identifier (OID) groups.</summary>
// Token: 0x020001CA RID: 458
[Token(Token = "0x20001CA")]
public enum OidGroup
{
/// <summary>All the groups.</summary>
// Token: 0x0400065F RID: 1631
[Token(Token = "0x400065F")]
All,
/// <summary>The Windows group that is represented by CRYPT_HASH_ALG_OID_GROUP_ID.</summary>
// Token: 0x04000660 RID: 1632
[Token(Token = "0x4000660")]
HashAlgorithm,
/// <summary>The Windows group that is represented by CRYPT_ENCRYPT_ALG_OID_GROUP_ID.</summary>
// Token: 0x04000661 RID: 1633
[Token(Token = "0x4000661")]
EncryptionAlgorithm,
/// <summary>The Windows group that is represented by CRYPT_PUBKEY_ALG_OID_GROUP_ID.</summary>
// Token: 0x04000662 RID: 1634
[Token(Token = "0x4000662")]
PublicKeyAlgorithm,
/// <summary>The Windows group that is represented by CRYPT_SIGN_ALG_OID_GROUP_ID.</summary>
// Token: 0x04000663 RID: 1635
[Token(Token = "0x4000663")]
SignatureAlgorithm,
/// <summary>The Windows group that is represented by CRYPT_RDN_ATTR_OID_GROUP_ID.</summary>
// Token: 0x04000664 RID: 1636
[Token(Token = "0x4000664")]
Attribute,
/// <summary>The Windows group that is represented by CRYPT_EXT_OR_ATTR_OID_GROUP_ID.</summary>
// Token: 0x04000665 RID: 1637
[Token(Token = "0x4000665")]
ExtensionOrAttribute,
/// <summary>The Windows group that is represented by CRYPT_ENHKEY_USAGE_OID_GROUP_ID.</summary>
// Token: 0x04000666 RID: 1638
[Token(Token = "0x4000666")]
EnhancedKeyUsage,
/// <summary>The Windows group that is represented by CRYPT_POLICY_OID_GROUP_ID.</summary>
// Token: 0x04000667 RID: 1639
[Token(Token = "0x4000667")]
Policy,
/// <summary>The Windows group that is represented by CRYPT_TEMPLATE_OID_GROUP_ID.</summary>
// Token: 0x04000668 RID: 1640
[Token(Token = "0x4000668")]
Template,
/// <summary>The Windows group that is represented by CRYPT_KDF_OID_GROUP_ID.</summary>
// Token: 0x04000669 RID: 1641
[Token(Token = "0x4000669")]
KeyDerivationFunction
}
}
@@ -0,0 +1,128 @@
using System;
using Cpp2IlInjected;
using Mono.Security.X509;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Represents a certificate's public key information. This class cannot be inherited.</summary>
// Token: 0x020001DA RID: 474
[Token(Token = "0x20001DA")]
public sealed class PublicKey
{
// Token: 0x06000C50 RID: 3152 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C50")]
[Address(RVA = "0xC77750", Offset = "0xC76750", VA = "0x180C77750")]
internal PublicKey(X509Certificate certificate)
{
}
/// <summary>Gets the ASN.1-encoded representation of the public key value.</summary>
/// <returns>The ASN.1-encoded representation of the public key value.</returns>
// Token: 0x1700023D RID: 573
// (get) Token: 0x06000C51 RID: 3153 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700023D")]
public AsnEncodedData EncodedKeyValue
{
[Token(Token = "0x6000C51")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return null;
}
}
/// <summary>Gets the ASN.1-encoded representation of the public key parameters.</summary>
/// <returns>The ASN.1-encoded representation of the public key parameters.</returns>
// Token: 0x1700023E RID: 574
// (get) Token: 0x06000C52 RID: 3154 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700023E")]
public AsnEncodedData EncodedParameters
{
[Token(Token = "0x6000C52")]
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
get
{
return null;
}
}
/// <summary>Gets an <see cref="T:System.Security.Cryptography.RSA" /> derived object or a <see cref="T:System.Security.Cryptography.DSA" /> derived object representing the public key.</summary>
/// <returns>An <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object representing the public key.</returns>
/// <exception cref="T:System.NotSupportedException">The key algorithm is not supported.</exception>
// Token: 0x1700023F RID: 575
// (get) Token: 0x06000C53 RID: 3155 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700023F")]
public AsymmetricAlgorithm Key
{
[Token(Token = "0x6000C53")]
[Address(RVA = "0xC77C40", Offset = "0xC76C40", VA = "0x180C77C40")]
get
{
return null;
}
}
/// <summary>Gets an object identifier (OID) object of the public key.</summary>
/// <returns>An object identifier (OID) object of the public key.</returns>
// Token: 0x17000240 RID: 576
// (get) Token: 0x06000C54 RID: 3156 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000240")]
public Oid Oid
{
[Token(Token = "0x6000C54")]
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
get
{
return null;
}
}
// Token: 0x06000C55 RID: 3157 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C55")]
[Address(RVA = "0xC77650", Offset = "0xC76650", VA = "0x180C77650")]
private static byte[] GetUnsignedBigInteger(byte[] integer)
{
return null;
}
// Token: 0x06000C56 RID: 3158 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C56")]
[Address(RVA = "0xC76F90", Offset = "0xC75F90", VA = "0x180C76F90")]
internal static DSA DecodeDSA(byte[] rawPublicKey, byte[] rawParameters)
{
return null;
}
// Token: 0x06000C57 RID: 3159 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C57")]
[Address(RVA = "0xC77380", Offset = "0xC76380", VA = "0x180C77380")]
internal static RSA DecodeRSA(byte[] rawPublicKey)
{
return null;
}
// Token: 0x040006C4 RID: 1732
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40006C4")]
private AsymmetricAlgorithm _key;
// Token: 0x040006C5 RID: 1733
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40006C5")]
private AsnEncodedData _keyValue;
// Token: 0x040006C6 RID: 1734
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40006C6")]
private AsnEncodedData _params;
// Token: 0x040006C7 RID: 1735
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40006C7")]
private Oid _oid;
// Token: 0x040006C8 RID: 1736
[Token(Token = "0x40006C8")]
private static byte[] Empty;
}
}
@@ -0,0 +1,20 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Specifies the location of the X.509 certificate store.</summary>
// Token: 0x020001D1 RID: 465
[Token(Token = "0x20001D1")]
public enum StoreLocation
{
/// <summary>The X.509 certificate store used by the current user.</summary>
// Token: 0x0400067A RID: 1658
[Token(Token = "0x400067A")]
CurrentUser = 1,
/// <summary>The X.509 certificate store assigned to the local machine.</summary>
// Token: 0x0400067B RID: 1659
[Token(Token = "0x400067B")]
LocalMachine
}
}
@@ -0,0 +1,13 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Represents the distinguished name of an X509 certificate. This class cannot be inherited.</summary>
// Token: 0x020001DB RID: 475
[Token(Token = "0x20001DB")]
[MonoTODO]
public sealed class X500DistinguishedName : AsnEncodedData
{
}
}
@@ -0,0 +1,155 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Defines the constraints set on a certificate. This class cannot be inherited.</summary>
// Token: 0x020001DC RID: 476
[Token(Token = "0x20001DC")]
public sealed class X509BasicConstraintsExtension : X509Extension
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension" /> class.</summary>
// Token: 0x06000C59 RID: 3161 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C59")]
[Address(RVA = "0xC8A120", Offset = "0xC89120", VA = "0x180C8A120")]
public X509BasicConstraintsExtension()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object and a value that identifies whether the extension is critical.</summary>
/// <param name="encodedBasicConstraints">The encoded data to use to create the extension.</param>
/// <param name="critical">
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
// Token: 0x06000C5A RID: 3162 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C5A")]
[Address(RVA = "0xC8A3D0", Offset = "0xC893D0", VA = "0x180C8A3D0")]
public X509BasicConstraintsExtension(AsnEncodedData encodedBasicConstraints, bool critical)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension" /> class. Parameters specify a value that indicates whether a certificate is a certificate authority (CA) certificate, a value that indicates whether the certificate has a restriction on the number of path levels it allows, the number of levels allowed in a certificate's path, and a value that indicates whether the extension is critical.</summary>
/// <param name="certificateAuthority">
/// <see langword="true" /> if the certificate is a certificate authority (CA) certificate; otherwise, <see langword="false" />.</param>
/// <param name="hasPathLengthConstraint">
/// <see langword="true" /> if the certificate has a restriction on the number of path levels it allows; otherwise, <see langword="false" />.</param>
/// <param name="pathLengthConstraint">The number of levels allowed in a certificate's path.</param>
/// <param name="critical">
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
// Token: 0x06000C5B RID: 3163 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C5B")]
[Address(RVA = "0xC8A1B0", Offset = "0xC891B0", VA = "0x180C8A1B0")]
public X509BasicConstraintsExtension(bool certificateAuthority, bool hasPathLengthConstraint, int pathLengthConstraint, bool critical)
{
}
/// <summary>Gets a value indicating whether a certificate is a certificate authority (CA) certificate.</summary>
/// <returns>
/// <see langword="true" /> if the certificate is a certificate authority (CA) certificate, otherwise, <see langword="false" />.</returns>
// Token: 0x17000241 RID: 577
// (get) Token: 0x06000C5C RID: 3164 RVA: 0x00006960 File Offset: 0x00004B60
[Token(Token = "0x17000241")]
public bool CertificateAuthority
{
[Token(Token = "0x6000C5C")]
[Address(RVA = "0xC8A490", Offset = "0xC89490", VA = "0x180C8A490")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether a certificate has a restriction on the number of path levels it allows.</summary>
/// <returns>
/// <see langword="true" /> if the certificate has a restriction on the number of path levels it allows, otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The extension cannot be decoded.</exception>
// Token: 0x17000242 RID: 578
// (get) Token: 0x06000C5D RID: 3165 RVA: 0x00006978 File Offset: 0x00004B78
[Token(Token = "0x17000242")]
public bool HasPathLengthConstraint
{
[Token(Token = "0x6000C5D")]
[Address(RVA = "0xC8A500", Offset = "0xC89500", VA = "0x180C8A500")]
get
{
return default(bool);
}
}
/// <summary>Gets the number of levels allowed in a certificate's path.</summary>
/// <returns>An integer indicating the number of levels allowed in a certificate's path.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The extension cannot be decoded.</exception>
// Token: 0x17000243 RID: 579
// (get) Token: 0x06000C5E RID: 3166 RVA: 0x00006990 File Offset: 0x00004B90
[Token(Token = "0x17000243")]
public int PathLengthConstraint
{
[Token(Token = "0x6000C5E")]
[Address(RVA = "0xC8A570", Offset = "0xC89570", VA = "0x180C8A570")]
get
{
return 0;
}
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</summary>
/// <param name="asnEncodedData">The encoded data to use to create the extension.</param>
// Token: 0x06000C5F RID: 3167 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C5F")]
[Address(RVA = "0xC89AA0", Offset = "0xC88AA0", VA = "0x180C89AA0", Slot = "4")]
public override void CopyFrom(AsnEncodedData asnEncodedData)
{
}
// Token: 0x06000C60 RID: 3168 RVA: 0x000069A8 File Offset: 0x00004BA8
[Token(Token = "0x6000C60")]
[Address(RVA = "0xC89C30", Offset = "0xC88C30", VA = "0x180C89C30")]
internal AsnDecodeStatus Decode(byte[] extension)
{
return AsnDecodeStatus.Ok;
}
// Token: 0x06000C61 RID: 3169 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C61")]
[Address(RVA = "0xC89DD0", Offset = "0xC88DD0", VA = "0x180C89DD0")]
internal byte[] Encode()
{
return null;
}
// Token: 0x06000C62 RID: 3170 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C62")]
[Address(RVA = "0xC89F30", Offset = "0xC88F30", VA = "0x180C89F30", Slot = "5")]
internal override string ToString(bool multiLine)
{
return null;
}
// Token: 0x040006C9 RID: 1737
[Token(Token = "0x40006C9")]
internal const string oid = "2.5.29.19";
// Token: 0x040006CA RID: 1738
[Token(Token = "0x40006CA")]
internal const string friendlyName = "Basic Constraints";
// Token: 0x040006CB RID: 1739
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40006CB")]
private bool _certificateAuthority;
// Token: 0x040006CC RID: 1740
[FieldOffset(Offset = "0x29")]
[Token(Token = "0x40006CC")]
private bool _hasPathLengthConstraint;
// Token: 0x040006CD RID: 1741
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x40006CD")]
private int _pathLengthConstraint;
// Token: 0x040006CE RID: 1742
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40006CE")]
private AsnDecodeStatus _status;
}
}
@@ -0,0 +1,263 @@
using System;
using System.Runtime.Serialization;
using System.Text;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Represents an X.509 certificate.</summary>
// Token: 0x020001DD RID: 477
[Token(Token = "0x20001DD")]
[Serializable]
public class X509Certificate2 : X509Certificate
{
// Token: 0x17000244 RID: 580
// (get) Token: 0x06000C63 RID: 3171 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000244")]
internal X509Certificate2Impl Impl
{
[Token(Token = "0x6000C63")]
[Address(RVA = "0xC8D320", Offset = "0xC8C320", VA = "0x180C8D320")]
get
{
return null;
}
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> class.</summary>
// Token: 0x06000C64 RID: 3172 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C64")]
[Address(RVA = "0xC8D2D0", Offset = "0xC8C2D0", VA = "0x180C8D2D0")]
public X509Certificate2()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> class using an <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object.</summary>
/// <param name="certificate">An <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object.</param>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">An error with the certificate occurs. For example:
///
/// The certificate file does not exist.
///
/// The certificate is invalid.
///
/// The certificate's password is incorrect.</exception>
// Token: 0x06000C65 RID: 3173 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C65")]
[Address(RVA = "0xC8D260", Offset = "0xC8C260", VA = "0x180C8D260")]
public X509Certificate2(X509Certificate certificate)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> class using the specified serialization and stream context information.</summary>
/// <param name="info">The serialization information required to deserialize the new <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" />.</param>
/// <param name="context">Contextual information about the source of the stream to be deserialized.</param>
// Token: 0x06000C66 RID: 3174 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C66")]
[Address(RVA = "0xC8D1E0", Offset = "0xC8C1E0", VA = "0x180C8D1E0")]
protected X509Certificate2(SerializationInfo info, StreamingContext context)
{
}
/// <summary>Gets the date in local time after which a certificate is no longer valid.</summary>
/// <returns>A <see cref="T:System.DateTime" /> object that represents the expiration date for the certificate.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate is unreadable.</exception>
// Token: 0x17000245 RID: 581
// (get) Token: 0x06000C67 RID: 3175 RVA: 0x000069C0 File Offset: 0x00004BC0
[Token(Token = "0x17000245")]
public DateTime NotAfter
{
[Token(Token = "0x6000C67")]
[Address(RVA = "0xC8D3B0", Offset = "0xC8C3B0", VA = "0x180C8D3B0")]
get
{
return default(DateTime);
}
}
/// <summary>Gets the date in local time on which a certificate becomes valid.</summary>
/// <returns>A <see cref="T:System.DateTime" /> object that represents the effective date of the certificate.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate is unreadable.</exception>
// Token: 0x17000246 RID: 582
// (get) Token: 0x06000C68 RID: 3176 RVA: 0x000069D8 File Offset: 0x00004BD8
[Token(Token = "0x17000246")]
public DateTime NotBefore
{
[Token(Token = "0x6000C68")]
[Address(RVA = "0xC8D400", Offset = "0xC8C400", VA = "0x180C8D400")]
get
{
return default(DateTime);
}
}
/// <summary>Gets or sets the <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object that represents the private key associated with a certificate.</summary>
/// <returns>An <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object, which is either an RSA or DSA cryptographic service provider.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key value is not an RSA or DSA key, or the key is unreadable.</exception>
/// <exception cref="T:System.ArgumentNullException">The value being set for this property is <see langword="null" />.</exception>
/// <exception cref="T:System.NotSupportedException">The key algorithm for this private key is not supported.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The X.509 keys do not match.</exception>
/// <exception cref="T:System.ArgumentException">The cryptographic service provider key is <see langword="null" />.</exception>
// Token: 0x17000247 RID: 583
// (get) Token: 0x06000C69 RID: 3177 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000247")]
public AsymmetricAlgorithm PrivateKey
{
[Token(Token = "0x6000C69")]
[Address(RVA = "0xC8D450", Offset = "0xC8C450", VA = "0x180C8D450")]
get
{
return null;
}
}
/// <summary>Gets a <see cref="P:System.Security.Cryptography.X509Certificates.X509Certificate2.PublicKey" /> object associated with a certificate.</summary>
/// <returns>A <see cref="P:System.Security.Cryptography.X509Certificates.X509Certificate2.PublicKey" /> object.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key value is not an RSA or DSA key, or the key is unreadable.</exception>
// Token: 0x17000248 RID: 584
// (get) Token: 0x06000C6A RID: 3178 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000248")]
public PublicKey PublicKey
{
[Token(Token = "0x6000C6A")]
[Address(RVA = "0xC8D480", Offset = "0xC8C480", VA = "0x180C8D480")]
get
{
return null;
}
}
/// <summary>Gets the serial number of a certificate as a big-endian hexadecimal string.</summary>
/// <returns>The serial number of the certificate as a big-endian hexadecimal string.</returns>
// Token: 0x17000249 RID: 585
// (get) Token: 0x06000C6B RID: 3179 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000249")]
public string SerialNumber
{
[Token(Token = "0x6000C6B")]
[Address(RVA = "0x85E3F0", Offset = "0x85D3F0", VA = "0x18085E3F0")]
get
{
return null;
}
}
/// <summary>Gets the algorithm used to create the signature of a certificate.</summary>
/// <returns>The object identifier of the signature algorithm.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate is unreadable.</exception>
// Token: 0x1700024A RID: 586
// (get) Token: 0x06000C6C RID: 3180 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700024A")]
public Oid SignatureAlgorithm
{
[Token(Token = "0x6000C6C")]
[Address(RVA = "0xC8D4B0", Offset = "0xC8C4B0", VA = "0x180C8D4B0")]
get
{
return null;
}
}
/// <summary>Gets the thumbprint of a certificate.</summary>
/// <returns>The thumbprint of the certificate.</returns>
// Token: 0x1700024B RID: 587
// (get) Token: 0x06000C6D RID: 3181 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700024B")]
public string Thumbprint
{
[Token(Token = "0x6000C6D")]
[Address(RVA = "0xC8D4E0", Offset = "0xC8C4E0", VA = "0x180C8D4E0")]
get
{
return null;
}
}
/// <summary>Gets the X.509 format version of a certificate.</summary>
/// <returns>The certificate format.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate is unreadable.</exception>
// Token: 0x1700024C RID: 588
// (get) Token: 0x06000C6E RID: 3182 RVA: 0x000069F0 File Offset: 0x00004BF0
[Token(Token = "0x1700024C")]
public int Version
{
[Token(Token = "0x6000C6E")]
[Address(RVA = "0xC8D500", Offset = "0xC8C500", VA = "0x180C8D500")]
get
{
return 0;
}
}
/// <summary>Gets the subject and issuer names from a certificate.</summary>
/// <param name="nameType">The <see cref="T:System.Security.Cryptography.X509Certificates.X509NameType" /> value for the subject.</param>
/// <param name="forIssuer">
/// <see langword="true" /> to include the issuer name; otherwise, <see langword="false" />.</param>
/// <returns>The name of the certificate.</returns>
// Token: 0x06000C6F RID: 3183 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C6F")]
[Address(RVA = "0xC8CAE0", Offset = "0xC8BAE0", VA = "0x180C8CAE0")]
[MonoTODO]
public string GetNameInfo(X509NameType nameType, bool forIssuer)
{
return null;
}
/// <summary>Populates an <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> object using data from a byte array, a password, and flags for determining how to import the private key.</summary>
/// <param name="rawData">A byte array containing data from an X.509 certificate.</param>
/// <param name="password">The password required to access the X.509 certificate data.</param>
/// <param name="keyStorageFlags">A bitwise combination of the enumeration values that control where and how to import the certificate.</param>
// Token: 0x06000C70 RID: 3184 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C70")]
[Address(RVA = "0xC8CB30", Offset = "0xC8BB30", VA = "0x180C8CB30", Slot = "15")]
[MonoTODO]
public override void Import(byte[] rawData, string password, X509KeyStorageFlags keyStorageFlags)
{
}
/// <summary>Resets the state of an <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> object.</summary>
// Token: 0x06000C71 RID: 3185 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C71")]
[Address(RVA = "0xC8CB70", Offset = "0xC8BB70", VA = "0x180C8CB70", Slot = "17")]
public override void Reset()
{
}
/// <summary>Displays an X.509 certificate in text format.</summary>
/// <returns>The certificate information.</returns>
// Token: 0x06000C72 RID: 3186 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C72")]
[Address(RVA = "0xC8D120", Offset = "0xC8C120", VA = "0x180C8D120", Slot = "3")]
public override string ToString()
{
return null;
}
/// <summary>Displays an X.509 certificate in text format.</summary>
/// <param name="verbose">
/// <see langword="true" /> to display the public key, private key, extensions, and so forth; <see langword="false" /> to display information that is similar to the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> class, including thumbprint, serial number, subject and issuer names, and so on.</param>
/// <returns>The certificate information.</returns>
// Token: 0x06000C73 RID: 3187 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C73")]
[Address(RVA = "0xC8CBC0", Offset = "0xC8BBC0", VA = "0x180C8CBC0", Slot = "14")]
public override string ToString(bool verbose)
{
return null;
}
// Token: 0x06000C74 RID: 3188 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C74")]
[Address(RVA = "0xC8CA20", Offset = "0xC8BA20", VA = "0x180C8CA20")]
private static void AppendBuffer(StringBuilder sb, byte[] buffer)
{
}
// Token: 0x040006CF RID: 1743
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40006CF")]
private string friendlyName;
// Token: 0x040006D0 RID: 1744
[Token(Token = "0x40006D0")]
private static byte[] signedData;
}
}
@@ -0,0 +1,48 @@
using System;
using System.Reflection;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Represents a collection of <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> objects. This class cannot be inherited.</summary>
// Token: 0x020001DE RID: 478
[Token(Token = "0x20001DE")]
[DefaultMember("Item")]
public class X509Certificate2Collection : X509CertificateCollection
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> class without any <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> information.</summary>
// Token: 0x06000C76 RID: 3190 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C76")]
[Address(RVA = "0x839930", Offset = "0x838930", VA = "0x180839930")]
public X509Certificate2Collection()
{
}
/// <summary>Adds an object to the end of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" />.</summary>
/// <param name="certificate">An X.509 certificate represented as an <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> object.</param>
/// <returns>The <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> index at which the <paramref name="certificate" /> has been added.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="certificate" /> is <see langword="null" />.</exception>
// Token: 0x06000C77 RID: 3191 RVA: 0x00006A08 File Offset: 0x00004C08
[Token(Token = "0x6000C77")]
[Address(RVA = "0xC8A5E0", Offset = "0xC895E0", VA = "0x180C8A5E0")]
public int Add(X509Certificate2 certificate)
{
return 0;
}
/// <summary>Returns an enumerator that can iterate through a <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object.</summary>
/// <returns>An <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Enumerator" /> object that can iterate through the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object.</returns>
// Token: 0x06000C78 RID: 3192 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C78")]
[Address(RVA = "0xC8A680", Offset = "0xC89680", VA = "0x180C8A680")]
public new X509Certificate2Enumerator GetEnumerator()
{
return null;
}
// Token: 0x040006D1 RID: 1745
[Token(Token = "0x40006D1")]
private static string[] newline_split;
}
}
@@ -0,0 +1,89 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Supports a simple iteration over a <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object. This class cannot be inherited.</summary>
// Token: 0x020001DF RID: 479
[Token(Token = "0x20001DF")]
public sealed class X509Certificate2Enumerator : IEnumerator
{
// Token: 0x06000C7A RID: 3194 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C7A")]
[Address(RVA = "0xC8A900", Offset = "0xC89900", VA = "0x180C8A900")]
internal X509Certificate2Enumerator(X509Certificate2Collection collection)
{
}
/// <summary>Gets the current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object.</summary>
/// <returns>The current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object.</returns>
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element.</exception>
// Token: 0x1700024D RID: 589
// (get) Token: 0x06000C7B RID: 3195 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700024D")]
public X509Certificate2 Current
{
[Token(Token = "0x6000C7B")]
[Address(RVA = "0xC8A960", Offset = "0xC89960", VA = "0x180C8A960")]
get
{
return null;
}
}
/// <summary>Advances the enumerator to the next element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object.</summary>
/// <returns>
/// <see langword="true" /> if the enumerator was successfully advanced to the next element; <see langword="false" /> if the enumerator has passed the end of the collection.</returns>
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
// Token: 0x06000C7C RID: 3196 RVA: 0x00006A20 File Offset: 0x00004C20
[Token(Token = "0x6000C7C")]
[Address(RVA = "0xC8A7C0", Offset = "0xC897C0", VA = "0x180C8A7C0")]
public bool MoveNext()
{
return default(bool);
}
/// <summary>For a description of this member, see <see cref="P:System.Collections.IEnumerator.Current" />.</summary>
/// <returns>The current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object.</returns>
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element.</exception>
// Token: 0x1700024E RID: 590
// (get) Token: 0x06000C7D RID: 3197 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700024E")]
object IEnumerator.Current
{
[Token(Token = "0x6000C7D")]
[Address(RVA = "0xC8A8B0", Offset = "0xC898B0", VA = "0x180C8A8B0", Slot = "5")]
get
{
return null;
}
}
/// <summary>For a description of this member, see <see cref="M:System.Collections.IEnumerator.MoveNext" />.</summary>
/// <returns>
/// <see langword="true" /> if the enumerator was successfully advanced to the next element; <see langword="false" /> if the enumerator has passed the end of the collection.</returns>
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
// Token: 0x06000C7E RID: 3198 RVA: 0x00006A38 File Offset: 0x00004C38
[Token(Token = "0x6000C7E")]
[Address(RVA = "0xC8A810", Offset = "0xC89810", VA = "0x180C8A810", Slot = "4")]
bool IEnumerator.MoveNext()
{
return default(bool);
}
/// <summary>For a description of this member, see <see cref="M:System.Collections.IEnumerator.Reset" />.</summary>
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
// Token: 0x06000C7F RID: 3199 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C7F")]
[Address(RVA = "0xC8A860", Offset = "0xC89860", VA = "0x180C8A860", Slot = "6")]
void IEnumerator.Reset()
{
}
// Token: 0x040006D2 RID: 1746
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40006D2")]
private IEnumerator enumerator;
}
}
@@ -0,0 +1,82 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x020001E0 RID: 480
[Token(Token = "0x20001E0")]
internal abstract class X509Certificate2Impl : X509CertificateImpl
{
// Token: 0x1700024F RID: 591
// (get) Token: 0x06000C80 RID: 3200
[Token(Token = "0x1700024F")]
public abstract AsymmetricAlgorithm PrivateKey
{
[Token(Token = "0x6000C80")]
[Address(Slot = "18")]
get;
}
// Token: 0x17000250 RID: 592
// (get) Token: 0x06000C81 RID: 3201
[Token(Token = "0x17000250")]
public abstract PublicKey PublicKey
{
[Token(Token = "0x6000C81")]
[Address(Slot = "19")]
get;
}
// Token: 0x17000251 RID: 593
// (get) Token: 0x06000C82 RID: 3202
[Token(Token = "0x17000251")]
public abstract Oid SignatureAlgorithm
{
[Token(Token = "0x6000C82")]
[Address(Slot = "20")]
get;
}
// Token: 0x17000252 RID: 594
// (get) Token: 0x06000C83 RID: 3203
[Token(Token = "0x17000252")]
public abstract int Version
{
[Token(Token = "0x6000C83")]
[Address(Slot = "21")]
get;
}
// Token: 0x17000253 RID: 595
// (get) Token: 0x06000C84 RID: 3204
[Token(Token = "0x17000253")]
internal abstract X509CertificateImplCollection IntermediateCertificates
{
[Token(Token = "0x6000C84")]
[Address(Slot = "22")]
get;
}
// Token: 0x06000C85 RID: 3205
[Token(Token = "0x6000C85")]
[Address(Slot = "23")]
public abstract string GetNameInfo(X509NameType nameType, bool forIssuer);
// Token: 0x06000C86 RID: 3206
[Token(Token = "0x6000C86")]
[Address(Slot = "24")]
public abstract void Import(byte[] rawData, string password, X509KeyStorageFlags keyStorageFlags);
// Token: 0x06000C87 RID: 3207
[Token(Token = "0x6000C87")]
[Address(Slot = "25")]
public abstract void Reset();
// Token: 0x06000C88 RID: 3208 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C88")]
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
protected X509Certificate2Impl()
{
}
}
}
@@ -0,0 +1,319 @@
using System;
using System.Text;
using Cpp2IlInjected;
using Mono.Security;
using Mono.Security.X509;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x020001E1 RID: 481
[Token(Token = "0x20001E1")]
internal class X509Certificate2ImplMono : X509Certificate2Impl
{
// Token: 0x17000254 RID: 596
// (get) Token: 0x06000C89 RID: 3209 RVA: 0x00006A50 File Offset: 0x00004C50
[Token(Token = "0x17000254")]
public override bool IsValid
{
[Token(Token = "0x6000C89")]
[Address(RVA = "0x692A00", Offset = "0x691A00", VA = "0x180692A00", Slot = "5")]
get
{
return default(bool);
}
}
// Token: 0x06000C8A RID: 3210 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C8A")]
[Address(RVA = "0x6BBB90", Offset = "0x6BAB90", VA = "0x1806BBB90")]
private X509Certificate2ImplMono(X509Certificate cert)
{
}
// Token: 0x06000C8B RID: 3211 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C8B")]
[Address(RVA = "0xC8C3B0", Offset = "0xC8B3B0", VA = "0x180C8C3B0")]
private X509Certificate2ImplMono(X509Certificate2ImplMono other)
{
}
// Token: 0x06000C8C RID: 3212 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C8C")]
[Address(RVA = "0xC8AAC0", Offset = "0xC89AC0", VA = "0x180C8AAC0", Slot = "6")]
public override X509CertificateImpl Clone()
{
return null;
}
// Token: 0x06000C8D RID: 3213 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C8D")]
[Address(RVA = "0xC8ACF0", Offset = "0xC89CF0", VA = "0x180C8ACF0", Slot = "7")]
public override string GetIssuerName(bool legacyV1Mode)
{
return null;
}
// Token: 0x06000C8E RID: 3214 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C8E")]
[Address(RVA = "0xC8B110", Offset = "0xC8A110", VA = "0x180C8B110", Slot = "8")]
public override string GetSubjectName(bool legacyV1Mode)
{
return null;
}
// Token: 0x06000C8F RID: 3215 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C8F")]
[Address(RVA = "0xC8B090", Offset = "0xC8A090", VA = "0x180C8B090", Slot = "9")]
public override byte[] GetRawCertData()
{
return null;
}
// Token: 0x06000C90 RID: 3216 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C90")]
[Address(RVA = "0xC8AC90", Offset = "0xC89C90", VA = "0x180C8AC90", Slot = "12")]
protected override byte[] GetCertHash(bool lazy)
{
return null;
}
// Token: 0x06000C91 RID: 3217 RVA: 0x00006A68 File Offset: 0x00004C68
[Token(Token = "0x6000C91")]
[Address(RVA = "0xC8B1D0", Offset = "0xC8A1D0", VA = "0x180C8B1D0", Slot = "10")]
public override DateTime GetValidFrom()
{
return default(DateTime);
}
// Token: 0x06000C92 RID: 3218 RVA: 0x00006A80 File Offset: 0x00004C80
[Token(Token = "0x6000C92")]
[Address(RVA = "0xC8B210", Offset = "0xC8A210", VA = "0x180C8B210", Slot = "11")]
public override DateTime GetValidUntil()
{
return default(DateTime);
}
// Token: 0x06000C93 RID: 3219 RVA: 0x00006A98 File Offset: 0x00004C98
[Token(Token = "0x6000C93")]
[Address(RVA = "0xC8AB80", Offset = "0xC89B80", VA = "0x180C8AB80", Slot = "13")]
public override bool Equals(X509CertificateImpl other, out bool result)
{
return default(bool);
}
// Token: 0x06000C94 RID: 3220 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C94")]
[Address(RVA = "0xC8B050", Offset = "0xC8A050", VA = "0x180C8B050", Slot = "14")]
public override byte[] GetPublicKey()
{
return null;
}
// Token: 0x06000C95 RID: 3221 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C95")]
[Address(RVA = "0xC8B0D0", Offset = "0xC8A0D0", VA = "0x180C8B0D0", Slot = "15")]
public override byte[] GetSerialNumber()
{
return null;
}
// Token: 0x06000C96 RID: 3222 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C96")]
[Address(RVA = "0xC8C390", Offset = "0xC8B390", VA = "0x180C8C390")]
public X509Certificate2ImplMono()
{
}
// Token: 0x17000255 RID: 597
// (get) Token: 0x06000C97 RID: 3223 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000255")]
public override AsymmetricAlgorithm PrivateKey
{
[Token(Token = "0x6000C97")]
[Address(RVA = "0xC8C440", Offset = "0xC8B440", VA = "0x180C8C440", Slot = "18")]
get
{
return null;
}
}
// Token: 0x17000256 RID: 598
// (get) Token: 0x06000C98 RID: 3224 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000256")]
public override PublicKey PublicKey
{
[Token(Token = "0x6000C98")]
[Address(RVA = "0xC8C720", Offset = "0xC8B720", VA = "0x180C8C720", Slot = "19")]
get
{
return null;
}
}
// Token: 0x17000257 RID: 599
// (get) Token: 0x06000C99 RID: 3225 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000257")]
public override Oid SignatureAlgorithm
{
[Token(Token = "0x6000C99")]
[Address(RVA = "0xC8C860", Offset = "0xC8B860", VA = "0x180C8C860", Slot = "20")]
get
{
return null;
}
}
// Token: 0x17000258 RID: 600
// (get) Token: 0x06000C9A RID: 3226 RVA: 0x00006AB0 File Offset: 0x00004CB0
[Token(Token = "0x17000258")]
public override int Version
{
[Token(Token = "0x6000C9A")]
[Address(RVA = "0xC8C970", Offset = "0xC8B970", VA = "0x180C8C970", Slot = "21")]
get
{
return 0;
}
}
// Token: 0x06000C9B RID: 3227 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C9B")]
[Address(RVA = "0xC8ADB0", Offset = "0xC89DB0", VA = "0x180C8ADB0", Slot = "23")]
[MonoTODO]
public override string GetNameInfo(X509NameType nameType, bool forIssuer)
{
return null;
}
// Token: 0x06000C9C RID: 3228 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C9C")]
[Address(RVA = "0xC8AB90", Offset = "0xC89B90", VA = "0x180C8AB90")]
private ASN1 Find(byte[] oid, ASN1 dn)
{
return null;
}
// Token: 0x06000C9D RID: 3229 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C9D")]
[Address(RVA = "0xC8B250", Offset = "0xC8A250", VA = "0x180C8B250")]
private string GetValueAsString(ASN1 pair)
{
return null;
}
// Token: 0x06000C9E RID: 3230 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C9E")]
[Address(RVA = "0xC8B3E0", Offset = "0xC8A3E0", VA = "0x180C8B3E0")]
private X509Certificate ImportPkcs12(byte[] rawData, string password)
{
return null;
}
// Token: 0x06000C9F RID: 3231 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C9F")]
[Address(RVA = "0xC8BA50", Offset = "0xC8AA50", VA = "0x180C8BA50", Slot = "24")]
[MonoTODO]
public override void Import(byte[] rawData, string password, X509KeyStorageFlags keyStorageFlags)
{
}
// Token: 0x06000CA0 RID: 3232 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CA0")]
[Address(RVA = "0xC8BB90", Offset = "0xC8AB90", VA = "0x180C8BB90", Slot = "25")]
public override void Reset()
{
}
// Token: 0x06000CA1 RID: 3233 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CA1")]
[Address(RVA = "0xC8C240", Offset = "0xC8B240", VA = "0x180C8C240", Slot = "3")]
public override string ToString()
{
return null;
}
// Token: 0x06000CA2 RID: 3234 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CA2")]
[Address(RVA = "0xC8BC40", Offset = "0xC8AC40", VA = "0x180C8BC40", Slot = "16")]
public override string ToString(bool verbose)
{
return null;
}
// Token: 0x06000CA3 RID: 3235 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CA3")]
[Address(RVA = "0xC8AA00", Offset = "0xC89A00", VA = "0x180C8AA00")]
private static void AppendBuffer(StringBuilder sb, byte[] buffer)
{
}
// Token: 0x17000259 RID: 601
// (get) Token: 0x06000CA4 RID: 3236 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000259")]
internal override X509CertificateImplCollection IntermediateCertificates
{
[Token(Token = "0x6000CA4")]
[Address(RVA = "0x4975A0", Offset = "0x4965A0", VA = "0x1804975A0", Slot = "22")]
get
{
return null;
}
}
// Token: 0x040006D3 RID: 1747
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40006D3")]
private bool _archived;
// Token: 0x040006D4 RID: 1748
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40006D4")]
private X509ExtensionCollection _extensions;
// Token: 0x040006D5 RID: 1749
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40006D5")]
private PublicKey _publicKey;
// Token: 0x040006D6 RID: 1750
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40006D6")]
private X500DistinguishedName issuer_name;
// Token: 0x040006D7 RID: 1751
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40006D7")]
private X500DistinguishedName subject_name;
// Token: 0x040006D8 RID: 1752
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40006D8")]
private Oid signature_algorithm;
// Token: 0x040006D9 RID: 1753
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40006D9")]
private X509CertificateImplCollection intermediateCerts;
// Token: 0x040006DA RID: 1754
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40006DA")]
private X509Certificate _cert;
// Token: 0x040006DB RID: 1755
[Token(Token = "0x40006DB")]
private static string empty_error;
// Token: 0x040006DC RID: 1756
[Token(Token = "0x40006DC")]
private static byte[] commonName;
// Token: 0x040006DD RID: 1757
[Token(Token = "0x40006DD")]
private static byte[] email;
// Token: 0x040006DE RID: 1758
[Token(Token = "0x40006DE")]
private static byte[] signedData;
}
}
@@ -0,0 +1,172 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Defines a collection that stores <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> objects.</summary>
// Token: 0x020001E2 RID: 482
[Token(Token = "0x20001E2")]
[Serializable]
public class X509CertificateCollection : CollectionBase
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> class.</summary>
// Token: 0x06000CA6 RID: 3238 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CA6")]
[Address(RVA = "0x839930", Offset = "0x838930", VA = "0x180839930")]
public X509CertificateCollection()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> class from another <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
/// <param name="value">The <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> with which to initialize the new object.</param>
// Token: 0x06000CA7 RID: 3239 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CA7")]
[Address(RVA = "0xC8D820", Offset = "0xC8C820", VA = "0x180C8D820")]
public X509CertificateCollection(X509CertificateCollection value)
{
}
/// <summary>Gets or sets the entry at the specified index of the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
/// <param name="index">The zero-based index of the entry to locate in the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</param>
/// <returns>The <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> at the specified index of the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="index" /> parameter is outside the valid range of indexes for the collection.</exception>
// Token: 0x1700025A RID: 602
[Token(Token = "0x1700025A")]
public X509Certificate this[int index]
{
[Token(Token = "0x6000CA8")]
[Address(RVA = "0xC8D9C0", Offset = "0xC8C9C0", VA = "0x180C8D9C0")]
get
{
return null;
}
}
/// <summary>Adds an <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> with the specified value to the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
/// <param name="value">The <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> to add to the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</param>
/// <returns>The index into the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> at which the new <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> was inserted.</returns>
// Token: 0x06000CA9 RID: 3241 RVA: 0x00006AC8 File Offset: 0x00004CC8
[Token(Token = "0x6000CA9")]
[Address(RVA = "0xC8D6C0", Offset = "0xC8C6C0", VA = "0x180C8D6C0")]
public int Add(X509Certificate value)
{
return 0;
}
/// <summary>Copies the elements of the specified <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> to the end of the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
/// <param name="value">The <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> containing the objects to add to the collection.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="value" /> parameter is <see langword="null" />.</exception>
// Token: 0x06000CAA RID: 3242 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CAA")]
[Address(RVA = "0xC8D530", Offset = "0xC8C530", VA = "0x180C8D530")]
public void AddRange(X509CertificateCollection value)
{
}
/// <summary>Returns an enumerator that can iterate through the <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
/// <returns>An enumerator of the subelements of <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> you can use to iterate through the collection.</returns>
// Token: 0x06000CAB RID: 3243 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CAB")]
[Address(RVA = "0xC8D760", Offset = "0xC8C760", VA = "0x180C8D760")]
public new X509CertificateCollection.X509CertificateEnumerator GetEnumerator()
{
return null;
}
/// <summary>Builds a hash value based on all values contained in the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
/// <returns>A hash value based on all values contained in the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</returns>
// Token: 0x06000CAC RID: 3244 RVA: 0x00006AE0 File Offset: 0x00004CE0
[Token(Token = "0x6000CAC")]
[Address(RVA = "0xC8D7F0", Offset = "0xC8C7F0", VA = "0x180C8D7F0", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Enumerates the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> objects in an <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
// Token: 0x020001E3 RID: 483
[Token(Token = "0x20001E3")]
public class X509CertificateEnumerator : IEnumerator
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection.X509CertificateEnumerator" /> class for the specified <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
/// <param name="mappings">The <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> to enumerate.</param>
// Token: 0x06000CAD RID: 3245 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CAD")]
[Address(RVA = "0xC8DBB0", Offset = "0xC8CBB0", VA = "0x180C8DBB0")]
public X509CertificateEnumerator(X509CertificateCollection mappings)
{
}
/// <summary>Gets the current <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> in the <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
/// <returns>The current <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> in the <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</returns>
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element.</exception>
// Token: 0x1700025B RID: 603
// (get) Token: 0x06000CAE RID: 3246 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700025B")]
public X509Certificate Current
{
[Token(Token = "0x6000CAE")]
[Address(RVA = "0xC8DC10", Offset = "0xC8CC10", VA = "0x180C8DC10")]
get
{
return null;
}
}
/// <summary>For a description of this member, see <see cref="P:System.Collections.IEnumerator.Current" />.</summary>
/// <returns>The current X.509 certificate object in the <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> object.</returns>
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element.</exception>
// Token: 0x1700025C RID: 604
// (get) Token: 0x06000CAF RID: 3247 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700025C")]
object IEnumerator.Current
{
[Token(Token = "0x6000CAF")]
[Address(RVA = "0xC8DB60", Offset = "0xC8CB60", VA = "0x180C8DB60", Slot = "5")]
get
{
return null;
}
}
/// <summary>For a description of this member, see <see cref="M:System.Collections.IEnumerator.MoveNext" />.</summary>
/// <returns>
/// <see langword="true" /> if the enumerator was successfully advanced to the next element; <see langword="false" /> if the enumerator has passed the end of the collection.</returns>
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was instantiated.</exception>
// Token: 0x06000CB0 RID: 3248 RVA: 0x00006AF8 File Offset: 0x00004CF8
[Token(Token = "0x6000CB0")]
[Address(RVA = "0xC8DAC0", Offset = "0xC8CAC0", VA = "0x180C8DAC0", Slot = "4")]
bool IEnumerator.MoveNext()
{
return default(bool);
}
/// <summary>For a description of this member, see <see cref="M:System.Collections.IEnumerator.Reset" />.</summary>
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was instantiated.</exception>
// Token: 0x06000CB1 RID: 3249 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CB1")]
[Address(RVA = "0xC8DB10", Offset = "0xC8CB10", VA = "0x180C8DB10", Slot = "6")]
void IEnumerator.Reset()
{
}
/// <summary>Advances the enumerator to the next element of the collection.</summary>
/// <returns>
/// <see langword="true" /> if the enumerator was successfully advanced to the next element; <see langword="false" /> if the enumerator has passed the end of the collection.</returns>
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was instantiated.</exception>
// Token: 0x06000CB2 RID: 3250 RVA: 0x00006B10 File Offset: 0x00004D10
[Token(Token = "0x6000CB2")]
[Address(RVA = "0xC8DA70", Offset = "0xC8CA70", VA = "0x180C8DA70")]
public bool MoveNext()
{
return default(bool);
}
// Token: 0x040006DF RID: 1759
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40006DF")]
private IEnumerator enumerator;
}
}
}
@@ -0,0 +1,91 @@
using System;
using System.Collections.Generic;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x020001E4 RID: 484
[Token(Token = "0x20001E4")]
internal class X509CertificateImplCollection : IDisposable
{
// Token: 0x06000CB3 RID: 3251 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CB3")]
[Address(RVA = "0xC8E130", Offset = "0xC8D130", VA = "0x180C8E130")]
public X509CertificateImplCollection()
{
}
// Token: 0x06000CB4 RID: 3252 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CB4")]
[Address(RVA = "0xC8DFB0", Offset = "0xC8CFB0", VA = "0x180C8DFB0")]
private X509CertificateImplCollection(X509CertificateImplCollection other)
{
}
// Token: 0x1700025D RID: 605
// (get) Token: 0x06000CB5 RID: 3253 RVA: 0x00006B28 File Offset: 0x00004D28
[Token(Token = "0x1700025D")]
public int Count
{
[Token(Token = "0x6000CB5")]
[Address(RVA = "0xC8E190", Offset = "0xC8D190", VA = "0x180C8E190")]
get
{
return 0;
}
}
// Token: 0x1700025E RID: 606
[Token(Token = "0x1700025E")]
public X509CertificateImpl this[int index]
{
[Token(Token = "0x6000CB6")]
[Address(RVA = "0xC8E1D0", Offset = "0xC8D1D0", VA = "0x180C8E1D0")]
get
{
return null;
}
}
// Token: 0x06000CB7 RID: 3255 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CB7")]
[Address(RVA = "0xC8DCB0", Offset = "0xC8CCB0", VA = "0x180C8DCB0")]
public void Add(X509CertificateImpl impl, bool takeOwnership)
{
}
// Token: 0x06000CB8 RID: 3256 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CB8")]
[Address(RVA = "0xC8DD40", Offset = "0xC8CD40", VA = "0x180C8DD40")]
public X509CertificateImplCollection Clone()
{
return null;
}
// Token: 0x06000CB9 RID: 3257 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CB9")]
[Address(RVA = "0xC8DEC0", Offset = "0xC8CEC0", VA = "0x180C8DEC0", Slot = "4")]
public void Dispose()
{
}
// Token: 0x06000CBA RID: 3258 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CBA")]
[Address(RVA = "0xC8DDA0", Offset = "0xC8CDA0", VA = "0x180C8DDA0", Slot = "5")]
protected virtual void Dispose(bool disposing)
{
}
// Token: 0x06000CBB RID: 3259 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CBB")]
[Address(RVA = "0xC8DF30", Offset = "0xC8CF30", VA = "0x180C8DF30", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x040006E0 RID: 1760
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40006E0")]
private List<X509CertificateImpl> list;
}
}
@@ -0,0 +1,94 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Represents a chain-building engine for <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> certificates.</summary>
// Token: 0x020001E5 RID: 485
[Token(Token = "0x20001E5")]
public class X509Chain : IDisposable
{
// Token: 0x1700025F RID: 607
// (get) Token: 0x06000CBC RID: 3260 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700025F")]
internal X509ChainImpl Impl
{
[Token(Token = "0x6000CBC")]
[Address(RVA = "0xC8EFC0", Offset = "0xC8DFC0", VA = "0x180C8EFC0")]
get
{
return null;
}
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Chain" /> class.</summary>
// Token: 0x06000CBD RID: 3261 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CBD")]
[Address(RVA = "0xC8EE10", Offset = "0xC8DE10", VA = "0x180C8EE10")]
public X509Chain()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Chain" /> class specifying a value that indicates whether the machine context should be used.</summary>
/// <param name="useMachineContext">
/// <see langword="true" /> to use the machine context; <see langword="false" /> to use the current user context.</param>
// Token: 0x06000CBE RID: 3262 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CBE")]
[Address(RVA = "0xC8ECF0", Offset = "0xC8DCF0", VA = "0x180C8ECF0")]
public X509Chain(bool useMachineContext)
{
}
/// <summary>Gets or sets the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainPolicy" /> to use when building an X.509 certificate chain.</summary>
/// <returns>The <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainPolicy" /> object associated with this X.509 chain.</returns>
/// <exception cref="T:System.ArgumentNullException">The value being set for this property is <see langword="null" />.</exception>
// Token: 0x17000260 RID: 608
// (get) Token: 0x06000CBF RID: 3263 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000CC0 RID: 3264 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000260")]
public X509ChainPolicy ChainPolicy
{
[Token(Token = "0x6000CBF")]
[Address(RVA = "0xC8EF30", Offset = "0xC8DF30", VA = "0x180C8EF30")]
get
{
return null;
}
[Token(Token = "0x6000CC0")]
[Address(RVA = "0xC8F030", Offset = "0xC8E030", VA = "0x180C8F030")]
set
{
}
}
/// <summary>Releases all of the resources used by this <see cref="T:System.Security.Cryptography.X509Certificates.X509Chain" />.</summary>
// Token: 0x06000CC1 RID: 3265 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CC1")]
[Address(RVA = "0xC8EC00", Offset = "0xC8DC00", VA = "0x180C8EC00", Slot = "4")]
public void Dispose()
{
}
/// <summary>Releases the unmanaged resources used by this <see cref="T:System.Security.Cryptography.X509Certificates.X509Chain" />, and optionally releases the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// Token: 0x06000CC2 RID: 3266 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CC2")]
[Address(RVA = "0xC8EB70", Offset = "0xC8DB70", VA = "0x180C8EB70", Slot = "5")]
protected virtual void Dispose(bool disposing)
{
}
// Token: 0x06000CC3 RID: 3267 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CC3")]
[Address(RVA = "0xC8EC70", Offset = "0xC8DC70", VA = "0x180C8EC70", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x040006E1 RID: 1761
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40006E1")]
private X509ChainImpl impl;
}
}
@@ -0,0 +1,96 @@
using System;
using System.Collections;
using System.Reflection;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Represents a collection of <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElement" /> objects. This class cannot be inherited.</summary>
// Token: 0x020001E6 RID: 486
[Token(Token = "0x20001E6")]
[DefaultMember("Item")]
public sealed class X509ChainElementCollection : ICollection, IEnumerable
{
// Token: 0x06000CC4 RID: 3268 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CC4")]
[Address(RVA = "0xC8E2C0", Offset = "0xC8D2C0", VA = "0x180C8E2C0")]
internal X509ChainElementCollection()
{
}
/// <summary>Gets the number of elements in the collection.</summary>
/// <returns>An integer representing the number of elements in the collection.</returns>
// Token: 0x17000261 RID: 609
// (get) Token: 0x06000CC5 RID: 3269 RVA: 0x00006B40 File Offset: 0x00004D40
[Token(Token = "0x17000261")]
public int Count
{
[Token(Token = "0x6000CC5")]
[Address(RVA = "0x478810", Offset = "0x477810", VA = "0x180478810", Slot = "5")]
get
{
return 0;
}
}
/// <summary>Gets a value indicating whether the collection of chain elements is synchronized.</summary>
/// <returns>Always returns <see langword="false" />.</returns>
// Token: 0x17000262 RID: 610
// (get) Token: 0x06000CC6 RID: 3270 RVA: 0x00006B58 File Offset: 0x00004D58
[Token(Token = "0x17000262")]
public bool IsSynchronized
{
[Token(Token = "0x6000CC6")]
[Address(RVA = "0xC8E320", Offset = "0xC8D320", VA = "0x180C8E320", Slot = "7")]
get
{
return default(bool);
}
}
/// <summary>Gets an object that can be used to synchronize access to an <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" /> object.</summary>
/// <returns>A pointer reference to the current object.</returns>
// Token: 0x17000263 RID: 611
// (get) Token: 0x06000CC7 RID: 3271 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000263")]
public object SyncRoot
{
[Token(Token = "0x6000CC7")]
[Address(RVA = "0x8AC2F0", Offset = "0x8AB2F0", VA = "0x1808AC2F0", Slot = "6")]
get
{
return null;
}
}
/// <summary>Copies an <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" /> object into an array, starting at the specified index.</summary>
/// <param name="array">An array to copy the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" /> object to.</param>
/// <param name="index">The index of <paramref name="array" /> at which to start copying.</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">The specified <paramref name="index" /> is less than zero, or greater than or equal to the length of the array.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="array" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="index" /> plus the current count is greater than the length of the array.</exception>
// Token: 0x06000CC8 RID: 3272 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CC8")]
[Address(RVA = "0xBA4770", Offset = "0xBA3770", VA = "0x180BA4770", Slot = "4")]
void ICollection.CopyTo(Array array, int index)
{
}
/// <summary>Gets an <see cref="T:System.Collections.IEnumerator" /> object that can be used to navigate a collection of chain elements.</summary>
/// <returns>An <see cref="T:System.Collections.IEnumerator" /> object.</returns>
// Token: 0x06000CC9 RID: 3273 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CC9")]
[Address(RVA = "0xC8E230", Offset = "0xC8D230", VA = "0x180C8E230", Slot = "8")]
IEnumerator IEnumerable.GetEnumerator()
{
return null;
}
// Token: 0x040006E2 RID: 1762
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40006E2")]
private ArrayList _list;
}
}
@@ -0,0 +1,61 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Supports a simple iteration over an <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />. This class cannot be inherited.</summary>
// Token: 0x020001E7 RID: 487
[Token(Token = "0x20001E7")]
public sealed class X509ChainElementEnumerator : IEnumerator
{
// Token: 0x06000CCA RID: 3274 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CCA")]
[Address(RVA = "0xC8E440", Offset = "0xC8D440", VA = "0x180C8E440")]
internal X509ChainElementEnumerator(IEnumerable enumerable)
{
}
/// <summary>Gets the current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />.</summary>
/// <returns>The current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />.</returns>
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element.</exception>
// Token: 0x17000264 RID: 612
// (get) Token: 0x06000CCB RID: 3275 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000264")]
object IEnumerator.Current
{
[Token(Token = "0x6000CCB")]
[Address(RVA = "0xC8E3F0", Offset = "0xC8D3F0", VA = "0x180C8E3F0", Slot = "5")]
get
{
return null;
}
}
/// <summary>Advances the enumerator to the next element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />.</summary>
/// <returns>
/// <see langword="true" /> if the enumerator was successfully advanced to the next element; <see langword="false" /> if the enumerator has passed the end of the collection.</returns>
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
// Token: 0x06000CCC RID: 3276 RVA: 0x00006B70 File Offset: 0x00004D70
[Token(Token = "0x6000CCC")]
[Address(RVA = "0xC8E350", Offset = "0xC8D350", VA = "0x180C8E350", Slot = "4")]
public bool MoveNext()
{
return default(bool);
}
/// <summary>Sets the enumerator to its initial position, which is before the first element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />.</summary>
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
// Token: 0x06000CCD RID: 3277 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CCD")]
[Address(RVA = "0xC8E3A0", Offset = "0xC8D3A0", VA = "0x180C8E3A0", Slot = "6")]
public void Reset()
{
}
// Token: 0x040006E3 RID: 1763
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40006E3")]
private IEnumerator enumerator;
}
}
@@ -0,0 +1,62 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x020001E8 RID: 488
[Token(Token = "0x20001E8")]
internal abstract class X509ChainImpl : IDisposable
{
// Token: 0x17000265 RID: 613
// (get) Token: 0x06000CCE RID: 3278
[Token(Token = "0x17000265")]
public abstract bool IsValid
{
[Token(Token = "0x6000CCE")]
[Address(Slot = "5")]
get;
}
// Token: 0x17000266 RID: 614
// (get) Token: 0x06000CCF RID: 3279
// (set) Token: 0x06000CD0 RID: 3280
[Token(Token = "0x17000266")]
public abstract X509ChainPolicy ChainPolicy
{
[Token(Token = "0x6000CCF")]
[Address(Slot = "6")]
get;
[Token(Token = "0x6000CD0")]
[Address(Slot = "7")]
set;
}
// Token: 0x06000CD1 RID: 3281 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CD1")]
[Address(RVA = "0xC8E5D0", Offset = "0xC8D5D0", VA = "0x180C8E5D0", Slot = "4")]
public void Dispose()
{
}
// Token: 0x06000CD2 RID: 3282 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CD2")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "8")]
protected virtual void Dispose(bool disposing)
{
}
// Token: 0x06000CD3 RID: 3283 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CD3")]
[Address(RVA = "0xC8E640", Offset = "0xC8D640", VA = "0x180C8E640", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x06000CD4 RID: 3284 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CD4")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected X509ChainImpl()
{
}
}
}
@@ -0,0 +1,68 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x020001E9 RID: 489
[Token(Token = "0x20001E9")]
internal class X509ChainImplMono : X509ChainImpl
{
// Token: 0x06000CD5 RID: 3285 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CD5")]
[Address(RVA = "0xC8E4F0", Offset = "0xC8D4F0", VA = "0x180C8E4F0")]
public X509ChainImplMono(bool useMachineContext)
{
}
// Token: 0x17000267 RID: 615
// (get) Token: 0x06000CD6 RID: 3286 RVA: 0x00006B88 File Offset: 0x00004D88
[Token(Token = "0x17000267")]
public override bool IsValid
{
[Token(Token = "0x6000CD6")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "5")]
get
{
return default(bool);
}
}
// Token: 0x17000268 RID: 616
// (get) Token: 0x06000CD7 RID: 3287 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000CD8 RID: 3288 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000268")]
public override X509ChainPolicy ChainPolicy
{
[Token(Token = "0x6000CD7")]
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "6")]
get
{
return null;
}
[Token(Token = "0x6000CD8")]
[Address(RVA = "0x415810", Offset = "0x414810", VA = "0x180415810", Slot = "7")]
set
{
}
}
// Token: 0x040006E4 RID: 1764
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40006E4")]
private StoreLocation location;
// Token: 0x040006E5 RID: 1765
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40006E5")]
private X509ChainElementCollection elements;
// Token: 0x040006E6 RID: 1766
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40006E6")]
private X509ChainPolicy policy;
// Token: 0x040006E7 RID: 1767
[Token(Token = "0x40006E7")]
private static X509ChainStatus[] Empty;
}
}
@@ -0,0 +1,94 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Represents the chain policy to be applied when building an X509 certificate chain. This class cannot be inherited.</summary>
// Token: 0x020001EA RID: 490
[Token(Token = "0x20001EA")]
public sealed class X509ChainPolicy
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainPolicy" /> class.</summary>
// Token: 0x06000CDA RID: 3290 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CDA")]
[Address(RVA = "0xC8E850", Offset = "0xC8D850", VA = "0x180C8E850")]
public X509ChainPolicy()
{
}
// Token: 0x06000CDB RID: 3291 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CDB")]
[Address(RVA = "0xC8E820", Offset = "0xC8D820", VA = "0x180C8E820")]
internal X509ChainPolicy(X509CertificateCollection store)
{
}
/// <summary>Gets an object that represents an additional collection of certificates that can be searched by the chaining engine when validating a certificate chain.</summary>
/// <returns>An <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object.</returns>
// Token: 0x17000269 RID: 617
// (get) Token: 0x06000CDC RID: 3292 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000269")]
public X509Certificate2Collection ExtraStore
{
[Token(Token = "0x6000CDC")]
[Address(RVA = "0xC8E870", Offset = "0xC8D870", VA = "0x180C8E870")]
get
{
return null;
}
}
/// <summary>Resets the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainPolicy" /> members to their default values.</summary>
// Token: 0x06000CDD RID: 3293 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CDD")]
[Address(RVA = "0xC8E6C0", Offset = "0xC8D6C0", VA = "0x180C8E6C0")]
public void Reset()
{
}
// Token: 0x040006E8 RID: 1768
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40006E8")]
private OidCollection apps;
// Token: 0x040006E9 RID: 1769
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40006E9")]
private OidCollection cert;
// Token: 0x040006EA RID: 1770
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40006EA")]
private X509CertificateCollection store;
// Token: 0x040006EB RID: 1771
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40006EB")]
private X509Certificate2Collection store2;
// Token: 0x040006EC RID: 1772
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40006EC")]
private X509RevocationFlag rflag;
// Token: 0x040006ED RID: 1773
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x40006ED")]
private X509RevocationMode mode;
// Token: 0x040006EE RID: 1774
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40006EE")]
private TimeSpan timeout;
// Token: 0x040006EF RID: 1775
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40006EF")]
private X509VerificationFlags vflags;
// Token: 0x040006F0 RID: 1776
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40006F0")]
private DateTime vtime;
}
}
@@ -0,0 +1,21 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Provides a simple structure for storing X509 chain status and error information.</summary>
// Token: 0x020001EB RID: 491
[Token(Token = "0x20001EB")]
public struct X509ChainStatus
{
// Token: 0x040006F1 RID: 1777
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40006F1")]
private X509ChainStatusFlags status;
// Token: 0x040006F2 RID: 1778
[FieldOffset(Offset = "0x8")]
[Token(Token = "0x40006F2")]
private string info;
}
}
@@ -0,0 +1,117 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Defines the status of an X509 chain.</summary>
// Token: 0x020001D2 RID: 466
[Token(Token = "0x20001D2")]
[Flags]
public enum X509ChainStatusFlags
{
/// <summary>Specifies that the X509 chain has no errors.</summary>
// Token: 0x0400067D RID: 1661
[Token(Token = "0x400067D")]
NoError = 0,
/// <summary>Specifies that the X509 chain is not valid due to an invalid time value, such as a value that indicates an expired certificate.</summary>
// Token: 0x0400067E RID: 1662
[Token(Token = "0x400067E")]
NotTimeValid = 1,
/// <summary>Deprecated. Specifies that the CA (certificate authority) certificate and the issued certificate have validity periods that are not nested. For example, the CA cert can be valid from January 1 to December 1 and the issued certificate from January 2 to December 2, which would mean the validity periods are not nested.</summary>
// Token: 0x0400067F RID: 1663
[Token(Token = "0x400067F")]
NotTimeNested = 2,
/// <summary>Specifies that the X509 chain is invalid due to a revoked certificate.</summary>
// Token: 0x04000680 RID: 1664
[Token(Token = "0x4000680")]
Revoked = 4,
/// <summary>Specifies that the X509 chain is invalid due to an invalid certificate signature.</summary>
// Token: 0x04000681 RID: 1665
[Token(Token = "0x4000681")]
NotSignatureValid = 8,
/// <summary>Specifies that the key usage is not valid.</summary>
// Token: 0x04000682 RID: 1666
[Token(Token = "0x4000682")]
NotValidForUsage = 16,
/// <summary>Specifies that the X509 chain is invalid due to an untrusted root certificate.</summary>
// Token: 0x04000683 RID: 1667
[Token(Token = "0x4000683")]
UntrustedRoot = 32,
/// <summary>Specifies that it is not possible to determine whether the certificate has been revoked. This can be due to the certificate revocation list (CRL) being offline or unavailable.</summary>
// Token: 0x04000684 RID: 1668
[Token(Token = "0x4000684")]
RevocationStatusUnknown = 64,
/// <summary>Specifies that the X509 chain could not be built.</summary>
// Token: 0x04000685 RID: 1669
[Token(Token = "0x4000685")]
Cyclic = 128,
/// <summary>Specifies that the X509 chain is invalid due to an invalid extension.</summary>
// Token: 0x04000686 RID: 1670
[Token(Token = "0x4000686")]
InvalidExtension = 256,
/// <summary>Specifies that the X509 chain is invalid due to invalid policy constraints.</summary>
// Token: 0x04000687 RID: 1671
[Token(Token = "0x4000687")]
InvalidPolicyConstraints = 512,
/// <summary>Specifies that the X509 chain is invalid due to invalid basic constraints.</summary>
// Token: 0x04000688 RID: 1672
[Token(Token = "0x4000688")]
InvalidBasicConstraints = 1024,
/// <summary>Specifies that the X509 chain is invalid due to invalid name constraints.</summary>
// Token: 0x04000689 RID: 1673
[Token(Token = "0x4000689")]
InvalidNameConstraints = 2048,
/// <summary>Specifies that the certificate does not have a supported name constraint or has a name constraint that is unsupported.</summary>
// Token: 0x0400068A RID: 1674
[Token(Token = "0x400068A")]
HasNotSupportedNameConstraint = 4096,
/// <summary>Specifies that the certificate has an undefined name constraint.</summary>
// Token: 0x0400068B RID: 1675
[Token(Token = "0x400068B")]
HasNotDefinedNameConstraint = 8192,
/// <summary>Specifies that the certificate has an impermissible name constraint.</summary>
// Token: 0x0400068C RID: 1676
[Token(Token = "0x400068C")]
HasNotPermittedNameConstraint = 16384,
/// <summary>Specifies that the X509 chain is invalid because a certificate has excluded a name constraint.</summary>
// Token: 0x0400068D RID: 1677
[Token(Token = "0x400068D")]
HasExcludedNameConstraint = 32768,
/// <summary>Specifies that the X509 chain could not be built up to the root certificate.</summary>
// Token: 0x0400068E RID: 1678
[Token(Token = "0x400068E")]
PartialChain = 65536,
/// <summary>Specifies that the certificate trust list (CTL) is not valid because of an invalid time value, such as one that indicates that the CTL has expired.</summary>
// Token: 0x0400068F RID: 1679
[Token(Token = "0x400068F")]
CtlNotTimeValid = 131072,
/// <summary>Specifies that the certificate trust list (CTL) contains an invalid signature.</summary>
// Token: 0x04000690 RID: 1680
[Token(Token = "0x4000690")]
CtlNotSignatureValid = 262144,
/// <summary>Specifies that the certificate trust list (CTL) is not valid for this use.</summary>
// Token: 0x04000691 RID: 1681
[Token(Token = "0x4000691")]
CtlNotValidForUsage = 524288,
/// <summary>Specifies that the online certificate revocation list (CRL) the X509 chain relies on is currently offline.</summary>
// Token: 0x04000692 RID: 1682
[Token(Token = "0x4000692")]
OfflineRevocation = 16777216,
/// <summary>Specifies that there is no certificate policy extension in the certificate. This error would occur if a group policy has specified that all certificates must have a certificate policy.</summary>
// Token: 0x04000693 RID: 1683
[Token(Token = "0x4000693")]
NoIssuanceChainPolicy = 33554432,
/// <summary>Specifies that the certificate is explicitly distrusted.</summary>
// Token: 0x04000694 RID: 1684
[Token(Token = "0x4000694")]
ExplicitDistrust = 67108864,
/// <summary>Specifies that the certificate does not support a critical extension.</summary>
// Token: 0x04000695 RID: 1685
[Token(Token = "0x4000695")]
HasNotSupportedCriticalExtension = 134217728,
/// <summary>Specifies that the certificate has not been strong signed. Typically, this indicates that the MD2 or MD5 hashing algorithms were used to create a hash of the certificate.</summary>
// Token: 0x04000696 RID: 1686
[Token(Token = "0x4000696")]
HasWeakSignature = 1048576
}
}
@@ -0,0 +1,57 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Defines the collection of object identifiers (OIDs) that indicates the applications that use the key. This class cannot be inherited.</summary>
// Token: 0x020001EC RID: 492
[Token(Token = "0x20001EC")]
public sealed class X509EnhancedKeyUsageExtension : X509Extension
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509EnhancedKeyUsageExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object and a value that identifies whether the extension is critical.</summary>
/// <param name="encodedEnhancedKeyUsages">The encoded data to use to create the extension.</param>
/// <param name="critical">
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
// Token: 0x06000CDE RID: 3294 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CDE")]
[Address(RVA = "0xC8F730", Offset = "0xC8E730", VA = "0x180C8F730")]
public X509EnhancedKeyUsageExtension(AsnEncodedData encodedEnhancedKeyUsages, bool critical)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509EnhancedKeyUsageExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</summary>
/// <param name="asnEncodedData">The encoded data to use to create the extension.</param>
// Token: 0x06000CDF RID: 3295 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CDF")]
[Address(RVA = "0xC8F0D0", Offset = "0xC8E0D0", VA = "0x180C8F0D0", Slot = "4")]
public override void CopyFrom(AsnEncodedData asnEncodedData)
{
}
// Token: 0x06000CE0 RID: 3296 RVA: 0x00006BA0 File Offset: 0x00004DA0
[Token(Token = "0x6000CE0")]
[Address(RVA = "0xC8F260", Offset = "0xC8E260", VA = "0x180C8F260")]
internal AsnDecodeStatus Decode(byte[] extension)
{
return AsnDecodeStatus.Ok;
}
// Token: 0x06000CE1 RID: 3297 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CE1")]
[Address(RVA = "0xC8F450", Offset = "0xC8E450", VA = "0x180C8F450", Slot = "5")]
internal override string ToString(bool multiLine)
{
return null;
}
// Token: 0x040006F3 RID: 1779
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40006F3")]
private OidCollection _enhKeyUsage;
// Token: 0x040006F4 RID: 1780
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40006F4")]
private AsnDecodeStatus _status;
}
}
@@ -0,0 +1,67 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Represents an X509 extension.</summary>
// Token: 0x020001ED RID: 493
[Token(Token = "0x20001ED")]
public class X509Extension : AsnEncodedData
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Extension" /> class.</summary>
// Token: 0x06000CE2 RID: 3298 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CE2")]
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
protected X509Extension()
{
}
/// <summary>Gets a Boolean value indicating whether the extension is critical.</summary>
/// <returns>
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</returns>
// Token: 0x1700026A RID: 618
// (get) Token: 0x06000CE3 RID: 3299 RVA: 0x00006BB8 File Offset: 0x00004DB8
// (set) Token: 0x06000CE4 RID: 3300 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x1700026A")]
public bool Critical
{
[Token(Token = "0x6000CE3")]
[Address(RVA = "0x4700C0", Offset = "0x46F0C0", VA = "0x1804700C0")]
get
{
return default(bool);
}
[Token(Token = "0x6000CE4")]
[Address(RVA = "0x65E580", Offset = "0x65D580", VA = "0x18065E580")]
set
{
}
}
/// <summary>Copies the extension properties of the specified <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</summary>
/// <param name="asnEncodedData">The <see cref="T:System.Security.Cryptography.AsnEncodedData" /> to be copied.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asnEncodedData" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asnEncodedData" /> does not have a valid X.509 extension.</exception>
// Token: 0x06000CE5 RID: 3301 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CE5")]
[Address(RVA = "0xC8F840", Offset = "0xC8E840", VA = "0x180C8F840", Slot = "4")]
public override void CopyFrom(AsnEncodedData asnEncodedData)
{
}
// Token: 0x06000CE6 RID: 3302 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CE6")]
[Address(RVA = "0xC8F950", Offset = "0xC8E950", VA = "0x180C8F950")]
internal string FormatUnkownData(byte[] data)
{
return null;
}
// Token: 0x040006F5 RID: 1781
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40006F5")]
private bool _critical;
}
}
@@ -0,0 +1,17 @@
using System;
using System.Reflection;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Represents a collection of <see cref="T:System.Security.Cryptography.X509Certificates.X509Extension" /> objects. This class cannot be inherited.</summary>
// Token: 0x020001EE RID: 494
[Token(Token = "0x20001EE")]
[DefaultMember("Item")]
public sealed class X509ExtensionCollection
{
// Token: 0x040006F6 RID: 1782
[Token(Token = "0x40006F6")]
private static byte[] Empty;
}
}
@@ -0,0 +1,91 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x020001EF RID: 495
[Token(Token = "0x20001EF")]
internal static class X509Helper2
{
// Token: 0x06000CE8 RID: 3304 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CE8")]
[Address(RVA = "0xC8FD90", Offset = "0xC8ED90", VA = "0x180C8FD90")]
internal static void Initialize()
{
}
// Token: 0x06000CE9 RID: 3305 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CE9")]
[Address(RVA = "0xC8FE60", Offset = "0xC8EE60", VA = "0x180C8FE60")]
internal static void ThrowIfContextInvalid(X509CertificateImpl impl)
{
}
// Token: 0x06000CEA RID: 3306 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CEA")]
[Address(RVA = "0xC8FCF0", Offset = "0xC8ECF0", VA = "0x180C8FCF0")]
internal static X509Certificate2Impl Import(byte[] rawData, string password, X509KeyStorageFlags keyStorageFlags, bool disableProvider = false)
{
return null;
}
// Token: 0x06000CEB RID: 3307 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CEB")]
[Address(RVA = "0xC8FBC0", Offset = "0xC8EBC0", VA = "0x180C8FBC0")]
internal static X509Certificate2Impl Import(X509Certificate cert, bool disableProvider = false)
{
return null;
}
// Token: 0x06000CEC RID: 3308 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CEC")]
[Address(RVA = "0xC8FA40", Offset = "0xC8EA40", VA = "0x180C8FA40")]
internal static X509ChainImpl CreateChainImpl(bool useMachineContext)
{
return null;
}
// Token: 0x06000CED RID: 3309 RVA: 0x00006BD0 File Offset: 0x00004DD0
[Token(Token = "0x6000CED")]
[Address(RVA = "0xC8FDE0", Offset = "0xC8EDE0", VA = "0x180C8FDE0")]
public static bool IsValid(X509ChainImpl impl)
{
return default(bool);
}
// Token: 0x06000CEE RID: 3310 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CEE")]
[Address(RVA = "0xC8FE00", Offset = "0xC8EE00", VA = "0x180C8FE00")]
internal static void ThrowIfContextInvalid(X509ChainImpl impl)
{
}
// Token: 0x06000CEF RID: 3311 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CEF")]
[Address(RVA = "0xC8FB50", Offset = "0xC8EB50", VA = "0x180C8FB50")]
internal static Exception GetInvalidChainContextException()
{
return null;
}
// Token: 0x020001F0 RID: 496
[Token(Token = "0x20001F0")]
private class MyNativeHelper : INativeCertificateHelper
{
// Token: 0x06000CF0 RID: 3312 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CF0")]
[Address(RVA = "0xC76930", Offset = "0xC75930", VA = "0x180C76930", Slot = "4")]
public X509CertificateImpl Import(X509Certificate cert)
{
return null;
}
// Token: 0x06000CF1 RID: 3313 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CF1")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public MyNativeHelper()
{
}
}
}
}
@@ -0,0 +1,120 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Defines the usage of a key contained within an X.509 certificate. This class cannot be inherited.</summary>
// Token: 0x020001F1 RID: 497
[Token(Token = "0x20001F1")]
public sealed class X509KeyUsageExtension : X509Extension
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension" /> class.</summary>
// Token: 0x06000CF2 RID: 3314 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CF2")]
[Address(RVA = "0xC90910", Offset = "0xC8F910", VA = "0x180C90910")]
public X509KeyUsageExtension()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object and a value that identifies whether the extension is critical.</summary>
/// <param name="encodedKeyUsage">The encoded data to use to create the extension.</param>
/// <param name="critical">
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
// Token: 0x06000CF3 RID: 3315 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CF3")]
[Address(RVA = "0xC90780", Offset = "0xC8F780", VA = "0x180C90780")]
public X509KeyUsageExtension(AsnEncodedData encodedKeyUsage, bool critical)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension" /> class using the specified <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" /> value and a value that identifies whether the extension is critical.</summary>
/// <param name="keyUsages">One of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" /> values that describes how to use the key.</param>
/// <param name="critical">
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
// Token: 0x06000CF4 RID: 3316 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CF4")]
[Address(RVA = "0xC90840", Offset = "0xC8F840", VA = "0x180C90840")]
public X509KeyUsageExtension(X509KeyUsageFlags keyUsages, bool critical)
{
}
/// <summary>Gets the key usage flag associated with the certificate.</summary>
/// <returns>One of the <see cref="P:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension.KeyUsages" /> values.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The extension cannot be decoded.</exception>
// Token: 0x1700026B RID: 619
// (get) Token: 0x06000CF5 RID: 3317 RVA: 0x00006BE8 File Offset: 0x00004DE8
[Token(Token = "0x1700026B")]
public X509KeyUsageFlags KeyUsages
{
[Token(Token = "0x6000CF5")]
[Address(RVA = "0xC909A0", Offset = "0xC8F9A0", VA = "0x180C909A0")]
get
{
return X509KeyUsageFlags.None;
}
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</summary>
/// <param name="asnEncodedData">The encoded data to use to create the extension.</param>
// Token: 0x06000CF6 RID: 3318 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CF6")]
[Address(RVA = "0xC8FE70", Offset = "0xC8EE70", VA = "0x180C8FE70", Slot = "4")]
public override void CopyFrom(AsnEncodedData asnEncodedData)
{
}
// Token: 0x06000CF7 RID: 3319 RVA: 0x00006C00 File Offset: 0x00004E00
[Token(Token = "0x6000CF7")]
[Address(RVA = "0xC90340", Offset = "0xC8F340", VA = "0x180C90340")]
internal X509KeyUsageFlags GetValidFlags(X509KeyUsageFlags flags)
{
return X509KeyUsageFlags.None;
}
// Token: 0x06000CF8 RID: 3320 RVA: 0x00006C18 File Offset: 0x00004E18
[Token(Token = "0x6000CF8")]
[Address(RVA = "0xC90000", Offset = "0xC8F000", VA = "0x180C90000")]
internal AsnDecodeStatus Decode(byte[] extension)
{
return AsnDecodeStatus.Ok;
}
// Token: 0x06000CF9 RID: 3321 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CF9")]
[Address(RVA = "0xC90180", Offset = "0xC8F180", VA = "0x180C90180")]
internal byte[] Encode()
{
return null;
}
// Token: 0x06000CFA RID: 3322 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CFA")]
[Address(RVA = "0xC90350", Offset = "0xC8F350", VA = "0x180C90350", Slot = "5")]
internal override string ToString(bool multiLine)
{
return null;
}
// Token: 0x040006F7 RID: 1783
[Token(Token = "0x40006F7")]
internal const string oid = "2.5.29.15";
// Token: 0x040006F8 RID: 1784
[Token(Token = "0x40006F8")]
internal const string friendlyName = "Key Usage";
// Token: 0x040006F9 RID: 1785
[Token(Token = "0x40006F9")]
internal const X509KeyUsageFlags all = X509KeyUsageFlags.EncipherOnly | X509KeyUsageFlags.CrlSign | X509KeyUsageFlags.KeyCertSign | X509KeyUsageFlags.KeyAgreement | X509KeyUsageFlags.DataEncipherment | X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.NonRepudiation | X509KeyUsageFlags.DigitalSignature | X509KeyUsageFlags.DecipherOnly;
// Token: 0x040006FA RID: 1786
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40006FA")]
private X509KeyUsageFlags _keyUsages;
// Token: 0x040006FB RID: 1787
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x40006FB")]
private AsnDecodeStatus _status;
}
}
@@ -0,0 +1,53 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Defines how the certificate key can be used. If this value is not defined, the key can be used for any purpose.</summary>
// Token: 0x020001D3 RID: 467
[Token(Token = "0x20001D3")]
[Flags]
public enum X509KeyUsageFlags
{
/// <summary>No key usage parameters.</summary>
// Token: 0x04000698 RID: 1688
[Token(Token = "0x4000698")]
None = 0,
/// <summary>The key can be used for encryption only.</summary>
// Token: 0x04000699 RID: 1689
[Token(Token = "0x4000699")]
EncipherOnly = 1,
/// <summary>The key can be used to sign a certificate revocation list (CRL).</summary>
// Token: 0x0400069A RID: 1690
[Token(Token = "0x400069A")]
CrlSign = 2,
/// <summary>The key can be used to sign certificates.</summary>
// Token: 0x0400069B RID: 1691
[Token(Token = "0x400069B")]
KeyCertSign = 4,
/// <summary>The key can be used to determine key agreement, such as a key created using the Diffie-Hellman key agreement algorithm.</summary>
// Token: 0x0400069C RID: 1692
[Token(Token = "0x400069C")]
KeyAgreement = 8,
/// <summary>The key can be used for data encryption.</summary>
// Token: 0x0400069D RID: 1693
[Token(Token = "0x400069D")]
DataEncipherment = 16,
/// <summary>The key can be used for key encryption.</summary>
// Token: 0x0400069E RID: 1694
[Token(Token = "0x400069E")]
KeyEncipherment = 32,
/// <summary>The key can be used for authentication.</summary>
// Token: 0x0400069F RID: 1695
[Token(Token = "0x400069F")]
NonRepudiation = 64,
/// <summary>The key can be used as a digital signature.</summary>
// Token: 0x040006A0 RID: 1696
[Token(Token = "0x40006A0")]
DigitalSignature = 128,
/// <summary>The key can be used for decryption only.</summary>
// Token: 0x040006A1 RID: 1697
[Token(Token = "0x40006A1")]
DecipherOnly = 32768
}
}
@@ -0,0 +1,36 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Specifies the type of name the X509 certificate contains.</summary>
// Token: 0x020001D4 RID: 468
[Token(Token = "0x20001D4")]
public enum X509NameType
{
/// <summary>The simple name of a subject or issuer of an X509 certificate.</summary>
// Token: 0x040006A3 RID: 1699
[Token(Token = "0x40006A3")]
SimpleName,
/// <summary>The email address of the subject or issuer associated of an X509 certificate.</summary>
// Token: 0x040006A4 RID: 1700
[Token(Token = "0x40006A4")]
EmailName,
/// <summary>The UPN name of the subject or issuer of an X509 certificate.</summary>
// Token: 0x040006A5 RID: 1701
[Token(Token = "0x40006A5")]
UpnName,
/// <summary>The DNS name associated with the alternative name of either the subject or issuer of an X509 certificate.</summary>
// Token: 0x040006A6 RID: 1702
[Token(Token = "0x40006A6")]
DnsName,
/// <summary>The DNS name associated with the alternative name of either the subject or the issuer of an X.509 certificate. This value is equivalent to the <see cref="F:System.Security.Cryptography.X509Certificates.X509NameType.DnsName" /> value.</summary>
// Token: 0x040006A7 RID: 1703
[Token(Token = "0x40006A7")]
DnsFromAlternativeName,
/// <summary>The URL address associated with the alternative name of either the subject or issuer of an X509 certificate.</summary>
// Token: 0x040006A8 RID: 1704
[Token(Token = "0x40006A8")]
UrlName
}
}
@@ -0,0 +1,24 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Specifies which X509 certificates in the chain should be checked for revocation.</summary>
// Token: 0x020001D5 RID: 469
[Token(Token = "0x20001D5")]
public enum X509RevocationFlag
{
/// <summary>Only the end certificate is checked for revocation.</summary>
// Token: 0x040006AA RID: 1706
[Token(Token = "0x40006AA")]
EndCertificateOnly,
/// <summary>The entire chain of certificates is checked for revocation.</summary>
// Token: 0x040006AB RID: 1707
[Token(Token = "0x40006AB")]
EntireChain,
/// <summary>The entire chain, except the root certificate, is checked for revocation.</summary>
// Token: 0x040006AC RID: 1708
[Token(Token = "0x40006AC")]
ExcludeRoot
}
}
@@ -0,0 +1,24 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Specifies the mode used to check for X509 certificate revocation.</summary>
// Token: 0x020001D6 RID: 470
[Token(Token = "0x20001D6")]
public enum X509RevocationMode
{
/// <summary>No revocation check is performed on the certificate.</summary>
// Token: 0x040006AE RID: 1710
[Token(Token = "0x40006AE")]
NoCheck,
/// <summary>A revocation check is made using an online certificate revocation list (CRL).</summary>
// Token: 0x040006AF RID: 1711
[Token(Token = "0x40006AF")]
Online,
/// <summary>A revocation check is made using a cached certificate revocation list (CRL).</summary>
// Token: 0x040006B0 RID: 1712
[Token(Token = "0x40006B0")]
Offline
}
}
@@ -0,0 +1,171 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Defines a string that identifies a certificate's subject key identifier (SKI). This class cannot be inherited.</summary>
// Token: 0x020001F2 RID: 498
[Token(Token = "0x20001F2")]
public sealed class X509SubjectKeyIdentifierExtension : X509Extension
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class.</summary>
// Token: 0x06000CFB RID: 3323 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CFB")]
[Address(RVA = "0xC91650", Offset = "0xC90650", VA = "0x180C91650")]
public X509SubjectKeyIdentifierExtension()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class using encoded data and a value that identifies whether the extension is critical.</summary>
/// <param name="encodedSubjectKeyIdentifier">The <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object to use to create the extension.</param>
/// <param name="critical">
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
// Token: 0x06000CFC RID: 3324 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CFC")]
[Address(RVA = "0xC91320", Offset = "0xC90320", VA = "0x180C91320")]
public X509SubjectKeyIdentifierExtension(AsnEncodedData encodedSubjectKeyIdentifier, bool critical)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class using a byte array and a value that identifies whether the extension is critical.</summary>
/// <param name="subjectKeyIdentifier">A byte array that represents data to use to create the extension.</param>
/// <param name="critical">
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
// Token: 0x06000CFD RID: 3325 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CFD")]
[Address(RVA = "0xC911C0", Offset = "0xC901C0", VA = "0x180C911C0")]
public X509SubjectKeyIdentifierExtension(byte[] subjectKeyIdentifier, bool critical)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class using a string and a value that identifies whether the extension is critical.</summary>
/// <param name="subjectKeyIdentifier">A string, encoded in hexadecimal format, that represents the subject key identifier (SKI) for a certificate.</param>
/// <param name="critical">
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
// Token: 0x06000CFE RID: 3326 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CFE")]
[Address(RVA = "0xC913E0", Offset = "0xC903E0", VA = "0x180C913E0")]
public X509SubjectKeyIdentifierExtension(string subjectKeyIdentifier, bool critical)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class using a public key and a value indicating whether the extension is critical.</summary>
/// <param name="key">A <see cref="T:System.Security.Cryptography.X509Certificates.PublicKey" /> object to create a subject key identifier (SKI) from.</param>
/// <param name="critical">
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
// Token: 0x06000CFF RID: 3327 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CFF")]
[Address(RVA = "0xC91630", Offset = "0xC90630", VA = "0x180C91630")]
public X509SubjectKeyIdentifierExtension(PublicKey key, bool critical)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class using a public key, a hash algorithm identifier, and a value indicating whether the extension is critical.</summary>
/// <param name="key">A <see cref="T:System.Security.Cryptography.X509Certificates.PublicKey" /> object to create a subject key identifier (SKI) from.</param>
/// <param name="algorithm">One of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierHashAlgorithm" /> values that identifies which hash algorithm to use.</param>
/// <param name="critical">
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
// Token: 0x06000D00 RID: 3328 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D00")]
[Address(RVA = "0xC916E0", Offset = "0xC906E0", VA = "0x180C916E0")]
public X509SubjectKeyIdentifierExtension(PublicKey key, X509SubjectKeyIdentifierHashAlgorithm algorithm, bool critical)
{
}
/// <summary>Gets a string that represents the subject key identifier (SKI) for a certificate.</summary>
/// <returns>A string, encoded in hexadecimal format, that represents the subject key identifier (SKI).</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The extension cannot be decoded.</exception>
// Token: 0x1700026C RID: 620
// (get) Token: 0x06000D01 RID: 3329 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700026C")]
public string SubjectKeyIdentifier
{
[Token(Token = "0x6000D01")]
[Address(RVA = "0xC91A70", Offset = "0xC90A70", VA = "0x180C91A70")]
get
{
return null;
}
}
/// <summary>Creates a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class by copying information from encoded data.</summary>
/// <param name="asnEncodedData">The <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object to use to create the extension.</param>
// Token: 0x06000D02 RID: 3330 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D02")]
[Address(RVA = "0xC90A10", Offset = "0xC8FA10", VA = "0x180C90A10", Slot = "4")]
public override void CopyFrom(AsnEncodedData asnEncodedData)
{
}
// Token: 0x06000D03 RID: 3331 RVA: 0x00006C30 File Offset: 0x00004E30
[Token(Token = "0x6000D03")]
[Address(RVA = "0xC90D70", Offset = "0xC8FD70", VA = "0x180C90D70")]
internal static byte FromHexChar(char c)
{
return 0;
}
// Token: 0x06000D04 RID: 3332 RVA: 0x00006C48 File Offset: 0x00004E48
[Token(Token = "0x6000D04")]
[Address(RVA = "0xC90DA0", Offset = "0xC8FDA0", VA = "0x180C90DA0")]
internal static byte FromHexChars(char c1, char c2)
{
return 0;
}
// Token: 0x06000D05 RID: 3333 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000D05")]
[Address(RVA = "0xC90E20", Offset = "0xC8FE20", VA = "0x180C90E20")]
internal static byte[] FromHex(string hex)
{
return null;
}
// Token: 0x06000D06 RID: 3334 RVA: 0x00006C60 File Offset: 0x00004E60
[Token(Token = "0x6000D06")]
[Address(RVA = "0xC90BA0", Offset = "0xC8FBA0", VA = "0x180C90BA0")]
internal AsnDecodeStatus Decode(byte[] extension)
{
return AsnDecodeStatus.Ok;
}
// Token: 0x06000D07 RID: 3335 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000D07")]
[Address(RVA = "0xC90CF0", Offset = "0xC8FCF0", VA = "0x180C90CF0")]
internal byte[] Encode()
{
return null;
}
// Token: 0x06000D08 RID: 3336 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000D08")]
[Address(RVA = "0xC90FA0", Offset = "0xC8FFA0", VA = "0x180C90FA0", Slot = "5")]
internal override string ToString(bool multiLine)
{
return null;
}
// Token: 0x040006FC RID: 1788
[Token(Token = "0x40006FC")]
internal const string oid = "2.5.29.14";
// Token: 0x040006FD RID: 1789
[Token(Token = "0x40006FD")]
internal const string friendlyName = "Subject Key Identifier";
// Token: 0x040006FE RID: 1790
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40006FE")]
private byte[] _subjectKeyIdentifier;
// Token: 0x040006FF RID: 1791
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40006FF")]
private string _ski;
// Token: 0x04000700 RID: 1792
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000700")]
private AsnDecodeStatus _status;
}
}
@@ -0,0 +1,24 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Defines the type of hash algorithm to use with the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class.</summary>
// Token: 0x020001D7 RID: 471
[Token(Token = "0x20001D7")]
public enum X509SubjectKeyIdentifierHashAlgorithm
{
/// <summary>The SKI is composed of the 160-bit SHA-1 hash of the value of the public key (excluding the tag, length, and number of unused bits).</summary>
// Token: 0x040006B2 RID: 1714
[Token(Token = "0x40006B2")]
Sha1,
/// <summary>The SKI is composed of a four-bit type field with the value 0100, followed by the least significant 60 bits of the SHA-1 hash of the value of the public key (excluding the tag, length, and number of unused bit string bits)</summary>
// Token: 0x040006B3 RID: 1715
[Token(Token = "0x40006B3")]
ShortSha1,
/// <summary>The subject key identifier (SKI) is composed of a 160-bit SHA-1 hash of the encoded public key (including the tag, length, and number of unused bits).</summary>
// Token: 0x040006B4 RID: 1716
[Token(Token = "0x40006B4")]
CapiSha1
}
}
@@ -0,0 +1,26 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x020001D9 RID: 473
[Token(Token = "0x20001D9")]
internal class X509Utils
{
// Token: 0x06000C4E RID: 3150 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C4E")]
[Address(RVA = "0xC91B40", Offset = "0xC90B40", VA = "0x180C91B40")]
internal static string FindOidInfo(uint keyType, string keyValue, OidGroup oidGroup)
{
return null;
}
// Token: 0x06000C4F RID: 3151 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C4F")]
[Address(RVA = "0xC91AF0", Offset = "0xC90AF0", VA = "0x180C91AF0")]
internal static string FindOidInfoWithFallback(uint key, string value, OidGroup group)
{
return null;
}
}
}
@@ -0,0 +1,69 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Specifies conditions under which verification of certificates in the X509 chain should be conducted.</summary>
// Token: 0x020001D8 RID: 472
[Token(Token = "0x20001D8")]
[Flags]
public enum X509VerificationFlags
{
/// <summary>No flags pertaining to verification are included.</summary>
// Token: 0x040006B6 RID: 1718
[Token(Token = "0x40006B6")]
NoFlag = 0,
/// <summary>Ignore certificates in the chain that are not valid either because they have expired or they are not yet in effect when determining certificate validity.</summary>
// Token: 0x040006B7 RID: 1719
[Token(Token = "0x40006B7")]
IgnoreNotTimeValid = 1,
/// <summary>Ignore that the certificate trust list (CTL) is not valid, for reasons such as the CTL has expired, when determining certificate verification.</summary>
// Token: 0x040006B8 RID: 1720
[Token(Token = "0x40006B8")]
IgnoreCtlNotTimeValid = 2,
/// <summary>Ignore that the CA (certificate authority) certificate and the issued certificate have validity periods that are not nested when verifying the certificate. For example, the CA cert can be valid from January 1 to December 1 and the issued certificate from January 2 to December 2, which would mean the validity periods are not nested.</summary>
// Token: 0x040006B9 RID: 1721
[Token(Token = "0x40006B9")]
IgnoreNotTimeNested = 4,
/// <summary>Ignore that the basic constraints are not valid when determining certificate verification.</summary>
// Token: 0x040006BA RID: 1722
[Token(Token = "0x40006BA")]
IgnoreInvalidBasicConstraints = 8,
/// <summary>Ignore that the chain cannot be verified due to an unknown certificate authority (CA).</summary>
// Token: 0x040006BB RID: 1723
[Token(Token = "0x40006BB")]
AllowUnknownCertificateAuthority = 16,
/// <summary>Ignore that the certificate was not issued for the current use when determining certificate verification.</summary>
// Token: 0x040006BC RID: 1724
[Token(Token = "0x40006BC")]
IgnoreWrongUsage = 32,
/// <summary>Ignore that the certificate has an invalid name when determining certificate verification.</summary>
// Token: 0x040006BD RID: 1725
[Token(Token = "0x40006BD")]
IgnoreInvalidName = 64,
/// <summary>Ignore that the certificate has invalid policy when determining certificate verification.</summary>
// Token: 0x040006BE RID: 1726
[Token(Token = "0x40006BE")]
IgnoreInvalidPolicy = 128,
/// <summary>Ignore that the end certificate (the user certificate) revocation is unknown when determining certificate verification.</summary>
// Token: 0x040006BF RID: 1727
[Token(Token = "0x40006BF")]
IgnoreEndRevocationUnknown = 256,
/// <summary>Ignore that the certificate trust list (CTL) signer revocation is unknown when determining certificate verification.</summary>
// Token: 0x040006C0 RID: 1728
[Token(Token = "0x40006C0")]
IgnoreCtlSignerRevocationUnknown = 512,
/// <summary>Ignore that the certificate authority revocation is unknown when determining certificate verification.</summary>
// Token: 0x040006C1 RID: 1729
[Token(Token = "0x40006C1")]
IgnoreCertificateAuthorityRevocationUnknown = 1024,
/// <summary>Ignore that the root revocation is unknown when determining certificate verification.</summary>
// Token: 0x040006C2 RID: 1730
[Token(Token = "0x40006C2")]
IgnoreRootRevocationUnknown = 2048,
/// <summary>All flags pertaining to verification are included.</summary>
// Token: 0x040006C3 RID: 1731
[Token(Token = "0x40006C3")]
AllFlags = 4095
}
}