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: 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;
|
|
}
|
|
}
|