This commit is contained in:
niko
2026-04-10 22:50:51 +02:00
parent 6d1607d5a2
commit f18d448581
17033 changed files with 2863270 additions and 0 deletions
@@ -0,0 +1,15 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x02000430 RID: 1072
[Token(Token = "0x2000430")]
internal interface INativeCertificateHelper
{
// Token: 0x06002410 RID: 9232
[Token(Token = "0x6002410")]
[Address(Slot = "0")]
X509CertificateImpl Import(X509Certificate cert);
}
}
@@ -0,0 +1,47 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x0200042F RID: 1071
[Token(Token = "0x200042F")]
internal enum OidGroup
{
// Token: 0x04001477 RID: 5239
[Token(Token = "0x4001477")]
AllGroups,
// Token: 0x04001478 RID: 5240
[Token(Token = "0x4001478")]
HashAlgorithm,
// Token: 0x04001479 RID: 5241
[Token(Token = "0x4001479")]
EncryptionAlgorithm,
// Token: 0x0400147A RID: 5242
[Token(Token = "0x400147A")]
PublicKeyAlgorithm,
// Token: 0x0400147B RID: 5243
[Token(Token = "0x400147B")]
SignatureAlgorithm,
// Token: 0x0400147C RID: 5244
[Token(Token = "0x400147C")]
Attribute,
// Token: 0x0400147D RID: 5245
[Token(Token = "0x400147D")]
ExtensionOrAttribute,
// Token: 0x0400147E RID: 5246
[Token(Token = "0x400147E")]
EnhancedKeyUsage,
// Token: 0x0400147F RID: 5247
[Token(Token = "0x400147F")]
Policy,
// Token: 0x04001480 RID: 5248
[Token(Token = "0x4001480")]
Template,
// Token: 0x04001481 RID: 5249
[Token(Token = "0x4001481")]
KeyDerivationFunction,
// Token: 0x04001482 RID: 5250
[Token(Token = "0x4001482")]
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: 0x02000431 RID: 1073
[Token(Token = "0x2000431")]
[MonoTODO]
[ComVisible(true)]
[MonoTODO("X509ContentType.SerializedCert isn't supported (anywhere in the class)")]
[Serializable]
public class X509Certificate : IDeserializationCallback, ISerializable, IDisposable
{
// Token: 0x06002411 RID: 9233 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002411")]
[Address(RVA = "0x2E07030", Offset = "0x2E05E30", VA = "0x182E07030")]
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: 0x06002412 RID: 9234 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002412")]
[Address(RVA = "0x2E06CC0", Offset = "0x2E05AC0", VA = "0x182E06CC0")]
public X509Certificate(byte[] data)
{
}
// Token: 0x06002413 RID: 9235 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002413")]
[Address(RVA = "0x2E06EB0", Offset = "0x2E05CB0", VA = "0x182E06EB0")]
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: 0x06002414 RID: 9236 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002414")]
[Address(RVA = "0x2E06D10", Offset = "0x2E05B10", VA = "0x182E06D10")]
public X509Certificate(X509Certificate cert)
{
}
// Token: 0x06002415 RID: 9237 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002415")]
[Address(RVA = "0x2E06A60", Offset = "0x2E05860", VA = "0x182E06A60")]
internal void ImportHandle(X509CertificateImpl impl)
{
}
// Token: 0x170004FE RID: 1278
// (get) Token: 0x06002416 RID: 9238 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004FE")]
internal X509CertificateImpl Impl
{
[Token(Token = "0x6002416")]
[Address(RVA = "0x2E07090", Offset = "0x2E05E90", VA = "0x182E07090")]
get
{
return null;
}
}
// Token: 0x170004FF RID: 1279
// (get) Token: 0x06002417 RID: 9239 RVA: 0x00015588 File Offset: 0x00013788
[Token(Token = "0x170004FF")]
internal bool IsValid
{
[Token(Token = "0x6002417")]
[Address(RVA = "0x2E07100", Offset = "0x2E05F00", VA = "0x182E07100")]
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: 0x06002418 RID: 9240 RVA: 0x000155A0 File Offset: 0x000137A0
[Token(Token = "0x6002418")]
[Address(RVA = "0x2E06660", Offset = "0x2E05460", VA = "0x182E06660", 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: 0x06002419 RID: 9241 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002419")]
[Address(RVA = "0x2E06770", Offset = "0x2E05570", VA = "0x182E06770", 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: 0x0600241A RID: 9242 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600241A")]
[Address(RVA = "0x2E06740", Offset = "0x2E05540", VA = "0x182E06740", 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: 0x0600241B RID: 9243 RVA: 0x000155B8 File Offset: 0x000137B8
[Token(Token = "0x600241B")]
[Address(RVA = "0x2E067F0", Offset = "0x2E055F0", VA = "0x182E067F0", 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: 0x0600241C RID: 9244 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600241C")]
[Address(RVA = "0x2E06850", Offset = "0x2E05650", VA = "0x182E06850", 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: 0x0600241D RID: 9245 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600241D")]
[Address(RVA = "0x2E068E0", Offset = "0x2E056E0", VA = "0x182E068E0", 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: 0x0600241E RID: 9246 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600241E")]
[Address(RVA = "0x2E069D0", Offset = "0x2E057D0", VA = "0x182E069D0", 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: 0x0600241F RID: 9247 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600241F")]
[Address(RVA = "0x2E06970", Offset = "0x2E05770", VA = "0x182E06970", 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: 0x06002420 RID: 9248 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002420")]
[Address(RVA = "0x2E06C50", Offset = "0x2E05A50", VA = "0x182E06C50", 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: 0x06002421 RID: 9249 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002421")]
[Address(RVA = "0x2E06C60", Offset = "0x2E05A60", VA = "0x182E06C60", 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: 0x06002422 RID: 9250 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002422")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
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: 0x06002423 RID: 9251 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002423")]
[Address(RVA = "0x2E06F40", Offset = "0x2E05D40", VA = "0x182E06F40")]
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: 0x17000500 RID: 1280
// (get) Token: 0x06002424 RID: 9252 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000500")]
public string Issuer
{
[Token(Token = "0x6002424")]
[Address(RVA = "0x2E07120", Offset = "0x2E05F20", VA = "0x182E07120")]
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: 0x17000501 RID: 1281
// (get) Token: 0x06002425 RID: 9253 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000501")]
public string Subject
{
[Token(Token = "0x6002425")]
[Address(RVA = "0x2E071C0", Offset = "0x2E05FC0", VA = "0x182E071C0")]
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: 0x06002426 RID: 9254 RVA: 0x000155D0 File Offset: 0x000137D0
[Token(Token = "0x6002426")]
[Address(RVA = "0x2E065C0", Offset = "0x2E053C0", VA = "0x182E065C0", 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: 0x06002427 RID: 9255 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002427")]
[Address(RVA = "0x2E06A90", Offset = "0x2E05890", VA = "0x182E06A90", 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: 0x06002428 RID: 9256 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002428")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", 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: 0x06002429 RID: 9257 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002429")]
[Address(RVA = "0x2E06B90", Offset = "0x2E05990", VA = "0x182E06B90", 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: 0x0600242A RID: 9258 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600242A")]
[Address(RVA = "0x2572990", Offset = "0x2571790", VA = "0x182572990", 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: 0x0600242B RID: 9259 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600242B")]
[Address(RVA = "0x2E065A0", Offset = "0x2E053A0", VA = "0x182E065A0", 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: 0x0600242C RID: 9260 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600242C")]
[Address(RVA = "0x2E06AF0", Offset = "0x2E058F0", VA = "0x182E06AF0", Slot = "17")]
[ComVisible(false)]
public virtual void Reset()
{
}
// Token: 0x04001483 RID: 5251
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001483")]
private X509CertificateImpl impl;
// Token: 0x04001484 RID: 5252
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001484")]
private bool hideDates;
// Token: 0x04001485 RID: 5253
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001485")]
private string issuer_name;
// Token: 0x04001486 RID: 5254
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001486")]
private string subject_name;
}
}
@@ -0,0 +1,139 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x02000432 RID: 1074
[Token(Token = "0x2000432")]
internal abstract class X509CertificateImpl : IDisposable
{
// Token: 0x17000502 RID: 1282
// (get) Token: 0x0600242D RID: 9261
[Token(Token = "0x17000502")]
public abstract bool IsValid
{
[Token(Token = "0x600242D")]
[Address(Slot = "5")]
get;
}
// Token: 0x0600242E RID: 9262 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600242E")]
[Address(RVA = "0x2E06540", Offset = "0x2E05340", VA = "0x182E06540")]
protected void ThrowIfContextInvalid()
{
}
// Token: 0x0600242F RID: 9263
[Token(Token = "0x600242F")]
[Address(Slot = "6")]
public abstract X509CertificateImpl Clone();
// Token: 0x06002430 RID: 9264
[Token(Token = "0x6002430")]
[Address(Slot = "7")]
public abstract string GetIssuerName(bool legacyV1Mode);
// Token: 0x06002431 RID: 9265
[Token(Token = "0x6002431")]
[Address(Slot = "8")]
public abstract string GetSubjectName(bool legacyV1Mode);
// Token: 0x06002432 RID: 9266
[Token(Token = "0x6002432")]
[Address(Slot = "9")]
public abstract byte[] GetRawCertData();
// Token: 0x06002433 RID: 9267
[Token(Token = "0x6002433")]
[Address(Slot = "10")]
public abstract DateTime GetValidFrom();
// Token: 0x06002434 RID: 9268
[Token(Token = "0x6002434")]
[Address(Slot = "11")]
public abstract DateTime GetValidUntil();
// Token: 0x06002435 RID: 9269 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002435")]
[Address(RVA = "0x2E063F0", Offset = "0x2E051F0", VA = "0x182E063F0")]
public byte[] GetCertHash()
{
return null;
}
// Token: 0x06002436 RID: 9270
[Token(Token = "0x6002436")]
[Address(Slot = "12")]
protected abstract byte[] GetCertHash(bool lazy);
// Token: 0x06002437 RID: 9271 RVA: 0x000155E8 File Offset: 0x000137E8
[Token(Token = "0x6002437")]
[Address(RVA = "0x2E06470", Offset = "0x2E05270", VA = "0x182E06470", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
// Token: 0x06002438 RID: 9272
[Token(Token = "0x6002438")]
[Address(Slot = "13")]
public abstract bool Equals(X509CertificateImpl other, out bool result);
// Token: 0x06002439 RID: 9273
[Token(Token = "0x6002439")]
[Address(Slot = "14")]
public abstract byte[] GetPublicKey();
// Token: 0x0600243A RID: 9274
[Token(Token = "0x600243A")]
[Address(Slot = "15")]
public abstract byte[] GetSerialNumber();
// Token: 0x0600243B RID: 9275
[Token(Token = "0x600243B")]
[Address(Slot = "16")]
public abstract string ToString(bool full);
// Token: 0x0600243C RID: 9276 RVA: 0x00015600 File Offset: 0x00013800
[Token(Token = "0x600243C")]
[Address(RVA = "0x2E061E0", Offset = "0x2E04FE0", VA = "0x182E061E0", Slot = "0")]
public override bool Equals(object obj)
{
return default(bool);
}
// Token: 0x0600243D RID: 9277 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600243D")]
[Address(RVA = "0x2E06170", Offset = "0x2E04F70", VA = "0x182E06170", Slot = "4")]
public void Dispose()
{
}
// Token: 0x0600243E RID: 9278 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600243E")]
[Address(RVA = "0x4ECBB0", Offset = "0x4EB9B0", VA = "0x1804ECBB0", Slot = "17")]
protected virtual void Dispose(bool disposing)
{
}
// Token: 0x0600243F RID: 9279 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600243F")]
[Address(RVA = "0x2E06370", Offset = "0x2E05170", VA = "0x182E06370", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x06002440 RID: 9280 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002440")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected X509CertificateImpl()
{
}
// Token: 0x04001487 RID: 5255
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001487")]
private byte[] cachedCertificateHash;
}
}
@@ -0,0 +1,131 @@
using System;
using Cpp2IlInjected;
using Mono.Security.X509;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x02000433 RID: 1075
[Token(Token = "0x2000433")]
internal sealed class X509CertificateImplMono : X509CertificateImpl
{
// Token: 0x06002441 RID: 9281 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002441")]
[Address(RVA = "0x445BC0", Offset = "0x4449C0", VA = "0x180445BC0")]
public X509CertificateImplMono(X509Certificate x509)
{
}
// Token: 0x17000503 RID: 1283
// (get) Token: 0x06002442 RID: 9282 RVA: 0x00015618 File Offset: 0x00013818
[Token(Token = "0x17000503")]
public override bool IsValid
{
[Token(Token = "0x6002442")]
[Address(RVA = "0x1227D50", Offset = "0x1226B50", VA = "0x181227D50", Slot = "5")]
get
{
return default(bool);
}
}
// Token: 0x06002443 RID: 9283 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002443")]
[Address(RVA = "0x2E05980", Offset = "0x2E04780", VA = "0x182E05980", Slot = "6")]
public override X509CertificateImpl Clone()
{
return null;
}
// Token: 0x06002444 RID: 9284 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002444")]
[Address(RVA = "0x2E05AD0", Offset = "0x2E048D0", VA = "0x182E05AD0", Slot = "7")]
public override string GetIssuerName(bool legacyV1Mode)
{
return null;
}
// Token: 0x06002445 RID: 9285 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002445")]
[Address(RVA = "0x2E05D50", Offset = "0x2E04B50", VA = "0x182E05D50", Slot = "8")]
public override string GetSubjectName(bool legacyV1Mode)
{
return null;
}
// Token: 0x06002446 RID: 9286 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002446")]
[Address(RVA = "0x2E05C50", Offset = "0x2E04A50", VA = "0x182E05C50", Slot = "9")]
public override byte[] GetRawCertData()
{
return null;
}
// Token: 0x06002447 RID: 9287 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002447")]
[Address(RVA = "0x2E05A30", Offset = "0x2E04830", VA = "0x182E05A30", Slot = "12")]
protected override byte[] GetCertHash(bool lazy)
{
return null;
}
// Token: 0x06002448 RID: 9288 RVA: 0x00015630 File Offset: 0x00013830
[Token(Token = "0x6002448")]
[Address(RVA = "0x2E05E50", Offset = "0x2E04C50", VA = "0x182E05E50", Slot = "10")]
public override DateTime GetValidFrom()
{
return default(DateTime);
}
// Token: 0x06002449 RID: 9289 RVA: 0x00015648 File Offset: 0x00013848
[Token(Token = "0x6002449")]
[Address(RVA = "0x2E05ED0", Offset = "0x2E04CD0", VA = "0x182E05ED0", Slot = "11")]
public override DateTime GetValidUntil()
{
return default(DateTime);
}
// Token: 0x0600244A RID: 9290 RVA: 0x00015660 File Offset: 0x00013860
[Token(Token = "0x600244A")]
[Address(RVA = "0x5178B0", Offset = "0x5166B0", VA = "0x1805178B0", Slot = "13")]
public override bool Equals(X509CertificateImpl other, out bool result)
{
return default(bool);
}
// Token: 0x0600244B RID: 9291 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600244B")]
[Address(RVA = "0x2E05BD0", Offset = "0x2E049D0", VA = "0x182E05BD0", Slot = "14")]
public override byte[] GetPublicKey()
{
return null;
}
// Token: 0x0600244C RID: 9292 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600244C")]
[Address(RVA = "0x2E05CD0", Offset = "0x2E04AD0", VA = "0x182E05CD0", Slot = "15")]
public override byte[] GetSerialNumber()
{
return null;
}
// Token: 0x0600244D RID: 9293 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600244D")]
[Address(RVA = "0x2E05F50", Offset = "0x2E04D50", VA = "0x182E05F50", Slot = "16")]
public override string ToString(bool full)
{
return null;
}
// Token: 0x0600244E RID: 9294 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600244E")]
[Address(RVA = "0x1506400", Offset = "0x1505200", VA = "0x181506400", Slot = "17")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x04001488 RID: 5256
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001488")]
private X509Certificate x509;
}
}
@@ -0,0 +1,117 @@
using System;
using Cpp2IlInjected;
using Mono.Security.X509;
namespace System.Security.Cryptography.X509Certificates
{
// Token: 0x02000434 RID: 1076
[Token(Token = "0x2000434")]
internal static class X509Helper
{
// Token: 0x0600244F RID: 9295 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600244F")]
[Address(RVA = "0x2E07C70", Offset = "0x2E06A70", VA = "0x182E07C70")]
internal static void InstallNativeHelper(INativeCertificateHelper helper)
{
}
// Token: 0x06002450 RID: 9296 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002450")]
[Address(RVA = "0x2E07960", Offset = "0x2E06760", VA = "0x182E07960")]
private static X509CertificateImpl Import(byte[] rawData)
{
return null;
}
// Token: 0x06002451 RID: 9297 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002451")]
[Address(RVA = "0x2E07B40", Offset = "0x2E06940", VA = "0x182E07B40")]
public static X509CertificateImpl InitFromCertificate(X509Certificate cert)
{
return null;
}
// Token: 0x06002452 RID: 9298 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002452")]
[Address(RVA = "0x2E07A40", Offset = "0x2E06840", VA = "0x182E07A40")]
public static X509CertificateImpl InitFromCertificate(X509CertificateImpl impl)
{
return null;
}
// Token: 0x06002453 RID: 9299 RVA: 0x00015678 File Offset: 0x00013878
[Token(Token = "0x6002453")]
[Address(RVA = "0x51CB70", Offset = "0x51B970", VA = "0x18051CB70")]
public static bool IsValid(X509CertificateImpl impl)
{
return default(bool);
}
// Token: 0x06002454 RID: 9300 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002454")]
[Address(RVA = "0x2E07DD0", Offset = "0x2E06BD0", VA = "0x182E07DD0")]
internal static void ThrowIfContextInvalid(X509CertificateImpl impl)
{
}
// Token: 0x06002455 RID: 9301 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002455")]
[Address(RVA = "0x2E07410", Offset = "0x2E06210", VA = "0x182E07410")]
internal static Exception GetInvalidContextException()
{
return null;
}
// Token: 0x06002456 RID: 9302 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002456")]
[Address(RVA = "0x2E07570", Offset = "0x2E06370", VA = "0x182E07570")]
internal static X509Certificate ImportPkcs12(byte[] rawData, string password)
{
return null;
}
// Token: 0x06002457 RID: 9303 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002457")]
[Address(RVA = "0x2E07CC0", Offset = "0x2E06AC0", VA = "0x182E07CC0")]
private static byte[] PEM(string type, byte[] data)
{
return null;
}
// Token: 0x06002458 RID: 9304 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002458")]
[Address(RVA = "0x2E07260", Offset = "0x2E06060", VA = "0x182E07260")]
private static byte[] ConvertData(byte[] data)
{
return null;
}
// Token: 0x06002459 RID: 9305 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002459")]
[Address(RVA = "0x2E07480", Offset = "0x2E06280", VA = "0x182E07480")]
private static X509CertificateImpl ImportCore(byte[] rawData)
{
return null;
}
// Token: 0x0600245A RID: 9306 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600245A")]
[Address(RVA = "0x2E07970", Offset = "0x2E06770", VA = "0x182E07970")]
public static X509CertificateImpl Import(byte[] rawData, string password, X509KeyStorageFlags keyStorageFlags)
{
return null;
}
// Token: 0x0600245B RID: 9307 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600245B")]
[Address(RVA = "0x2E07E30", Offset = "0x2E06C30", VA = "0x182E07E30")]
public static string ToHexString(byte[] data)
{
return null;
}
// Token: 0x04001489 RID: 5257
[Token(Token = "0x4001489")]
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: 0x0200042E RID: 1070
[Token(Token = "0x200042E")]
[Flags]
public enum X509KeyStorageFlags
{
/// <summary>The default key set is used. The user key set is usually the default.</summary>
// Token: 0x0400146F RID: 5231
[Token(Token = "0x400146F")]
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: 0x04001470 RID: 5232
[Token(Token = "0x4001470")]
UserKeySet = 1,
/// <summary>Private keys are stored in the local computer store rather than the current user store.</summary>
// Token: 0x04001471 RID: 5233
[Token(Token = "0x4001471")]
MachineKeySet = 2,
/// <summary>Imported keys are marked as exportable.</summary>
// Token: 0x04001472 RID: 5234
[Token(Token = "0x4001472")]
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: 0x04001473 RID: 5235
[Token(Token = "0x4001473")]
UserProtected = 8,
/// <summary>The key associated with a PFX file is persisted when importing a certificate.</summary>
// Token: 0x04001474 RID: 5236
[Token(Token = "0x4001474")]
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: 0x04001475 RID: 5237
[Token(Token = "0x4001475")]
EphemeralKeySet = 32
}
}