129 lines
4.1 KiB
C#
129 lines
4.1 KiB
C#
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: 0x020001DE RID: 478
|
|
[Token(Token = "0x20001DE")]
|
|
public sealed class PublicKey
|
|
{
|
|
// Token: 0x06000C66 RID: 3174 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000C66")]
|
|
[Address(RVA = "0x504400", Offset = "0x503200", VA = "0x180504400")]
|
|
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: 0x17000241 RID: 577
|
|
// (get) Token: 0x06000C67 RID: 3175 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000241")]
|
|
public AsnEncodedData EncodedKeyValue
|
|
{
|
|
[Token(Token = "0x6000C67")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
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: 0x17000242 RID: 578
|
|
// (get) Token: 0x06000C68 RID: 3176 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000242")]
|
|
public AsnEncodedData EncodedParameters
|
|
{
|
|
[Token(Token = "0x6000C68")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
|
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: 0x17000243 RID: 579
|
|
// (get) Token: 0x06000C69 RID: 3177 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000243")]
|
|
public AsymmetricAlgorithm Key
|
|
{
|
|
[Token(Token = "0x6000C69")]
|
|
[Address(RVA = "0x5048F0", Offset = "0x5036F0", VA = "0x1805048F0")]
|
|
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: 0x17000244 RID: 580
|
|
// (get) Token: 0x06000C6A RID: 3178 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000244")]
|
|
public Oid Oid
|
|
{
|
|
[Token(Token = "0x6000C6A")]
|
|
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000C6B RID: 3179 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000C6B")]
|
|
[Address(RVA = "0x504300", Offset = "0x503100", VA = "0x180504300")]
|
|
private static byte[] GetUnsignedBigInteger(byte[] integer)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000C6C RID: 3180 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000C6C")]
|
|
[Address(RVA = "0x503C40", Offset = "0x502A40", VA = "0x180503C40")]
|
|
internal static DSA DecodeDSA(byte[] rawPublicKey, byte[] rawParameters)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000C6D RID: 3181 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000C6D")]
|
|
[Address(RVA = "0x504030", Offset = "0x502E30", VA = "0x180504030")]
|
|
internal static RSA DecodeRSA(byte[] rawPublicKey)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x040006D1 RID: 1745
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40006D1")]
|
|
private AsymmetricAlgorithm _key;
|
|
|
|
// Token: 0x040006D2 RID: 1746
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40006D2")]
|
|
private AsnEncodedData _keyValue;
|
|
|
|
// Token: 0x040006D3 RID: 1747
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40006D3")]
|
|
private AsnEncodedData _params;
|
|
|
|
// Token: 0x040006D4 RID: 1748
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40006D4")]
|
|
private Oid _oid;
|
|
|
|
// Token: 0x040006D5 RID: 1749
|
|
[Token(Token = "0x40006D5")]
|
|
private static byte[] Empty;
|
|
}
|
|
}
|