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: 0x02000406 RID: 1030
|
|
[Token(Token = "0x2000406")]
|
|
[ComVisible(true)]
|
|
public class RSAOAEPKeyExchangeDeformatter : AsymmetricKeyExchangeDeformatter
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter" /> class.</summary>
|
|
// Token: 0x060022C4 RID: 8900 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022C4")]
|
|
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
|
|
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: 0x060022C5 RID: 8901 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022C5")]
|
|
[Address(RVA = "0x2DF17B0", Offset = "0x2DF05B0", VA = "0x182DF17B0")]
|
|
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: 0x170004C8 RID: 1224
|
|
// (get) Token: 0x060022C6 RID: 8902 RVA: 0x00002082 File Offset: 0x00000282
|
|
// (set) Token: 0x060022C7 RID: 8903 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170004C8")]
|
|
public override string Parameters
|
|
{
|
|
[Token(Token = "0x60022C6")]
|
|
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "4")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60022C7")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", 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: 0x060022C8 RID: 8904 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60022C8")]
|
|
[Address(RVA = "0x2DF1530", Offset = "0x2DF0330", VA = "0x182DF1530", 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: 0x060022C9 RID: 8905 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022C9")]
|
|
[Address(RVA = "0x2DF16F0", Offset = "0x2DF04F0", VA = "0x182DF16F0", Slot = "6")]
|
|
public override void SetKey(AsymmetricAlgorithm key)
|
|
{
|
|
}
|
|
|
|
// Token: 0x170004C9 RID: 1225
|
|
// (get) Token: 0x060022CA RID: 8906 RVA: 0x00014EF8 File Offset: 0x000130F8
|
|
[Token(Token = "0x170004C9")]
|
|
private bool OverridesDecrypt
|
|
{
|
|
[Token(Token = "0x60022CA")]
|
|
[Address(RVA = "0x2DF1870", Offset = "0x2DF0670", VA = "0x182DF1870")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x040013B9 RID: 5049
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40013B9")]
|
|
private RSA _rsaKey;
|
|
|
|
// Token: 0x040013BA RID: 5050
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40013BA")]
|
|
private bool? _rsaOverridesDecrypt;
|
|
}
|
|
}
|