Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Security/Cryptography/RSAOAEPKeyExchangeFormatter.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

158 lines
6.2 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Creates Optimal Asymmetric Encryption Padding (OAEP) key exchange data using <see cref="T:System.Security.Cryptography.RSA" />.</summary>
// Token: 0x02000423 RID: 1059
[Token(Token = "0x2000423")]
[ComVisible(true)]
public class RSAOAEPKeyExchangeFormatter : AsymmetricKeyExchangeFormatter
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAOAEPKeyExchangeFormatter" /> class.</summary>
// Token: 0x060024D7 RID: 9431 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60024D7")]
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
public RSAOAEPKeyExchangeFormatter()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAOAEPKeyExchangeFormatter" /> class with the specified key.</summary>
/// <param name="key">The instance of the <see cref="T:System.Security.Cryptography.RSA" /> algorithm that holds the public key.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> is <see langword="null" />.</exception>
// Token: 0x060024D8 RID: 9432 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60024D8")]
[Address(RVA = "0x1024FD0", Offset = "0x1023FD0", VA = "0x181024FD0")]
public RSAOAEPKeyExchangeFormatter(AsymmetricAlgorithm key)
{
}
/// <summary>Gets or sets the parameter used to create padding in the key exchange creation process.</summary>
/// <returns>The parameter value.</returns>
// Token: 0x17000541 RID: 1345
// (get) Token: 0x060024D9 RID: 9433 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x060024DA RID: 9434 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000541")]
public byte[] Parameter
{
[Token(Token = "0x60024D9")]
[Address(RVA = "0x1025250", Offset = "0x1024250", VA = "0x181025250")]
get
{
return null;
}
[Token(Token = "0x60024DA")]
[Address(RVA = "0x10252D0", Offset = "0x10242D0", VA = "0x1810252D0")]
set
{
}
}
/// <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: 0x17000542 RID: 1346
// (get) Token: 0x060024DB RID: 9435 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000542")]
public override string Parameters
{
[Token(Token = "0x60024DB")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "4")]
get
{
return null;
}
}
/// <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: 0x17000543 RID: 1347
// (get) Token: 0x060024DC RID: 9436 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x060024DD RID: 9437 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000543")]
public RandomNumberGenerator Rng
{
[Token(Token = "0x60024DC")]
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
get
{
return null;
}
[Token(Token = "0x60024DD")]
[Address(RVA = "0x415820", Offset = "0x414820", VA = "0x180415820")]
set
{
}
}
/// <summary>Sets the public key to use for encrypting the key exchange data.</summary>
/// <param name="key">The instance of the <see cref="T:System.Security.Cryptography.RSA" /> algorithm that holds the public key.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> is <see langword="null" />.</exception>
// Token: 0x060024DE RID: 9438 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60024DE")]
[Address(RVA = "0x1024F10", Offset = "0x1023F10", VA = "0x181024F10", Slot = "5")]
public override void SetKey(AsymmetricAlgorithm key)
{
}
/// <summary>Creates the encrypted key exchange data from the specified input data.</summary>
/// <param name="rgbData">The secret information to be passed in the key exchange.</param>
/// <returns>The encrypted key exchange data to be sent to the intended recipient.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The key is missing.</exception>
// Token: 0x060024DF RID: 9439 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60024DF")]
[Address(RVA = "0x1024DA0", Offset = "0x1023DA0", VA = "0x181024DA0", Slot = "6")]
public override byte[] CreateKeyExchange(byte[] rgbData)
{
return null;
}
/// <summary>Creates the encrypted key exchange data from the specified input data.</summary>
/// <param name="rgbData">The secret information to be passed in the key exchange.</param>
/// <param name="symAlgType">This parameter is not used in the current version.</param>
/// <returns>The encrypted key exchange data to be sent to the intended recipient.</returns>
// Token: 0x060024E0 RID: 9440 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60024E0")]
[Address(RVA = "0x949C70", Offset = "0x948C70", VA = "0x180949C70", Slot = "7")]
public override byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType)
{
return null;
}
// Token: 0x17000544 RID: 1348
// (get) Token: 0x060024E1 RID: 9441 RVA: 0x000172E0 File Offset: 0x000154E0
[Token(Token = "0x17000544")]
private bool OverridesEncrypt
{
[Token(Token = "0x60024E1")]
[Address(RVA = "0x1025090", Offset = "0x1024090", VA = "0x181025090")]
get
{
return default(bool);
}
}
// Token: 0x0400147E RID: 5246
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400147E")]
private byte[] ParameterValue;
// Token: 0x0400147F RID: 5247
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400147F")]
private RSA _rsaKey;
// Token: 0x04001480 RID: 5248
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001480")]
private bool? _rsaOverridesEncrypt;
// Token: 0x04001481 RID: 5249
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001481")]
private RandomNumberGenerator RngValue;
}
}