172 lines
8.2 KiB
C#
172 lines
8.2 KiB
C#
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: 0x020001F6 RID: 502
|
|
[Token(Token = "0x20001F6")]
|
|
public sealed class X509SubjectKeyIdentifierExtension : X509Extension
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class.</summary>
|
|
// Token: 0x06000D11 RID: 3345 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000D11")]
|
|
[Address(RVA = "0x51E3E0", Offset = "0x51D1E0", VA = "0x18051E3E0")]
|
|
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: 0x06000D12 RID: 3346 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000D12")]
|
|
[Address(RVA = "0x51E0B0", Offset = "0x51CEB0", VA = "0x18051E0B0")]
|
|
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: 0x06000D13 RID: 3347 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000D13")]
|
|
[Address(RVA = "0x51DF50", Offset = "0x51CD50", VA = "0x18051DF50")]
|
|
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: 0x06000D14 RID: 3348 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000D14")]
|
|
[Address(RVA = "0x51E170", Offset = "0x51CF70", VA = "0x18051E170")]
|
|
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: 0x06000D15 RID: 3349 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000D15")]
|
|
[Address(RVA = "0x51E3C0", Offset = "0x51D1C0", VA = "0x18051E3C0")]
|
|
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: 0x06000D16 RID: 3350 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000D16")]
|
|
[Address(RVA = "0x51E470", Offset = "0x51D270", VA = "0x18051E470")]
|
|
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: 0x17000270 RID: 624
|
|
// (get) Token: 0x06000D17 RID: 3351 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000270")]
|
|
public string SubjectKeyIdentifier
|
|
{
|
|
[Token(Token = "0x6000D17")]
|
|
[Address(RVA = "0x51E800", Offset = "0x51D600", VA = "0x18051E800")]
|
|
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: 0x06000D18 RID: 3352 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000D18")]
|
|
[Address(RVA = "0x51D7A0", Offset = "0x51C5A0", VA = "0x18051D7A0", Slot = "4")]
|
|
public override void CopyFrom(AsnEncodedData asnEncodedData)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000D19 RID: 3353 RVA: 0x00006C48 File Offset: 0x00004E48
|
|
[Token(Token = "0x6000D19")]
|
|
[Address(RVA = "0x51DB00", Offset = "0x51C900", VA = "0x18051DB00")]
|
|
internal static byte FromHexChar(char c)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x06000D1A RID: 3354 RVA: 0x00006C60 File Offset: 0x00004E60
|
|
[Token(Token = "0x6000D1A")]
|
|
[Address(RVA = "0x51DB30", Offset = "0x51C930", VA = "0x18051DB30")]
|
|
internal static byte FromHexChars(char c1, char c2)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x06000D1B RID: 3355 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000D1B")]
|
|
[Address(RVA = "0x51DBB0", Offset = "0x51C9B0", VA = "0x18051DBB0")]
|
|
internal static byte[] FromHex(string hex)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000D1C RID: 3356 RVA: 0x00006C78 File Offset: 0x00004E78
|
|
[Token(Token = "0x6000D1C")]
|
|
[Address(RVA = "0x51D930", Offset = "0x51C730", VA = "0x18051D930")]
|
|
internal AsnDecodeStatus Decode(byte[] extension)
|
|
{
|
|
return AsnDecodeStatus.Ok;
|
|
}
|
|
|
|
// Token: 0x06000D1D RID: 3357 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000D1D")]
|
|
[Address(RVA = "0x51DA80", Offset = "0x51C880", VA = "0x18051DA80")]
|
|
internal byte[] Encode()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000D1E RID: 3358 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000D1E")]
|
|
[Address(RVA = "0x51DD30", Offset = "0x51CB30", VA = "0x18051DD30", Slot = "5")]
|
|
internal override string ToString(bool multiLine)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04000709 RID: 1801
|
|
[Token(Token = "0x4000709")]
|
|
internal const string oid = "2.5.29.14";
|
|
|
|
// Token: 0x0400070A RID: 1802
|
|
[Token(Token = "0x400070A")]
|
|
internal const string friendlyName = "Subject Key Identifier";
|
|
|
|
// Token: 0x0400070B RID: 1803
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400070B")]
|
|
private byte[] _subjectKeyIdentifier;
|
|
|
|
// Token: 0x0400070C RID: 1804
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400070C")]
|
|
private string _ski;
|
|
|
|
// Token: 0x0400070D RID: 1805
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x400070D")]
|
|
private AsnDecodeStatus _status;
|
|
}
|
|
}
|