Files
Aug2021-Cpp2IL-Dump/mscorlib/System/Security/Cryptography/AsymmetricKeyExchangeFormatter.cs
T
2026-04-10 22:50:51 +02:00

58 lines
2.6 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the base class from which all asymmetric key exchange formatters derive.</summary>
// Token: 0x020003D0 RID: 976
[Token(Token = "0x20003D0")]
[ComVisible(true)]
public abstract class AsymmetricKeyExchangeFormatter
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.AsymmetricKeyExchangeFormatter" />.</summary>
// Token: 0x0600210F RID: 8463 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600210F")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected AsymmetricKeyExchangeFormatter()
{
}
/// <summary>When overridden in a derived class, gets the parameters for the asymmetric key exchange.</summary>
/// <returns>A string in XML format containing the parameters of the asymmetric key exchange operation.</returns>
// Token: 0x1700047F RID: 1151
// (get) Token: 0x06002110 RID: 8464
[Token(Token = "0x1700047F")]
public abstract string Parameters
{
[Token(Token = "0x6002110")]
[Address(Slot = "4")]
get;
}
/// <summary>When overridden in a derived class, sets the public key to use for encrypting the secret information.</summary>
/// <param name="key">The instance of the implementation of <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> that holds the public key.</param>
// Token: 0x06002111 RID: 8465
[Token(Token = "0x6002111")]
[Address(Slot = "5")]
public abstract void SetKey(AsymmetricAlgorithm key);
/// <summary>When overridden in a derived class, creates the encrypted key exchange data from the specified input data.</summary>
/// <param name="data">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>
// Token: 0x06002112 RID: 8466
[Token(Token = "0x6002112")]
[Address(Slot = "6")]
public abstract byte[] CreateKeyExchange(byte[] data);
/// <summary>When overridden in a derived class, creates the encrypted key exchange data from the specified input data.</summary>
/// <param name="data">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: 0x06002113 RID: 8467
[Token(Token = "0x6002113")]
[Address(Slot = "7")]
public abstract byte[] CreateKeyExchange(byte[] data, Type symAlgType);
}
}