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,15 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x0200044C RID: 1100
[Token(Token = "0x200044C")]
internal interface INativeCertificateHelper
{
// Token: 0x0600261C RID: 9756
[Token(Token = "0x600261C")]
[Address(Slot = "0")]
X509CertificateImpl Import(X509Certificate cert);
}
}
@@ -0,0 +1,47 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x0200044B RID: 1099
[Token(Token = "0x200044B")]
internal enum OidGroup
{
// Token: 0x0400153A RID: 5434
[Token(Token = "0x400153A")]
AllGroups,
// Token: 0x0400153B RID: 5435
[Token(Token = "0x400153B")]
HashAlgorithm,
// Token: 0x0400153C RID: 5436
[Token(Token = "0x400153C")]
EncryptionAlgorithm,
// Token: 0x0400153D RID: 5437
[Token(Token = "0x400153D")]
PublicKeyAlgorithm,
// Token: 0x0400153E RID: 5438
[Token(Token = "0x400153E")]
SignatureAlgorithm,
// Token: 0x0400153F RID: 5439
[Token(Token = "0x400153F")]
Attribute,
// Token: 0x04001540 RID: 5440
[Token(Token = "0x4001540")]
ExtensionOrAttribute,
// Token: 0x04001541 RID: 5441
[Token(Token = "0x4001541")]
EnhancedKeyUsage,
// Token: 0x04001542 RID: 5442
[Token(Token = "0x4001542")]
Policy,
// Token: 0x04001543 RID: 5443
[Token(Token = "0x4001543")]
Template,
// Token: 0x04001544 RID: 5444
[Token(Token = "0x4001544")]
KeyDerivationFunction,
// Token: 0x04001545 RID: 5445
[Token(Token = "0x4001545")]
DisableSearchDS = -2147483648
}
}
@@ -0,0 +1,359 @@
using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Provides methods that help you use X.509 v.3 certificates.</summary>
// Token: 0x0200044D RID: 1101
[Token(Token = "0x200044D")]
[MonoTODO]
[MonoTODO("X509ContentType.SerializedCert isn't supported (anywhere in the class)")]
[ComVisible(true)]
[Serializable]
public class X509Certificate : IDeserializationCallback, ISerializable, IDisposable
{
// Token: 0x0600261D RID: 9757 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600261D")]
[Address(RVA = "0xD1EB90", Offset = "0xD1DB90", VA = "0x180D1EB90")]
internal X509Certificate(byte[] data, bool dates)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> class defined from a sequence of bytes representing an X.509v3 certificate.</summary>
/// <param name="data">A byte array containing data from an X.509 certificate.</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>
/// <exception cref="T:System.ArgumentException">The <paramref name="rawData" /> parameter is <see langword="null" />.
/// -or-
/// The length of the <paramref name="rawData" /> parameter is 0.</exception>
// Token: 0x0600261E RID: 9758 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600261E")]
[Address(RVA = "0xD1E820", Offset = "0xD1D820", VA = "0x180D1E820")]
public X509Certificate(byte[] data)
{
}
// Token: 0x0600261F RID: 9759 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600261F")]
[Address(RVA = "0xD1EA10", Offset = "0xD1DA10", VA = "0x180D1EA10")]
internal X509Certificate(X509CertificateImpl impl)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> class using another <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> class.</summary>
/// <param name="cert">A <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> class from which to initialize this class.</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>
/// <exception cref="T:System.ArgumentNullException">The value of the <paramref name="cert" /> parameter is <see langword="null" />.</exception>
// Token: 0x06002620 RID: 9760 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002620")]
[Address(RVA = "0xD1E870", Offset = "0xD1D870", VA = "0x180D1E870")]
public X509Certificate(X509Certificate cert)
{
}
// Token: 0x06002621 RID: 9761 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002621")]
[Address(RVA = "0xD1E5C0", Offset = "0xD1D5C0", VA = "0x180D1E5C0")]
internal void ImportHandle(X509CertificateImpl impl)
{
}
// Token: 0x17000575 RID: 1397
// (get) Token: 0x06002622 RID: 9762 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000575")]
internal X509CertificateImpl Impl
{
[Token(Token = "0x6002622")]
[Address(RVA = "0xD1EBF0", Offset = "0xD1DBF0", VA = "0x180D1EBF0")]
get
{
return null;
}
}
// Token: 0x17000576 RID: 1398
// (get) Token: 0x06002623 RID: 9763 RVA: 0x00017958 File Offset: 0x00015B58
[Token(Token = "0x17000576")]
internal bool IsValid
{
[Token(Token = "0x6002623")]
[Address(RVA = "0xD1EC60", Offset = "0xD1DC60", VA = "0x180D1EC60")]
get
{
return default(bool);
}
}
/// <summary>Compares two <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> objects for equality.</summary>
/// <param name="other">An <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object to compare to the current object.</param>
/// <returns>
/// <see langword="true" /> if the current <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object is equal to the object specified by the <paramref name="other" /> parameter; otherwise, <see langword="false" />.</returns>
// Token: 0x06002624 RID: 9764 RVA: 0x00017970 File Offset: 0x00015B70
[Token(Token = "0x6002624")]
[Address(RVA = "0xD1E1C0", Offset = "0xD1D1C0", VA = "0x180D1E1C0", Slot = "7")]
public virtual bool Equals(X509Certificate other)
{
return default(bool);
}
/// <summary>Returns the hash value for the X.509v3 certificate as an array of bytes.</summary>
/// <returns>The hash value for the X.509 certificate.</returns>
// Token: 0x06002625 RID: 9765 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002625")]
[Address(RVA = "0xD1E2D0", Offset = "0xD1D2D0", VA = "0x180D1E2D0", Slot = "8")]
public virtual byte[] GetCertHash()
{
return null;
}
/// <summary>Returns the SHA1 hash value for the X.509v3 certificate as a hexadecimal string.</summary>
/// <returns>The hexadecimal string representation of the X.509 certificate hash value.</returns>
// Token: 0x06002626 RID: 9766 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002626")]
[Address(RVA = "0xD1E2A0", Offset = "0xD1D2A0", VA = "0x180D1E2A0", Slot = "9")]
public virtual string GetCertHashString()
{
return null;
}
/// <summary>Returns the hash code for the X.509v3 certificate as an integer.</summary>
/// <returns>The hash code for the X.509 certificate as an integer.</returns>
// Token: 0x06002627 RID: 9767 RVA: 0x00017988 File Offset: 0x00015B88
[Token(Token = "0x6002627")]
[Address(RVA = "0xD1E350", Offset = "0xD1D350", VA = "0x180D1E350", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Returns the public key for the X.509v3 certificate as an array of bytes.</summary>
/// <returns>The public key for the X.509 certificate as an array of bytes.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate context is invalid.</exception>
// Token: 0x06002628 RID: 9768 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002628")]
[Address(RVA = "0xD1E3B0", Offset = "0xD1D3B0", VA = "0x180D1E3B0", Slot = "10")]
public virtual byte[] GetPublicKey()
{
return null;
}
/// <summary>Returns the raw data for the entire X.509v3 certificate as an array of bytes.</summary>
/// <returns>A byte array containing the X.509 certificate data.</returns>
// Token: 0x06002629 RID: 9769 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002629")]
[Address(RVA = "0xD1E440", Offset = "0xD1D440", VA = "0x180D1E440", Slot = "11")]
public virtual byte[] GetRawCertData()
{
return null;
}
/// <summary>Returns the serial number of the X.509v3 certificate as an array of bytes in little-endian order.</summary>
/// <returns>The serial number of the X.509 certificate as an array of bytes in little-endian order.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate context is invalid.</exception>
// Token: 0x0600262A RID: 9770 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600262A")]
[Address(RVA = "0xD1E530", Offset = "0xD1D530", VA = "0x180D1E530", Slot = "12")]
public virtual byte[] GetSerialNumber()
{
return null;
}
/// <summary>Returns the serial number of the X.509v3 certificate as a little-endian hexadecimal string .</summary>
/// <returns>The serial number of the X.509 certificate as a little-endian hexadecimal string.</returns>
// Token: 0x0600262B RID: 9771 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600262B")]
[Address(RVA = "0xD1E4D0", Offset = "0xD1D4D0", VA = "0x180D1E4D0", Slot = "13")]
public virtual string GetSerialNumberString()
{
return null;
}
/// <summary>Returns a string representation of the current <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object.</summary>
/// <returns>A string representation of the current <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object.</returns>
// Token: 0x0600262C RID: 9772 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600262C")]
[Address(RVA = "0xD1E7B0", Offset = "0xD1D7B0", VA = "0x180D1E7B0", Slot = "3")]
public override string ToString()
{
return null;
}
/// <summary>Returns a string representation of the current <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object, with extra information, if specified.</summary>
/// <param name="fVerbose">
/// <see langword="true" /> to produce the verbose form of the string representation; otherwise, <see langword="false" />.</param>
/// <returns>A string representation of the current <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object.</returns>
// Token: 0x0600262D RID: 9773 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600262D")]
[Address(RVA = "0xD1E7C0", Offset = "0xD1D7C0", VA = "0x180D1E7C0", Slot = "14")]
public virtual string ToString(bool fVerbose)
{
return null;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> class.</summary>
// Token: 0x0600262E RID: 9774 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600262E")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public X509Certificate()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> class using a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object and a <see cref="T:System.Runtime.Serialization.StreamingContext" /> structure.</summary>
/// <param name="info">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object that describes serialization information.</param>
/// <param name="context">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> structure that describes how serialization should be performed.</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: 0x0600262F RID: 9775 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600262F")]
[Address(RVA = "0xD1EAA0", Offset = "0xD1DAA0", VA = "0x180D1EAA0")]
public X509Certificate(SerializationInfo info, StreamingContext context)
{
}
/// <summary>Gets the name of the certificate authority that issued the X.509v3 certificate.</summary>
/// <returns>The name of the certificate authority that issued the X.509v3 certificate.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate handle is invalid.</exception>
// Token: 0x17000577 RID: 1399
// (get) Token: 0x06002630 RID: 9776 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000577")]
public string Issuer
{
[Token(Token = "0x6002630")]
[Address(RVA = "0xD1EC80", Offset = "0xD1DC80", VA = "0x180D1EC80")]
get
{
return null;
}
}
/// <summary>Gets the subject distinguished name from the certificate.</summary>
/// <returns>The subject distinguished name from the certificate.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate handle is invalid.</exception>
// Token: 0x17000578 RID: 1400
// (get) Token: 0x06002631 RID: 9777 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000578")]
public string Subject
{
[Token(Token = "0x6002631")]
[Address(RVA = "0xD1ED20", Offset = "0xD1DD20", VA = "0x180D1ED20")]
get
{
return null;
}
}
/// <summary>Compares two <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> objects for equality.</summary>
/// <param name="obj">An <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object to compare to the current object.</param>
/// <returns>
/// <see langword="true" /> if the current <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object is equal to the object specified by the <paramref name="other" /> parameter; otherwise, <see langword="false" />.</returns>
// Token: 0x06002632 RID: 9778 RVA: 0x000179A0 File Offset: 0x00015BA0
[Token(Token = "0x6002632")]
[Address(RVA = "0xD1E120", Offset = "0xD1D120", VA = "0x180D1E120", Slot = "0")]
[ComVisible(false)]
public override bool Equals(object obj)
{
return default(bool);
}
/// <summary>Populates the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object using data from a byte array, a password, and flags for determining how the private key is imported.</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>
/// <exception cref="T:System.ArgumentException">The <paramref name="rawData" /> parameter is <see langword="null" />.
/// -or-
/// The length of the <paramref name="rawData" /> parameter is 0.</exception>
// Token: 0x06002633 RID: 9779 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002633")]
[Address(RVA = "0xD1E5F0", Offset = "0xD1D5F0", VA = "0x180D1E5F0", Slot = "15")]
[MonoTODO]
[MonoTODO("missing KeyStorageFlags support")]
[ComVisible(false)]
public virtual void Import(byte[] rawData, string password, X509KeyStorageFlags keyStorageFlags)
{
}
/// <summary>Implements the <see cref="T:System.Runtime.Serialization.ISerializable" /> interface and is called back by the deserialization event when deserialization is complete.</summary>
/// <param name="sender">The source of the deserialization event.</param>
// Token: 0x06002634 RID: 9780 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002634")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "4")]
void IDeserializationCallback.OnDeserialization(object sender)
{
}
/// <summary>Gets serialization information with all the data needed to recreate an instance of the current <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object.</summary>
/// <param name="info">The object to populate with serialization information.</param>
/// <param name="context">The destination context of the serialization.</param>
// Token: 0x06002635 RID: 9781 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002635")]
[Address(RVA = "0xD1E6F0", Offset = "0xD1D6F0", VA = "0x180D1E6F0", Slot = "5")]
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
{
}
/// <summary>Releases all resources used by the current <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object.</summary>
// Token: 0x06002636 RID: 9782 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002636")]
[Address(RVA = "0xB2C230", Offset = "0xB2B230", VA = "0x180B2C230", Slot = "6")]
public void Dispose()
{
}
/// <summary>Releases all of the unmanaged resources used by this <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> 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: 0x06002637 RID: 9783 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002637")]
[Address(RVA = "0xD1E100", Offset = "0xD1D100", VA = "0x180D1E100", Slot = "16")]
protected virtual void Dispose(bool disposing)
{
}
/// <summary>Resets the state of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> object.</summary>
// Token: 0x06002638 RID: 9784 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002638")]
[Address(RVA = "0xD1E650", Offset = "0xD1D650", VA = "0x180D1E650", Slot = "17")]
[ComVisible(false)]
public virtual void Reset()
{
}
// Token: 0x04001546 RID: 5446
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001546")]
private X509CertificateImpl impl;
// Token: 0x04001547 RID: 5447
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001547")]
private bool hideDates;
// Token: 0x04001548 RID: 5448
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001548")]
private string issuer_name;
// Token: 0x04001549 RID: 5449
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001549")]
private string subject_name;
}
}
@@ -0,0 +1,139 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x0200044E RID: 1102
[Token(Token = "0x200044E")]
internal abstract class X509CertificateImpl : IDisposable
{
// Token: 0x17000579 RID: 1401
// (get) Token: 0x06002639 RID: 9785
[Token(Token = "0x17000579")]
public abstract bool IsValid
{
[Token(Token = "0x6002639")]
[Address(Slot = "5")]
get;
}
// Token: 0x0600263A RID: 9786 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600263A")]
[Address(RVA = "0xD1E0A0", Offset = "0xD1D0A0", VA = "0x180D1E0A0")]
protected void ThrowIfContextInvalid()
{
}
// Token: 0x0600263B RID: 9787
[Token(Token = "0x600263B")]
[Address(Slot = "6")]
public abstract X509CertificateImpl Clone();
// Token: 0x0600263C RID: 9788
[Token(Token = "0x600263C")]
[Address(Slot = "7")]
public abstract string GetIssuerName(bool legacyV1Mode);
// Token: 0x0600263D RID: 9789
[Token(Token = "0x600263D")]
[Address(Slot = "8")]
public abstract string GetSubjectName(bool legacyV1Mode);
// Token: 0x0600263E RID: 9790
[Token(Token = "0x600263E")]
[Address(Slot = "9")]
public abstract byte[] GetRawCertData();
// Token: 0x0600263F RID: 9791
[Token(Token = "0x600263F")]
[Address(Slot = "10")]
public abstract DateTime GetValidFrom();
// Token: 0x06002640 RID: 9792
[Token(Token = "0x6002640")]
[Address(Slot = "11")]
public abstract DateTime GetValidUntil();
// Token: 0x06002641 RID: 9793 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002641")]
[Address(RVA = "0xD1DF50", Offset = "0xD1CF50", VA = "0x180D1DF50")]
public byte[] GetCertHash()
{
return null;
}
// Token: 0x06002642 RID: 9794
[Token(Token = "0x6002642")]
[Address(Slot = "12")]
protected abstract byte[] GetCertHash(bool lazy);
// Token: 0x06002643 RID: 9795 RVA: 0x000179B8 File Offset: 0x00015BB8
[Token(Token = "0x6002643")]
[Address(RVA = "0xD1DFD0", Offset = "0xD1CFD0", VA = "0x180D1DFD0", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
// Token: 0x06002644 RID: 9796
[Token(Token = "0x6002644")]
[Address(Slot = "13")]
public abstract bool Equals(X509CertificateImpl other, out bool result);
// Token: 0x06002645 RID: 9797
[Token(Token = "0x6002645")]
[Address(Slot = "14")]
public abstract byte[] GetPublicKey();
// Token: 0x06002646 RID: 9798
[Token(Token = "0x6002646")]
[Address(Slot = "15")]
public abstract byte[] GetSerialNumber();
// Token: 0x06002647 RID: 9799
[Token(Token = "0x6002647")]
[Address(Slot = "16")]
public abstract string ToString(bool full);
// Token: 0x06002648 RID: 9800 RVA: 0x000179D0 File Offset: 0x00015BD0
[Token(Token = "0x6002648")]
[Address(RVA = "0xD1DD40", Offset = "0xD1CD40", VA = "0x180D1DD40", Slot = "0")]
public override bool Equals(object obj)
{
return default(bool);
}
// Token: 0x06002649 RID: 9801 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002649")]
[Address(RVA = "0xD1DCD0", Offset = "0xD1CCD0", VA = "0x180D1DCD0", Slot = "4")]
public void Dispose()
{
}
// Token: 0x0600264A RID: 9802 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600264A")]
[Address(RVA = "0x9BEAD0", Offset = "0x9BDAD0", VA = "0x1809BEAD0", Slot = "17")]
protected virtual void Dispose(bool disposing)
{
}
// Token: 0x0600264B RID: 9803 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600264B")]
[Address(RVA = "0xD1DED0", Offset = "0xD1CED0", VA = "0x180D1DED0", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x0600264C RID: 9804 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600264C")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected X509CertificateImpl()
{
}
// Token: 0x0400154A RID: 5450
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400154A")]
private byte[] cachedCertificateHash;
}
}
@@ -0,0 +1,131 @@
using System;
using Cpp2IlInjected;
using Mono.Security.X509;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x0200044F RID: 1103
[Token(Token = "0x200044F")]
internal sealed class X509CertificateImplMono : X509CertificateImpl
{
// Token: 0x0600264D RID: 9805 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600264D")]
[Address(RVA = "0x5AE3B0", Offset = "0x5AD3B0", VA = "0x1805AE3B0")]
public X509CertificateImplMono(X509Certificate x509)
{
}
// Token: 0x1700057A RID: 1402
// (get) Token: 0x0600264E RID: 9806 RVA: 0x000179E8 File Offset: 0x00015BE8
[Token(Token = "0x1700057A")]
public override bool IsValid
{
[Token(Token = "0x600264E")]
[Address(RVA = "0x5EFE20", Offset = "0x5EEE20", VA = "0x1805EFE20", Slot = "5")]
get
{
return default(bool);
}
}
// Token: 0x0600264F RID: 9807 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600264F")]
[Address(RVA = "0xD1D4E0", Offset = "0xD1C4E0", VA = "0x180D1D4E0", Slot = "6")]
public override X509CertificateImpl Clone()
{
return null;
}
// Token: 0x06002650 RID: 9808 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002650")]
[Address(RVA = "0xD1D630", Offset = "0xD1C630", VA = "0x180D1D630", Slot = "7")]
public override string GetIssuerName(bool legacyV1Mode)
{
return null;
}
// Token: 0x06002651 RID: 9809 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002651")]
[Address(RVA = "0xD1D8B0", Offset = "0xD1C8B0", VA = "0x180D1D8B0", Slot = "8")]
public override string GetSubjectName(bool legacyV1Mode)
{
return null;
}
// Token: 0x06002652 RID: 9810 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002652")]
[Address(RVA = "0xD1D7B0", Offset = "0xD1C7B0", VA = "0x180D1D7B0", Slot = "9")]
public override byte[] GetRawCertData()
{
return null;
}
// Token: 0x06002653 RID: 9811 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002653")]
[Address(RVA = "0xD1D590", Offset = "0xD1C590", VA = "0x180D1D590", Slot = "12")]
protected override byte[] GetCertHash(bool lazy)
{
return null;
}
// Token: 0x06002654 RID: 9812 RVA: 0x00017A00 File Offset: 0x00015C00
[Token(Token = "0x6002654")]
[Address(RVA = "0xD1D9B0", Offset = "0xD1C9B0", VA = "0x180D1D9B0", Slot = "10")]
public override DateTime GetValidFrom()
{
return default(DateTime);
}
// Token: 0x06002655 RID: 9813 RVA: 0x00017A18 File Offset: 0x00015C18
[Token(Token = "0x6002655")]
[Address(RVA = "0xD1DA30", Offset = "0xD1CA30", VA = "0x180D1DA30", Slot = "11")]
public override DateTime GetValidUntil()
{
return default(DateTime);
}
// Token: 0x06002656 RID: 9814 RVA: 0x00017A30 File Offset: 0x00015C30
[Token(Token = "0x6002656")]
[Address(RVA = "0xC8AB80", Offset = "0xC89B80", VA = "0x180C8AB80", Slot = "13")]
public override bool Equals(X509CertificateImpl other, out bool result)
{
return default(bool);
}
// Token: 0x06002657 RID: 9815 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002657")]
[Address(RVA = "0xD1D730", Offset = "0xD1C730", VA = "0x180D1D730", Slot = "14")]
public override byte[] GetPublicKey()
{
return null;
}
// Token: 0x06002658 RID: 9816 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002658")]
[Address(RVA = "0xD1D830", Offset = "0xD1C830", VA = "0x180D1D830", Slot = "15")]
public override byte[] GetSerialNumber()
{
return null;
}
// Token: 0x06002659 RID: 9817 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002659")]
[Address(RVA = "0xD1DAB0", Offset = "0xD1CAB0", VA = "0x180D1DAB0", Slot = "16")]
public override string ToString(bool full)
{
return null;
}
// Token: 0x0600265A RID: 9818 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600265A")]
[Address(RVA = "0x8114D0", Offset = "0x8104D0", VA = "0x1808114D0", Slot = "17")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x0400154B RID: 5451
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400154B")]
private X509Certificate x509;
}
}
@@ -0,0 +1,117 @@
using System;
using Cpp2IlInjected;
using Mono.Security.X509;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x02000450 RID: 1104
[Token(Token = "0x2000450")]
internal static class X509Helper
{
// Token: 0x0600265B RID: 9819 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600265B")]
[Address(RVA = "0xD1F700", Offset = "0xD1E700", VA = "0x180D1F700")]
internal static void InstallNativeHelper(INativeCertificateHelper helper)
{
}
// Token: 0x0600265C RID: 9820 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600265C")]
[Address(RVA = "0xD1F3F0", Offset = "0xD1E3F0", VA = "0x180D1F3F0")]
private static X509CertificateImpl Import(byte[] rawData)
{
return null;
}
// Token: 0x0600265D RID: 9821 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600265D")]
[Address(RVA = "0xD1F5D0", Offset = "0xD1E5D0", VA = "0x180D1F5D0")]
public static X509CertificateImpl InitFromCertificate(X509Certificate cert)
{
return null;
}
// Token: 0x0600265E RID: 9822 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600265E")]
[Address(RVA = "0xD1F4D0", Offset = "0xD1E4D0", VA = "0x180D1F4D0")]
public static X509CertificateImpl InitFromCertificate(X509CertificateImpl impl)
{
return null;
}
// Token: 0x0600265F RID: 9823 RVA: 0x00017A48 File Offset: 0x00015C48
[Token(Token = "0x600265F")]
[Address(RVA = "0xC8FDE0", Offset = "0xC8EDE0", VA = "0x180C8FDE0")]
public static bool IsValid(X509CertificateImpl impl)
{
return default(bool);
}
// Token: 0x06002660 RID: 9824 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002660")]
[Address(RVA = "0xD1F930", Offset = "0xD1E930", VA = "0x180D1F930")]
internal static void ThrowIfContextInvalid(X509CertificateImpl impl)
{
}
// Token: 0x06002661 RID: 9825 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002661")]
[Address(RVA = "0xD1EE60", Offset = "0xD1DE60", VA = "0x180D1EE60")]
internal static Exception GetInvalidContextException()
{
return null;
}
// Token: 0x06002662 RID: 9826 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002662")]
[Address(RVA = "0xD1EFC0", Offset = "0xD1DFC0", VA = "0x180D1EFC0")]
internal static X509Certificate ImportPkcs12(byte[] rawData, string password)
{
return null;
}
// Token: 0x06002663 RID: 9827 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002663")]
[Address(RVA = "0xD1F750", Offset = "0xD1E750", VA = "0x180D1F750")]
private static byte[] PEM(string type, byte[] data)
{
return null;
}
// Token: 0x06002664 RID: 9828 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002664")]
[Address(RVA = "0xD1EDC0", Offset = "0xD1DDC0", VA = "0x180D1EDC0")]
private static byte[] ConvertData(byte[] data)
{
return null;
}
// Token: 0x06002665 RID: 9829 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002665")]
[Address(RVA = "0xD1EED0", Offset = "0xD1DED0", VA = "0x180D1EED0")]
private static X509CertificateImpl ImportCore(byte[] rawData)
{
return null;
}
// Token: 0x06002666 RID: 9830 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002666")]
[Address(RVA = "0xD1F400", Offset = "0xD1E400", VA = "0x180D1F400")]
public static X509CertificateImpl Import(byte[] rawData, string password, X509KeyStorageFlags keyStorageFlags)
{
return null;
}
// Token: 0x06002667 RID: 9831 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002667")]
[Address(RVA = "0xD1F990", Offset = "0xD1E990", VA = "0x180D1F990")]
public static string ToHexString(byte[] data)
{
return null;
}
// Token: 0x0400154C RID: 5452
[Token(Token = "0x400154C")]
private static INativeCertificateHelper nativeHelper;
}
}
@@ -0,0 +1,41 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Defines where and how to import the private key of an X.509 certificate.</summary>
// Token: 0x0200044A RID: 1098
[Token(Token = "0x200044A")]
[Flags]
public enum X509KeyStorageFlags
{
/// <summary>The default key set is used. The user key set is usually the default.</summary>
// Token: 0x04001532 RID: 5426
[Token(Token = "0x4001532")]
DefaultKeySet = 0,
/// <summary>Private keys are stored in the current user store rather than the local computer store. This occurs even if the certificate specifies that the keys should go in the local computer store.</summary>
// Token: 0x04001533 RID: 5427
[Token(Token = "0x4001533")]
UserKeySet = 1,
/// <summary>Private keys are stored in the local computer store rather than the current user store.</summary>
// Token: 0x04001534 RID: 5428
[Token(Token = "0x4001534")]
MachineKeySet = 2,
/// <summary>Imported keys are marked as exportable.</summary>
// Token: 0x04001535 RID: 5429
[Token(Token = "0x4001535")]
Exportable = 4,
/// <summary>Notify the user through a dialog box or other method that the key is accessed. The Cryptographic Service Provider (CSP) in use defines the precise behavior.</summary>
// Token: 0x04001536 RID: 5430
[Token(Token = "0x4001536")]
UserProtected = 8,
/// <summary>The key associated with a PFX file is persisted when importing a certificate.</summary>
// Token: 0x04001537 RID: 5431
[Token(Token = "0x4001537")]
PersistKeySet = 16,
/// <summary>The key associated with a PFX file is created in memory and not persisted on disk when importing a certificate.</summary>
// Token: 0x04001538 RID: 5432
[Token(Token = "0x4001538")]
EphemeralKeySet = 32
}
}