126 lines
4.8 KiB
C#
126 lines
4.8 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Decrypts the PKCS #1 key exchange data.</summary>
|
|
// Token: 0x02000408 RID: 1032
|
|
[Token(Token = "0x2000408")]
|
|
[ComVisible(true)]
|
|
public class RSAPKCS1KeyExchangeDeformatter : AsymmetricKeyExchangeDeformatter
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter" /> class.</summary>
|
|
// Token: 0x060022D6 RID: 8918 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022D6")]
|
|
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
|
|
public RSAPKCS1KeyExchangeDeformatter()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter" /> class with the specified key.</summary>
|
|
/// <param name="key">The instance of the <see cref="T:System.Security.Cryptography.RSA" /> algorithm that holds the private key.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
|
// Token: 0x060022D7 RID: 8919 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022D7")]
|
|
[Address(RVA = "0x2DF2300", Offset = "0x2DF1100", VA = "0x182DF2300")]
|
|
public RSAPKCS1KeyExchangeDeformatter(AsymmetricAlgorithm key)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the random number generator algorithm to use in the creation of the key exchange.</summary>
|
|
/// <returns>The instance of a random number generator algorithm to use.</returns>
|
|
// Token: 0x170004CE RID: 1230
|
|
// (get) Token: 0x060022D8 RID: 8920 RVA: 0x00002082 File Offset: 0x00000282
|
|
// (set) Token: 0x060022D9 RID: 8921 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170004CE")]
|
|
public RandomNumberGenerator RNG
|
|
{
|
|
[Token(Token = "0x60022D8")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60022D9")]
|
|
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the parameters for the PKCS #1 key exchange.</summary>
|
|
/// <returns>An XML string containing the parameters of the PKCS #1 key exchange operation.</returns>
|
|
// Token: 0x170004CF RID: 1231
|
|
// (get) Token: 0x060022DA RID: 8922 RVA: 0x00002082 File Offset: 0x00000282
|
|
// (set) Token: 0x060022DB RID: 8923 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170004CF")]
|
|
public override string Parameters
|
|
{
|
|
[Token(Token = "0x60022DA")]
|
|
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "4")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60022DB")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "5")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Extracts secret information from the encrypted key exchange data.</summary>
|
|
/// <param name="rgbIn">The key exchange data within which the secret information is hidden.</param>
|
|
/// <returns>The secret information derived from the key exchange data.</returns>
|
|
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The key is missing.</exception>
|
|
// Token: 0x060022DC RID: 8924 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60022DC")]
|
|
[Address(RVA = "0x2DF2050", Offset = "0x2DF0E50", VA = "0x182DF2050", Slot = "7")]
|
|
public override byte[] DecryptKeyExchange(byte[] rgbIn)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Sets the private key to use for decrypting the secret information.</summary>
|
|
/// <param name="key">The instance of the <see cref="T:System.Security.Cryptography.RSA" /> algorithm that holds the private key.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
|
// Token: 0x060022DD RID: 8925 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022DD")]
|
|
[Address(RVA = "0x2DF2240", Offset = "0x2DF1040", VA = "0x182DF2240", Slot = "6")]
|
|
public override void SetKey(AsymmetricAlgorithm key)
|
|
{
|
|
}
|
|
|
|
// Token: 0x170004D0 RID: 1232
|
|
// (get) Token: 0x060022DE RID: 8926 RVA: 0x00014F28 File Offset: 0x00013128
|
|
[Token(Token = "0x170004D0")]
|
|
private bool OverridesDecrypt
|
|
{
|
|
[Token(Token = "0x60022DE")]
|
|
[Address(RVA = "0x2DF23C0", Offset = "0x2DF11C0", VA = "0x182DF23C0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x040013BF RID: 5055
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40013BF")]
|
|
private RSA _rsaKey;
|
|
|
|
// Token: 0x040013C0 RID: 5056
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40013C0")]
|
|
private bool? _rsaOverridesDecrypt;
|
|
|
|
// Token: 0x040013C1 RID: 5057
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40013C1")]
|
|
private RandomNumberGenerator RngValue;
|
|
}
|
|
}
|