58 lines
2.6 KiB
C#
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: 0x020003EC RID: 1004
|
|
[Token(Token = "0x20003EC")]
|
|
[ComVisible(true)]
|
|
public abstract class AsymmetricKeyExchangeFormatter
|
|
{
|
|
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.AsymmetricKeyExchangeFormatter" />.</summary>
|
|
// Token: 0x0600231B RID: 8987 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600231B")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
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: 0x170004F6 RID: 1270
|
|
// (get) Token: 0x0600231C RID: 8988
|
|
[Token(Token = "0x170004F6")]
|
|
public abstract string Parameters
|
|
{
|
|
[Token(Token = "0x600231C")]
|
|
[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: 0x0600231D RID: 8989
|
|
[Token(Token = "0x600231D")]
|
|
[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: 0x0600231E RID: 8990
|
|
[Token(Token = "0x600231E")]
|
|
[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: 0x0600231F RID: 8991
|
|
[Token(Token = "0x600231F")]
|
|
[Address(Slot = "7")]
|
|
public abstract byte[] CreateKeyExchange(byte[] data, Type symAlgType);
|
|
}
|
|
}
|