101 lines
4.2 KiB
C#
101 lines
4.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Decrypts Optimal Asymmetric Encryption Padding (OAEP) key exchange data.</summary>
|
|
// Token: 0x02000422 RID: 1058
|
|
[Token(Token = "0x2000422")]
|
|
[ComVisible(true)]
|
|
public class RSAOAEPKeyExchangeDeformatter : AsymmetricKeyExchangeDeformatter
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter" /> class.</summary>
|
|
// Token: 0x060024D0 RID: 9424 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60024D0")]
|
|
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
|
|
public RSAOAEPKeyExchangeDeformatter()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter" /> 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: 0x060024D1 RID: 9425 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60024D1")]
|
|
[Address(RVA = "0x1024B20", Offset = "0x1023B20", VA = "0x181024B20")]
|
|
public RSAOAEPKeyExchangeDeformatter(AsymmetricAlgorithm key)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the parameters for the Optimal Asymmetric Encryption Padding (OAEP) key exchange.</summary>
|
|
/// <returns>An XML string containing the parameters of the OAEP key exchange operation.</returns>
|
|
// Token: 0x1700053F RID: 1343
|
|
// (get) Token: 0x060024D2 RID: 9426 RVA: 0x00002082 File Offset: 0x00000282
|
|
// (set) Token: 0x060024D3 RID: 9427 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700053F")]
|
|
public override string Parameters
|
|
{
|
|
[Token(Token = "0x60024D2")]
|
|
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "4")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60024D3")]
|
|
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "5")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Extracts secret information from the encrypted key exchange data.</summary>
|
|
/// <param name="rgbData">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.CryptographicException">The key exchange data verification has failed.</exception>
|
|
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The key is missing.</exception>
|
|
// Token: 0x060024D4 RID: 9428 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60024D4")]
|
|
[Address(RVA = "0x1024900", Offset = "0x1023900", VA = "0x181024900", Slot = "7")]
|
|
public override byte[] DecryptKeyExchange(byte[] rgbData)
|
|
{
|
|
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: 0x060024D5 RID: 9429 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60024D5")]
|
|
[Address(RVA = "0x1024A60", Offset = "0x1023A60", VA = "0x181024A60", Slot = "6")]
|
|
public override void SetKey(AsymmetricAlgorithm key)
|
|
{
|
|
}
|
|
|
|
// Token: 0x17000540 RID: 1344
|
|
// (get) Token: 0x060024D6 RID: 9430 RVA: 0x000172C8 File Offset: 0x000154C8
|
|
[Token(Token = "0x17000540")]
|
|
private bool OverridesDecrypt
|
|
{
|
|
[Token(Token = "0x60024D6")]
|
|
[Address(RVA = "0x1024BE0", Offset = "0x1023BE0", VA = "0x181024BE0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400147C RID: 5244
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400147C")]
|
|
private RSA _rsaKey;
|
|
|
|
// Token: 0x0400147D RID: 5245
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400147D")]
|
|
private bool? _rsaOverridesDecrypt;
|
|
}
|
|
}
|