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: 0x0200026A RID: 618
|
|
[Token(Token = "0x200026A")]
|
|
[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: 0x0600165D RID: 5725 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600165D")]
|
|
[Address(RVA = "0x30CC9B0", Offset = "0x30CB9B0", VA = "0x1830CC9B0")]
|
|
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: 0x0600165E RID: 5726 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600165E")]
|
|
[Address(RVA = "0x30CC840", Offset = "0x30CB840", VA = "0x1830CC840")]
|
|
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: 0x0600165F RID: 5727 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600165F")]
|
|
[Address(RVA = "0x30CC730", Offset = "0x30CB730", VA = "0x1830CC730", 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: 0x06001660 RID: 5728 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001660")]
|
|
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "5")]
|
|
void IDeserializationCallback.OnDeserialization(object sender)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001661 RID: 5729 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001661")]
|
|
[Address(RVA = "0x30CC5A0", Offset = "0x30CB5A0", VA = "0x1830CC5A0")]
|
|
private RSA GetRSA()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06001662 RID: 5730 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001662")]
|
|
[Address(RVA = "0x30CC630", Offset = "0x30CB630", VA = "0x1830CC630")]
|
|
private void LoadKey(byte[] key)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000B7D RID: 2941
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000B7D")]
|
|
private byte[] _publicKey;
|
|
|
|
// Token: 0x04000B7E RID: 2942
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000B7E")]
|
|
private string _keyPairContainer;
|
|
|
|
// Token: 0x04000B7F RID: 2943
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000B7F")]
|
|
private bool _keyPairExported;
|
|
|
|
// Token: 0x04000B80 RID: 2944
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000B80")]
|
|
private byte[] _keyPairArray;
|
|
|
|
// Token: 0x04000B81 RID: 2945
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000B81")]
|
|
[NonSerialized]
|
|
private RSA _rsa;
|
|
}
|
|
}
|