101 lines
4.3 KiB
C#
101 lines
4.3 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
using System.Security.Cryptography;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Reflection
|
|
{
|
|
/// <summary>Encapsulates access to a public or private key pair used to sign strong name assemblies.</summary>
|
|
// Token: 0x02000263 RID: 611
|
|
[Token(Token = "0x2000263")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class StrongNameKeyPair : ISerializable, IDeserializationCallback
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.StrongNameKeyPair" /> class, building the key pair from a <see langword="byte" /> array.</summary>
|
|
/// <param name="keyPairArray">An array of type <see langword="byte" /> containing the key pair.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="keyPairArray" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
// Token: 0x0600161E RID: 5662 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600161E")]
|
|
[Address(RVA = "0x2960160", Offset = "0x295EF60", VA = "0x182960160")]
|
|
public StrongNameKeyPair(byte[] keyPairArray)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.StrongNameKeyPair" /> class, building the key pair from serialized data.</summary>
|
|
/// <param name="info">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object that holds the serialized object data.</param>
|
|
/// <param name="context">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> object that contains contextual information about the source or destination.</param>
|
|
// Token: 0x0600161F RID: 5663 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600161F")]
|
|
[Address(RVA = "0x295FFF0", Offset = "0x295EDF0", VA = "0x18295FFF0")]
|
|
protected StrongNameKeyPair(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with all the data required to reinstantiate the current <see cref="T:System.Reflection.StrongNameKeyPair" /> object.</summary>
|
|
/// <param name="info">The object to be populated with serialization information.</param>
|
|
/// <param name="context">The destination context of the serialization.</param>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="info" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06001620 RID: 5664 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001620")]
|
|
[Address(RVA = "0x295FEE0", Offset = "0x295ECE0", VA = "0x18295FEE0", Slot = "4")]
|
|
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Runs when the entire object graph has been deserialized.</summary>
|
|
/// <param name="sender">The object that initiated the callback.</param>
|
|
// Token: 0x06001621 RID: 5665 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001621")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "5")]
|
|
void IDeserializationCallback.OnDeserialization(object sender)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001622 RID: 5666 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001622")]
|
|
[Address(RVA = "0x295FD50", Offset = "0x295EB50", VA = "0x18295FD50")]
|
|
private RSA GetRSA()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06001623 RID: 5667 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001623")]
|
|
[Address(RVA = "0x295FDE0", Offset = "0x295EBE0", VA = "0x18295FDE0")]
|
|
private void LoadKey(byte[] key)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000B73 RID: 2931
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000B73")]
|
|
private byte[] _publicKey;
|
|
|
|
// Token: 0x04000B74 RID: 2932
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000B74")]
|
|
private string _keyPairContainer;
|
|
|
|
// Token: 0x04000B75 RID: 2933
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000B75")]
|
|
private bool _keyPairExported;
|
|
|
|
// Token: 0x04000B76 RID: 2934
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000B76")]
|
|
private byte[] _keyPairArray;
|
|
|
|
// Token: 0x04000B77 RID: 2935
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000B77")]
|
|
[NonSerialized]
|
|
private RSA _rsa;
|
|
}
|
|
}
|